Skip to content

Commit 2e4dde6

Browse files
committed
Add client capability to workspace/didChangeWorkspaceFolders notification
1 parent df05883 commit 2e4dde6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

protocol/metaModel.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,6 +2081,7 @@
20812081
"method": "workspace/didChangeWorkspaceFolders",
20822082
"typeName": "DidChangeWorkspaceFoldersNotification",
20832083
"messageDirection": "clientToServer",
2084+
"clientCapability": "workspace.workspaceFolders",
20842085
"serverCapability": "workspace.workspaceFolders.changeNotifications",
20852086
"params": {
20862087
"kind": "reference",

protocol/src/common/protocol.workspaceFolder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export namespace DidChangeWorkspaceFoldersNotification {
6262
export const type = new ProtocolNotificationType<DidChangeWorkspaceFoldersParams, void>(method);
6363
export type HandlerSignature = NotificationHandler<DidChangeWorkspaceFoldersParams>;
6464
export type MiddlewareSignature = (params: DidChangeWorkspaceFoldersParams, next: HandlerSignature) => void;
65-
export const capabilities = CM.create(undefined, 'workspace.workspaceFolders.changeNotifications');
65+
export const capabilities = CM.create('workspace.workspaceFolders', 'workspace.workspaceFolders.changeNotifications');
6666
}
6767

6868
/**

0 commit comments

Comments
 (0)