vscode-chuck

所属分类:编程语言基础
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2023-09-23 21:01:24
上 传 者sh-1993
说明:  ChucK音乐编程语言的VSCode扩展,
(VSCode extension for the ChucK music programming language,)

文件列表:
.editorconfig (105, 2023-10-15)
.eslintrc.json (857, 2023-10-15)
.vscode/ (0, 2023-10-15)
.vscode/launch.json (973, 2023-10-15)
.vscode/settings.json (444, 2023-10-15)
.vscode/tasks.json (366, 2023-10-15)
.vscodeignore (88, 2023-10-15)
CHANGELOG.md (2340, 2023-10-15)
LICENSE.md (1071, 2023-10-15)
chuck.png (24068, 2023-10-15)
icons/ (0, 2023-10-15)
icons/chuck_icon_128x128.png (5116, 2023-10-15)
language-configuration.json (828, 2023-10-15)
package-lock.json (88281, 2023-10-15)
package.json (4047, 2023-10-15)
src/ (0, 2023-10-15)
src/chuckCommands.ts (3127, 2023-10-15)
src/chuckSyntaxCheckProvider.ts (6421, 2023-10-15)
src/extension.ts (1056, 2023-10-15)
src/utils.ts (650, 2023-10-15)
syntaxes/ (0, 2023-10-15)
syntaxes/chuck.tmLanguage.json (4850, 2023-10-15)
tsconfig.json (608, 2023-10-15)

# vscode-chuck This extension is for the [ChucK music programming language](http://chuck.stanford.edu/). It implements: - Syntax highlighting - Syntax checking - A command to play the ChucK file in the active editor window, and a command to kill any Chuck process started this way. The syntax checking feature relies on ChucK's `--syntax` command-line switch, which has been in the official release since at least 1.5.x. The syntax checking does not know about objects defined in other files that are intended to be available at runtime using `Machine.add()`, so multi-file projects will contain suprious errors. For this reason, syntax checking is turned off by default. Any suggestions for handling multi-file project syntax checking would be most welcome; code fixes doubly so. The syntax checker reports errors at the location given by ChucK's error messages. These can be a bit off; the actual error may be just before the marked section; look backwards as far as the previous statement or block end (`;` or `}`) to find it. They are also often one character wide; keep your eye out for tiny red squiggles. The boolean configuration setting `chuck.extendErrorRegion` will extend the marked error region backwards from what ChucK reports to the first non-whitespace character past the previous block or statement end. This is kind of a hack: despite the fact that VSCode has parsed the syntax to colorize the code, I do not have programmatic access to that info. So I look backwards for the first `;` or `}` I find, but don't check whether that's within a comment. This means the error squiggle my go back to somewhere in a comment instead of all the way back to the previous block or statment end. I figure this will be rare, and the results will still be useful as long as you're aware of this quirk. Turning this setting on should make error regions much more visible and much more likely to include the actual error. Even so, `chuck.extendErrorRegion` is turned off by default. The command to play the currently active ChucK file is bound by default to the `alt+.` key combo. (Mnemonic is that key has `>` on it which looks like a play button, but we don't use shift to avoid keybinding collisions.) When you invoke this command on an unsaved ChucK editor window, you will be prompted to save, with the option to always save silently before playing from then on. Any output is written to the output window. Multiple ChucK processes playing the same or different files can be invoked at once. This is supposed to be a feature, not a bug. To kill all running ChucK processes started this way, press `` alt+` `` when in any ChucK text editor window. (This used to be `alt+escape` but it was moved to avoid a keybinding collision in Windows.) Here is a table of the configuration settings provided by this extension. Most users should be able to configure everything in VSCode's settings dialog, but they are provided here for completeness. | setting | default | description | | -------------------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | `chuck.executable` | `"chuck"` | The chuck executable | | `chuck.enableSyntaxCheck` | `false` | Boolean to enable syntax check. | | `chuck.syntaxCheckArgs` | `[ "--color:off", "--syntax" ]` | Arguments to chuck when used for syntax checking.
An array of strings, each element an argument including the leading dash. | | `chuck.extendErrorRegion` | `false` | Boolean to extend the highlighted error region backwards from what chuck reports
to just past the previous statement end. | | `chuck.playArgs` | `[]` | Arguments to chuck when used for playing the current file.
An array of strings, each element an argument including the leading dash. | | `chuck.saveSilentlyOnPlay` | `false` | Save without prompting before playing the current file. | Syntax checking was initially ported from Courtney Wilburn's [Atom extension](https://github.com/cjwilburn/language-chuck).

近期下载者

相关文件


收藏者