Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 39 additions & 2 deletions _specifications/lsp/3.18/metaModel/metaModel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2081,6 +2081,7 @@
"method": "workspace/didChangeWorkspaceFolders",
"typeName": "DidChangeWorkspaceFoldersNotification",
"messageDirection": "clientToServer",
"clientCapability": "workspace.workspaceFolders.changeNotifications",
"serverCapability": "workspace.workspaceFolders.changeNotifications",
"params": {
"kind": "reference",
Expand Down Expand Up @@ -11206,8 +11207,17 @@
{
"name": "workspaceFolders",
"type": {
"kind": "base",
"name": "boolean"
"kind": "or",
"items": [
{
"kind": "base",
"name": "boolean"
},
{
"kind": "reference",
"name": "WorkspaceFoldersClientCapabilities"
}
]
},
"optional": true,
"documentation": "The client has support for workspace folders.\n\n@since 3.6.0",
Expand Down Expand Up @@ -12256,6 +12266,33 @@
],
"documentation": "The client capabilities of a {@link ExecuteCommandRequest}."
},
{
"name": "WorkspaceFoldersClientCapabilities",
"properties": [
{
"name": "changeNotifications",
"type": {
"kind": "literal",
"value": {
"properties": [
{
"name": "dynamicRegistration",
"type": {
"kind": "base",
"name": "boolean"
},
"optional": true,
"documentation": "Whether the client supports dynamic registration for the\n`workspace/didChangeWorkspaceFolders` notification."
}
]
}
},
"optional": true,
"documentation": "The client has support for workspace folder change notifications.\n\n@since 3.18.0",
"since": "3.18.0"
}
]
},
{
"name": "SemanticTokensWorkspaceClientCapabilities",
"properties": [
Expand Down
19 changes: 18 additions & 1 deletion _specifications/lsp/3.18/workspace/workspaceFolders.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,24 @@ The `workspace/workspaceFolders` request is sent from the server to the client t

_Client Capability_:
* property path (optional): `workspace.workspaceFolders`
* property type: `boolean`
* property type: `boolean | WorkspaceFoldersClientCapabilities` where `WorkspaceFoldersClientCapabilities` is defined as follows:

```typescript
export interface WorkspaceFoldersClientCapabilities {
/**
* The client has support for workspace folder change notifications.
*
* @since 3.18.0
*/
changeNotifications?: {
/**
* Whether the client supports dynamic registration for the
* `workspace/didChangeWorkspaceFolders` notification.
*/
dynamicRegistration?: boolean;
};
}
```

_Server Capability_:
* property path (optional): `workspace.workspaceFolders`
Expand Down