Files
sx/editors/vscode/package.json
agra 5d275ee274 vscode: declare contributes.breakpoints for sx (enable breakpoint gutter)
VSCode disables the breakpoint gutter for a language unless an extension
declares breakpoints are valid for it. The sx extension registered the
language but never contributed breakpoints, so clicking the gutter in a
.sx file did nothing. Add the breakpoints contribution so users can set
breakpoints in .sx files without the per-workspace
debug.allowBreakpointsEverywhere hack.
2026-06-01 16:52:56 +03:00

86 lines
1.8 KiB
JSON

{
"name": "sx-lang",
"displayName": "sx",
"description": "Language support for the sx programming language",
"version": "0.0.1",
"publisher": "swipelab",
"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 ."
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@types/vscode": "^1.75.0",
"typescript": "^5.0.0"
}
}