First pass at a scheme backend
This commit is contained in:
@@ -35,6 +35,9 @@ async function main() {
|
||||
sourcemap: !production,
|
||||
sourcesContent: false,
|
||||
platform: 'node',
|
||||
banner: {
|
||||
js: "#!/usr/bin/env node",
|
||||
},
|
||||
// outfile: 'dist/extension.js',
|
||||
outdir: 'dist',
|
||||
external: ['vscode'],
|
||||
|
||||
@@ -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 => ({
|
||||
|
||||
Reference in New Issue
Block a user