Initial LSP implementation/vscode support
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled

This commit is contained in:
2026-02-12 20:14:14 -08:00
parent 01a05ba186
commit a9718621e3
36 changed files with 6909 additions and 76 deletions

View File

@@ -0,0 +1,53 @@
{
// see singleton in Tokenizer.idr
"wordPattern": "[^()\\{}\\[\\],.@\\s]+",
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "--",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": ["/-", "-/"]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["{{", "}}"],
["[", "]"],
["(", ")"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
// ["'", "'"], causes problems with foo''
["/-", "-/"]
],
// symbols that can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
"onEnterRules": [
{
"beforeText": "\\b(where|of|do)\\s*$",
"action": { "indent": "indent" }
},
{
"beforeText": "/-",
"afterText": "-/",
"action": {
"indent": "indentOutdent"
}
},
{
"beforeText": "^\\s+$",
"action": {
"indent": "outdent"
}
}
]
}