Skip to content

Commit 5814197

Browse files
committed
fix: set workspaceFolders to null when there is no workspace
Based on https://microsoft.github.io/language-server-protocol/specifications/specification-current/#initialize
1 parent bf599f8 commit 5814197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/auto-languageclient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default class AutoLanguageClient {
123123
processId: process.pid,
124124
rootPath: projectPath,
125125
rootUri: Convert.pathToUri(projectPath),
126-
workspaceFolders: [],
126+
workspaceFolders: null,
127127
capabilities: {
128128
workspace: {
129129
applyEdit: true,

0 commit comments

Comments
 (0)