fix multi-root
parent
a5a0494003
commit
1a64b562a4
|
@ -995,7 +995,9 @@ class TW {
|
||||||
|
|
||||||
this.initialized = true
|
this.initialized = true
|
||||||
|
|
||||||
|
// TODO
|
||||||
const workspaceFolders =
|
const workspaceFolders =
|
||||||
|
false &&
|
||||||
Array.isArray(this.initializeParams.workspaceFolders) &&
|
Array.isArray(this.initializeParams.workspaceFolders) &&
|
||||||
this.initializeParams.capabilities.workspace?.workspaceFolders
|
this.initializeParams.capabilities.workspace?.workspaceFolders
|
||||||
? this.initializeParams.workspaceFolders.map((el) => ({
|
? this.initializeParams.workspaceFolders.map((el) => ({
|
||||||
|
@ -1147,7 +1149,6 @@ connection.onInitialize(
|
||||||
return {
|
return {
|
||||||
capabilities: {
|
capabilities: {
|
||||||
textDocumentSync: TextDocumentSyncKind.Full,
|
textDocumentSync: TextDocumentSyncKind.Full,
|
||||||
workspace: { workspaceFolders: { supported: true, changeNotifications: true } },
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1157,7 +1158,6 @@ connection.onInitialize(
|
||||||
return {
|
return {
|
||||||
capabilities: {
|
capabilities: {
|
||||||
textDocumentSync: TextDocumentSyncKind.Full,
|
textDocumentSync: TextDocumentSyncKind.Full,
|
||||||
workspace: { workspaceFolders: { supported: true, changeNotifications: true } },
|
|
||||||
hoverProvider: true,
|
hoverProvider: true,
|
||||||
colorProvider: true,
|
colorProvider: true,
|
||||||
codeActionProvider: true,
|
codeActionProvider: true,
|
||||||
|
|
Loading…
Reference in New Issue