Skip to content

Commit 1a64b56

Browse files
committed
fix multi-root
1 parent a5a0494 commit 1a64b56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,9 @@ class TW {
995995

996996
this.initialized = true
997997

998+
// TODO
998999
const workspaceFolders =
1000+
false &&
9991001
Array.isArray(this.initializeParams.workspaceFolders) &&
10001002
this.initializeParams.capabilities.workspace?.workspaceFolders
10011003
? this.initializeParams.workspaceFolders.map((el) => ({
@@ -1147,7 +1149,6 @@ connection.onInitialize(
11471149
return {
11481150
capabilities: {
11491151
textDocumentSync: TextDocumentSyncKind.Full,
1150-
workspace: { workspaceFolders: { supported: true, changeNotifications: true } },
11511152
},
11521153
}
11531154
}
@@ -1157,7 +1158,6 @@ connection.onInitialize(
11571158
return {
11581159
capabilities: {
11591160
textDocumentSync: TextDocumentSyncKind.Full,
1160-
workspace: { workspaceFolders: { supported: true, changeNotifications: true } },
11611161
hoverProvider: true,
11621162
colorProvider: true,
11631163
codeActionProvider: true,

0 commit comments

Comments
 (0)