|
5168 | 5168 | "name": "CompletionItemDefaults" |
5169 | 5169 | }, |
5170 | 5170 | "optional": true, |
5171 | | - "documentation": "In many cases the items of an actual completion result share the same\nvalue for properties like `commitCharacters` or the range of a text\nedit. A completion list can therefore define item defaults which will\nbe used if a completion item itself doesn't specify the value.\n\nIf a completion list specifies a default value and a completion item\nalso specifies a corresponding value, the rules for combining these are\ndefined by `applyKinds` (if the client supports it), defaulting to\n\"replace\".\n\nServers are only allowed to return default values if the client\nsignals support for this via the `completionList.itemDefaults`\ncapability.\n\n@since 3.17.0", |
| 5171 | + "documentation": "In many cases the items of an actual completion result share the same\nvalue for properties like `commitCharacters` or the range of a text\nedit. A completion list can therefore define item defaults which will\nbe used if a completion item itself doesn't specify the value.\n\nIf a completion list specifies a default value and a completion item\nalso specifies a corresponding value, the rules for combining these are\ndefined by `applyKinds` (if the client supports it), defaulting to\nApplyKind.Replace.\n\nServers are only allowed to return default values if the client\nsignals support for this via the `completionList.itemDefaults`\ncapability.\n\n@since 3.17.0", |
5172 | 5172 | "since": "3.17.0" |
5173 | 5173 | }, |
5174 | 5174 | { |
|
5178 | 5178 | "name": "CompletionItemApplyKinds" |
5179 | 5179 | }, |
5180 | 5180 | "optional": true, |
5181 | | - "documentation": "Specifies how fields from a completion item should be combined with those\nfrom `completionList.itemDefaults`.\n\nIf unspecified, all fields will be treated as \"replace\".\n\nIf a field's value is \"replace\", the value from a completion item (if\nprovided and not `null`) will always be used instead of the value from\n`completionItem.itemDefaults`.\n\nIf a field's value is \"merge\", the values will be merged using the rules\ndefined against each field below.\n\nServers are only allowed to return `applyKind` if the client\nsignals support for this via the `completionList.applyKindSupport`\ncapability.\n\n@since 3.18.0", |
| 5181 | + "documentation": "Specifies how fields from a completion item should be combined with those\nfrom `completionList.itemDefaults`.\n\nIf unspecified, all fields will be treated as ApplyKind.Replace.\n\nIf a field's value is ApplyKind.Replace, the value from a completion item\n(if provided and not `null`) will always be used instead of the value\nfrom `completionItem.itemDefaults`.\n\nIf a field's value is ApplyKind.Merge, the values will be merged using\nthe rules defined against each field below.\n\nServers are only allowed to return `applyKind` if the client\nsignals support for this via the `completionList.applyKindSupport`\ncapability.\n\n@since 3.18.0", |
5182 | 5182 | "since": "3.18.0" |
5183 | 5183 | }, |
5184 | 5184 | { |
|
9205 | 9205 | "since": "3.17.0" |
9206 | 9206 | } |
9207 | 9207 | ], |
9208 | | - "documentation": "In many cases the items of an actual completion result share the same\nvalue for properties like `commitCharacters` or the range of a text\nedit. A completion list can therefore define item defaults which will\nbe used if a completion item itself doesn't specify the value.\n\nIf a completion list specifies a default value and a completion item\nalso specifies a corresponding value, the rules for combining these are\ndefined by `applyKinds` (if the client supports it), defaulting to\n\"replace\".\n\nServers are only allowed to return default values if the client\nsignals support for this via the `completionList.itemDefaults`\ncapability.\n\n@since 3.17.0", |
| 9208 | + "documentation": "In many cases the items of an actual completion result share the same\nvalue for properties like `commitCharacters` or the range of a text\nedit. A completion list can therefore define item defaults which will\nbe used if a completion item itself doesn't specify the value.\n\nIf a completion list specifies a default value and a completion item\nalso specifies a corresponding value, the rules for combining these are\ndefined by `applyKinds` (if the client supports it), defaulting to\nApplyKind.Replace.\n\nServers are only allowed to return default values if the client\nsignals support for this via the `completionList.itemDefaults`\ncapability.\n\n@since 3.17.0", |
9209 | 9209 | "since": "3.17.0" |
9210 | 9210 | }, |
9211 | 9211 | { |
|
9218 | 9218 | "name": "ApplyKind" |
9219 | 9219 | }, |
9220 | 9220 | "optional": true, |
9221 | | - "documentation": "Specifies whether commitCharacters on a completion will replace or be\nmerged with those in `completionList.itemDefaults.commitCharacters`.\n\nIf \"replace\", the commit characters from the completion item will\nalways be used unless not provided, in which case those from\n`completionList.itemDefaults.commitCharacters` will be used. An\nempty list can be used if a completion item does not have any commit\ncharacters and also should not use those from\n`completionList.itemDefaults.commitCharacters`.\n\nIf \"merge\" the commitCharacters for the completion will be the union\nof all values in both `completionList.itemDefaults.commitCharacters`\nand the completion's own `commitCharacters`.\n\n@since 3.18.0", |
| 9221 | + "documentation": "Specifies whether commitCharacters on a completion will replace or be\nmerged with those in `completionList.itemDefaults.commitCharacters`.\n\nIf ApplyKind.Replace, the commit characters from the completion item will\nalways be used unless not provided, in which case those from\n`completionList.itemDefaults.commitCharacters` will be used. An\nempty list can be used if a completion item does not have any commit\ncharacters and also should not use those from\n`completionList.itemDefaults.commitCharacters`.\n\nIf ApplyKind.Merge the commitCharacters for the completion will be the\nunion of all values in both `completionList.itemDefaults.commitCharacters`\nand the completion's own `commitCharacters`.\n\n@since 3.18.0", |
9222 | 9222 | "since": "3.18.0" |
9223 | 9223 | }, |
9224 | 9224 | { |
|
9228 | 9228 | "name": "ApplyKind" |
9229 | 9229 | }, |
9230 | 9230 | "optional": true, |
9231 | | - "documentation": "Specifies whether the `data` field on a completion will replace or\nbe merged with data from `completionList.itemDefaults.data`.\n\nIf \"replace\", the data from the completion item will be used if\nprovided (and not `null`), otherwise\n`completionList.itemDefaults.data` will be used. An empty object can\nbe used if a completion item does not have any data but also should\nnot use the value from `completionList.itemDefaults.data`.\n\nIf \"merge\", a shallow merge will be performed between\n`completionList.itemDefaults.data` and the completion's own data\nusing the following rules:\n\n- If a completion's `data` field is not provided (or `null`), the\n entire `data` field from `completionList.itemDefaults.data` will be\n used as-is.\n- If a completion's `data` field is provided, each field will\n overwrite the field of the same name in\n `completionList.itemDefaults.data` but no merging of nested fields\n within that value will occur.\n\n@since 3.18.0", |
| 9231 | + "documentation": "Specifies whether the `data` field on a completion will replace or\nbe merged with data from `completionList.itemDefaults.data`.\n\nIf ApplyKind.Replace, the data from the completion item will be used if\nprovided (and not `null`), otherwise\n`completionList.itemDefaults.data` will be used. An empty object can\nbe used if a completion item does not have any data but also should\nnot use the value from `completionList.itemDefaults.data`.\n\nIf ApplyKind.Merge, a shallow merge will be performed between\n`completionList.itemDefaults.data` and the completion's own data\nusing the following rules:\n\n- If a completion's `data` field is not provided (or `null`), the\n entire `data` field from `completionList.itemDefaults.data` will be\n used as-is.\n- If a completion's `data` field is provided, each field will\n overwrite the field of the same name in\n `completionList.itemDefaults.data` but no merging of nested fields\n within that value will occur.\n\n@since 3.18.0", |
9232 | 9232 | "since": "3.18.0" |
9233 | 9233 | } |
9234 | 9234 | ], |
9235 | | - "documentation": "Specifies how fields from a completion item should be combined with those\nfrom `completionList.itemDefaults`.\n\nIf unspecified, all fields will be treated as \"replace\".\n\nIf a field's value is \"replace\", the value from a completion item (if\nprovided and not `null`) will always be used instead of the value from\n`completionItem.itemDefaults`.\n\nIf a field's value is \"merge\", the values will be merged using the rules\ndefined against each field below.\n\nServers are only allowed to return `applyKind` if the client\nsignals support for this via the `completionList.applyKindSupport`\ncapability.\n\n@since 3.18.0", |
| 9235 | + "documentation": "Specifies how fields from a completion item should be combined with those\nfrom `completionList.itemDefaults`.\n\nIf unspecified, all fields will be treated as ApplyKind.Replace.\n\nIf a field's value is ApplyKind.Replace, the value from a completion item (if\nprovided and not `null`) will always be used instead of the value from\n`completionItem.itemDefaults`.\n\nIf a field's value is ApplyKind.Merge, the values will be merged using the rules\ndefined against each field below.\n\nServers are only allowed to return `applyKind` if the client\nsignals support for this via the `completionList.applyKindSupport`\ncapability.\n\n@since 3.18.0", |
9236 | 9236 | "since": "3.18.0" |
9237 | 9237 | }, |
9238 | 9238 | { |
|
11191 | 11191 | "optional": true, |
11192 | 11192 | "documentation": "Defines which synchronization capabilities the client supports." |
11193 | 11193 | }, |
| 11194 | + { |
| 11195 | + "name": "filters", |
| 11196 | + "type": { |
| 11197 | + "kind": "reference", |
| 11198 | + "name": "TextDocumentFilterClientCapabilities" |
| 11199 | + }, |
| 11200 | + "optional": true, |
| 11201 | + "documentation": "Defines which filters the client supports.\n\n@since 3.18.0", |
| 11202 | + "since": "3.18.0" |
| 11203 | + }, |
11194 | 11204 | { |
11195 | 11205 | "name": "completion", |
11196 | 11206 | "type": { |
|
11733 | 11743 | "name": "GlobPattern" |
11734 | 11744 | }, |
11735 | 11745 | "optional": true, |
11736 | | - "documentation": "A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.\n\n@since 3.18.0 - support for relative patterns.", |
11737 | | - "since": "3.18.0 - support for relative patterns." |
| 11746 | + "documentation": "A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.\n\n@since 3.18.0 - support for relative patterns. Whether clients support\nrelative patterns depends on the client capability\n`textDocuments.filters.relativePatternSupport`.", |
| 11747 | + "since": "3.18.0 - support for relative patterns. Whether clients support\nrelative patterns depends on the client capability\n`textDocuments.filters.relativePatternSupport`." |
11738 | 11748 | } |
11739 | 11749 | ], |
11740 | 11750 | "documentation": "A document filter where `language` is required field.\n\n@since 3.18.0", |
|
11767 | 11777 | "name": "GlobPattern" |
11768 | 11778 | }, |
11769 | 11779 | "optional": true, |
11770 | | - "documentation": "A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.\n\n@since 3.18.0 - support for relative patterns.", |
11771 | | - "since": "3.18.0 - support for relative patterns." |
| 11780 | + "documentation": "A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.\n\n@since 3.18.0 - support for relative patterns. Whether clients support\nrelative patterns depends on the client capability\n`textDocuments.filters.relativePatternSupport`.", |
| 11781 | + "since": "3.18.0 - support for relative patterns. Whether clients support\nrelative patterns depends on the client capability\n`textDocuments.filters.relativePatternSupport`." |
11772 | 11782 | } |
11773 | 11783 | ], |
11774 | 11784 | "documentation": "A document filter where `scheme` is required field.\n\n@since 3.18.0", |
|
11801 | 11811 | "kind": "reference", |
11802 | 11812 | "name": "GlobPattern" |
11803 | 11813 | }, |
11804 | | - "documentation": "A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.\n\n@since 3.18.0 - support for relative patterns.", |
11805 | | - "since": "3.18.0 - support for relative patterns." |
| 11814 | + "documentation": "A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.\n\n@since 3.18.0 - support for relative patterns. Whether clients support\nrelative patterns depends on the client capability\n`textDocuments.filters.relativePatternSupport`.", |
| 11815 | + "since": "3.18.0 - support for relative patterns. Whether clients support\nrelative patterns depends on the client capability\n`textDocuments.filters.relativePatternSupport`." |
11806 | 11816 | } |
11807 | 11817 | ], |
11808 | 11818 | "documentation": "A document filter where `pattern` is required field.\n\n@since 3.18.0", |
|
12345 | 12355 | } |
12346 | 12356 | ] |
12347 | 12357 | }, |
| 12358 | + { |
| 12359 | + "name": "TextDocumentFilterClientCapabilities", |
| 12360 | + "properties": [ |
| 12361 | + { |
| 12362 | + "name": "relativePatternSupport", |
| 12363 | + "type": { |
| 12364 | + "kind": "base", |
| 12365 | + "name": "boolean" |
| 12366 | + }, |
| 12367 | + "optional": true, |
| 12368 | + "documentation": "The client supports Relative Patterns.\n\n@since 3.18.0", |
| 12369 | + "since": "3.18.0" |
| 12370 | + } |
| 12371 | + ] |
| 12372 | + }, |
12348 | 12373 | { |
12349 | 12374 | "name": "CompletionClientCapabilities", |
12350 | 12375 | "properties": [ |
@@ -15365,17 +15390,17 @@ |
15365 | 15390 | "name": "ApplyKind", |
15366 | 15391 | "type": { |
15367 | 15392 | "kind": "base", |
15368 | | - "name": "string" |
| 15393 | + "name": "uinteger" |
15369 | 15394 | }, |
15370 | 15395 | "values": [ |
15371 | 15396 | { |
15372 | 15397 | "name": "Replace", |
15373 | | - "value": "replace", |
| 15398 | + "value": 1, |
15374 | 15399 | "documentation": "The value from the individual item (if provided and not `null`) will be\nused instead of the default." |
15375 | 15400 | }, |
15376 | 15401 | { |
15377 | 15402 | "name": "Merge", |
15378 | | - "value": "merge", |
| 15403 | + "value": 2, |
15379 | 15404 | "documentation": "The value from the item will be merged with the default.\n\nThe specific rules for mergeing values are defined against each field\nthat supports merging." |
15380 | 15405 | } |
15381 | 15406 | ], |
|
15827 | 15852 | } |
15828 | 15853 | ] |
15829 | 15854 | }, |
15830 | | - "documentation": "A document filter describes a top level text document or\na notebook cell document.\n\n@since 3.17.0 - proposed support for NotebookCellTextDocumentFilter.", |
15831 | | - "since": "3.17.0 - proposed support for NotebookCellTextDocumentFilter." |
| 15855 | + "documentation": "A document filter describes a top level text document or\na notebook cell document.\n\n@since 3.17.0 - support for NotebookCellTextDocumentFilter.", |
| 15856 | + "since": "3.17.0 - support for NotebookCellTextDocumentFilter." |
15832 | 15857 | }, |
15833 | 15858 | { |
15834 | 15859 | "name": "LSPObject", |
|
0 commit comments