First pass at a scheme backend
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled

This commit is contained in:
2026-03-16 17:03:33 -07:00
parent 92ced8dcd2
commit fe96f46534
23 changed files with 586 additions and 107 deletions

View File

@@ -1,6 +1,4 @@
/**
* WIP
*
* Wraps newt.js (compiled from src/LSP.newt with some tweaks to `export`) with the
* vscode LSP server module.
*/
@@ -119,10 +117,15 @@ connection.onCodeAction(({textDocument, range}) => {
})
connection.onDocumentSymbol((params) => {
try {
const uri = params.textDocument.uri;
let symbols = LSP_docSymbols(uri);
console.log("docs got", symbols)
return symbols;
} catch (e) {
console.error('ERROR in onDocumentSymbol', e);
}
})
connection.onInitialize((_params: InitializeParams): InitializeResult => ({