From 52ac2fc3d067920d8df8896e9f308337ef093ca3 Mon Sep 17 00:00:00 2001 From: Jens Fischer Date: Thu, 28 Jun 2018 13:58:54 +0200 Subject: [PATCH] Add a compound launch config to lsp-sample --- lsp-sample/.vscode/launch.json | 6 ++++++ lsp-sample/server/src/server.ts | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lsp-sample/.vscode/launch.json b/lsp-sample/.vscode/launch.json index fc108bb7..ee0083ba 100644 --- a/lsp-sample/.vscode/launch.json +++ b/lsp-sample/.vscode/launch.json @@ -37,5 +37,11 @@ "sourceMaps": true, "outFiles": ["${workspaceRoot}/client/out/test/**/*.js"] } + ], + "compounds": [ + { + "name": "Client + Server", + "configurations": ["Launch Client", "Attach to Server"] + } ] } diff --git a/lsp-sample/server/src/server.ts b/lsp-sample/server/src/server.ts index 095ab248..2dc3d6a7 100644 --- a/lsp-sample/server/src/server.ts +++ b/lsp-sample/server/src/server.ts @@ -35,10 +35,10 @@ connection.onInitialize((params: InitializeParams) => { return { capabilities: { textDocumentSync: documents.syncKind, - // Tell the client that the server supports code completion - completionProvider: { - resolveProvider: true - } + // Tell the client that the server supports code completion + completionProvider: { + resolveProvider: true + } } } });