aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/server.ts
diff options
context:
space:
mode:
authorVille Penttinen <[email protected]>2019-03-06 09:34:38 +0000
committerVille Penttinen <[email protected]>2019-03-06 09:34:38 +0000
commit0dcb1cb569417a17e27a4d8b34813ded41395268 (patch)
tree123896a906abdfb6de3c0e3f13e0c69e98e3cc01 /editors/code/src/server.ts
parentce118da149a0db1815f188c9914001608a5ac09e (diff)
Add showWorkspaceLoadedNotification to vscode client
This allows users to control whether or not they want to see the "workspace loaded" notification. This is done on the server side using InitializationOptions which are provided by the client. By default show_workspace_loaded is true, meaning the notification is sent.
Diffstat (limited to 'editors/code/src/server.ts')
-rw-r--r--editors/code/src/server.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/src/server.ts b/editors/code/src/server.ts
index 9ead87fae..50461b0c6 100644
--- a/editors/code/src/server.ts
+++ b/editors/code/src/server.ts
@@ -26,7 +26,9 @@ export class Server {
26 const clientOptions: lc.LanguageClientOptions = { 26 const clientOptions: lc.LanguageClientOptions = {
27 documentSelector: [{ scheme: 'file', language: 'rust' }], 27 documentSelector: [{ scheme: 'file', language: 'rust' }],
28 initializationOptions: { 28 initializationOptions: {
29 publishDecorations: true 29 publishDecorations: true,
30 showWorkspaceLoaded:
31 Server.config.showWorkspaceLoadedNotification
30 }, 32 },
31 traceOutputChannel 33 traceOutputChannel
32 }; 34 };