diff --git a/lsp-sample/.vscodeignore b/lsp-sample/.vscodeignore index 29882b9e..2a6b6a99 100644 --- a/lsp-sample/.vscodeignore +++ b/lsp-sample/.vscodeignore @@ -11,4 +11,5 @@ client/node_modules/** !client/node_modules/vscode-languageclient/** !client/node_modules/vscode-languageserver-protocol/** !client/node_modules/vscode-languageserver-types/** -!client/node_modules/semver/** +!client/node_modules/{minimatch,brace-expansion,concat-map,balanced-match}/** +!client/node_modules/{semver,lru-cache,yallist}/** \ No newline at end of file diff --git a/lsp-sample/client/src/extension.ts b/lsp-sample/client/src/extension.ts index 546f4277..60923cfd 100644 --- a/lsp-sample/client/src/extension.ts +++ b/lsp-sample/client/src/extension.ts @@ -17,16 +17,16 @@ let client: LanguageClient; export function activate(context: ExtensionContext) { // The server is implemented in node - let serverModule = context.asAbsolutePath( + const serverModule = context.asAbsolutePath( path.join('server', 'out', 'server.js') ); // The debug options for the server // --inspect=6009: runs the server in Node's Inspector mode so VS Code can attach to the server for debugging - let debugOptions = { execArgv: ['--nolazy', '--inspect=6009'] }; + const debugOptions = { execArgv: ['--nolazy', '--inspect=6009'] }; // If the extension is launched in debug mode then the debug server options are used // Otherwise the run options are used - let serverOptions: ServerOptions = { + const serverOptions: ServerOptions = { run: { module: serverModule, transport: TransportKind.ipc }, debug: { module: serverModule, @@ -36,7 +36,7 @@ export function activate(context: ExtensionContext) { }; // Options to control the language client - let clientOptions: LanguageClientOptions = { + const clientOptions: LanguageClientOptions = { // Register the server for plain text documents documentSelector: [{ scheme: 'file', language: 'plaintext' }], synchronize: {