diff options
| author | 2026-10-12 08:46:23 +0330 | |
|---|---|---|
| committer | 2026-10-12 08:46:23 +0330 | |
| commit | ecc350ca5c2eb50be8309c5f14f8bf0d87db9a02 (patch) | |
| tree | 70e0af76a1b13affff7c6cc8aac7b3e6ef960478 /editors/vscode/package.json | |
a
Diffstat (limited to 'editors/vscode/package.json')
| -rw-r--r-- | editors/vscode/package.json | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/editors/vscode/package.json b/editors/vscode/package.json new file mode 100644 index 0000000..c3bb0d9 --- /dev/null +++ b/editors/vscode/package.json @@ -0,0 +1,127 @@ +{ + "name": "zc-language-support", + "displayName": "TinyVM ZC Language Support", + "description": "Language server for ZC in TinyVM: the compiler's own errors, optimization hints, hover docs and highlighting. runs in the extension, no install needed. see the ZC Language Server output for logs.", + "version": "3.3.0", + "publisher": "tinyvm", + "engines": { + "vscode": "^1.75.0" + }, + "categories": [ + "Programming Languages" + ], + "keywords": [ + "zc", + "tinyvm", + "zygote", + "compiler", + "lifetimes" + ], + "activationEvents": [ + "onLanguage:zc" + ], + "main": "./client/extension.js", + "contributes": { + "languages": [ + { + "id": "zc", + "aliases": [ + "ZC", + "zc", + "Zygote C" + ], + "extensions": [ + ".zc" + ], + "configuration": "./language-configuration.json" + } + ], + "grammars": [ + { + "language": "zc", + "scopeName": "source.zc", + "path": "./syntaxes/zc.tmLanguage.json" + } + ], + "semanticTokenScopes": [ + { + "language": "zc", + "scopes": { + "keyword": [ + "keyword.control.zc" + ], + "type": [ + "entity.name.type.zc", + "storage.type.zc" + ], + "function": [ + "entity.name.function.zc" + ], + "variable": [ + "variable.name.zc" + ], + "string": [ + "string.quoted.double.zc" + ], + "number": [ + "constant.numeric.zc" + ], + "operator": [ + "keyword.operator.zc" + ], + "comment": [ + "comment.line.double-slash.zc" + ], + "parameter": [ + "variable.parameter.zc" + ], + "property": [ + "variable.other.property.zc" + ], + "macro": [ + "entity.name.function.macro.zc" + ], + "enumMember": [ + "variable.other.enummember.zc" + ] + } + } + ], + "configuration": { + "type": "object", + "title": "ZC Language Server", + "properties": { + "zc.lsp.serverPath": { + "type": "string", + "default": "", + "description": "Optional. A native zclsp executable to use instead of the built-in server (build it with src/tools/mklsp.sh). Empty runs the server inside the extension." + }, + "zc.trace.server": { + "type": "string", + "enum": [ + "off", + "messages", + "verbose" + ], + "default": "messages", + "enumDescriptions": [ + "log only problems", + "log each request and response with its time (default)", + "also log the bodies of messages" + ], + "description": "How much the zc language server logs to the ZC Language Server output channel." + } + } + }, + "commands": [ + { + "command": "zc.showLog", + "title": "zc: show language server log" + }, + { + "command": "zc.restart", + "title": "zc: restart language server" + } + ] + } +} |
