Files
sx/editors/vscode/package.json
agra f3c9747f5a chore(ffi-linkage): post-stream polish — vscode keywords + vestigial param + extension metadata
Two post-stream follow-ups flagged in CHECKPOINT-EXTERN-EXPORT.md, plus a
reproducible vscode-extension packaging setup:

- parser: drop the vestigial `RuntimeClassPrefix.is_extern` field and
  `parseRuntimeClassDecl`'s `is_extern` param. Always false since the
  `#foreign` token was deleted; the postfix `extern`/`export` keyword is the
  sole reference-vs-define decider. No behavior change (644 corpus / 442 unit).
- vscode grammar: highlight `extern`/`export` as `storage.modifier.sx`.
- vscode packaging: declare `@vscode/vsce` as a devDep + add `package` /
  `vscode:prepublish` scripts so the vsix rebuilds reproducibly (was an
  ambient tool). Add repository/homepage/bugs (Gitea), icon (swipelab logo,
  256x256), galleryBanner, README with cover banner. Rebuilt the vsix.
2026-06-15 12:57:07 +03:00

102 lines
2.3 KiB
JSON

{
"name": "sx-lang",
"displayName": "sx",
"description": "Language support for the sx programming language",
"version": "0.0.1",
"publisher": "swipelab",
"icon": "icon.png",
"galleryBanner": {
"color": "#000000",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://git.swipelab.com/lab/sx.git"
},
"homepage": "https://git.swipelab.com/lab/sx",
"bugs": {
"url": "https://git.swipelab.com/lab/sx/issues"
},
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onLanguage:sx"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "sx",
"aliases": [
"sx"
],
"extensions": [
".sx"
],
"configuration": "./language-configuration.json"
}
],
"breakpoints": [
{
"language": "sx"
}
],
"grammars": [
{
"language": "sx",
"scopeName": "source.sx",
"path": "./syntaxes/sx.tmLanguage.json",
"embeddedLanguages": {
"meta.embedded.block.glsl": "glsl",
"meta.embedded.block.sql": "sql",
"meta.embedded.block.html": "html",
"meta.embedded.block.json": "json"
}
}
],
"configuration": {
"title": "sx",
"properties": {
"sx.lspPath": {
"type": "string",
"default": "sx",
"description": "Path to the sx-lsp binary"
}
}
},
"configurationDefaults": {
"[sx]": {
"editor.wordBasedSuggestions": "off"
},
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "punctuation.definition.template-expression",
"settings": {
"foreground": "#E5C07B"
}
}
]
}
}
},
"scripts": {
"build": "tsc -p .",
"watch": "tsc -watch -p .",
"vscode:prepublish": "npm run build",
"package": "vsce package --baseContentUrl https://git.swipelab.com/lab/sx/src/branch/master/editors/vscode --baseImagesUrl https://git.swipelab.com/lab/sx/raw/branch/master/editors/vscode"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@types/vscode": "^1.75.0",
"@vscode/vsce": "^3.9.2",
"typescript": "^5.0.0"
}
}