From 1a64b562a40d004b344a0c706a2711e62f836d2c Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Tue, 4 May 2021 13:25:49 +0100 Subject: [PATCH] fix multi-root --- src/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.ts b/src/server.ts index 7632783..c934d5e 100644 --- a/src/server.ts +++ b/src/server.ts @@ -995,7 +995,9 @@ class TW { this.initialized = true + // TODO const workspaceFolders = + false && Array.isArray(this.initializeParams.workspaceFolders) && this.initializeParams.capabilities.workspace?.workspaceFolders ? this.initializeParams.workspaceFolders.map((el) => ({ @@ -1147,7 +1149,6 @@ connection.onInitialize( return { capabilities: { textDocumentSync: TextDocumentSyncKind.Full, - workspace: { workspaceFolders: { supported: true, changeNotifications: true } }, }, } } @@ -1157,7 +1158,6 @@ connection.onInitialize( return { capabilities: { textDocumentSync: TextDocumentSyncKind.Full, - workspace: { workspaceFolders: { supported: true, changeNotifications: true } }, hoverProvider: true, colorProvider: true, codeActionProvider: true,