Skip to content

Commit a561f13

Browse files
authored
Update meta model (#1572)
1 parent e237953 commit a561f13

1 file changed

Lines changed: 42 additions & 17 deletions

File tree

protocol/metaModel.json

Lines changed: 42 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5168,7 +5168,7 @@
51685168
"name": "CompletionItemDefaults"
51695169
},
51705170
"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",
51725172
"since": "3.17.0"
51735173
},
51745174
{
@@ -5178,7 +5178,7 @@
51785178
"name": "CompletionItemApplyKinds"
51795179
},
51805180
"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",
51825182
"since": "3.18.0"
51835183
},
51845184
{
@@ -9205,7 +9205,7 @@
92059205
"since": "3.17.0"
92069206
}
92079207
],
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",
92099209
"since": "3.17.0"
92109210
},
92119211
{
@@ -9218,7 +9218,7 @@
92189218
"name": "ApplyKind"
92199219
},
92209220
"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",
92229222
"since": "3.18.0"
92239223
},
92249224
{
@@ -9228,11 +9228,11 @@
92289228
"name": "ApplyKind"
92299229
},
92309230
"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",
92329232
"since": "3.18.0"
92339233
}
92349234
],
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",
92369236
"since": "3.18.0"
92379237
},
92389238
{
@@ -11191,6 +11191,16 @@
1119111191
"optional": true,
1119211192
"documentation": "Defines which synchronization capabilities the client supports."
1119311193
},
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+
},
1119411204
{
1119511205
"name": "completion",
1119611206
"type": {
@@ -11733,8 +11743,8 @@
1173311743
"name": "GlobPattern"
1173411744
},
1173511745
"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`."
1173811748
}
1173911749
],
1174011750
"documentation": "A document filter where `language` is required field.\n\n@since 3.18.0",
@@ -11767,8 +11777,8 @@
1176711777
"name": "GlobPattern"
1176811778
},
1176911779
"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`."
1177211782
}
1177311783
],
1177411784
"documentation": "A document filter where `scheme` is required field.\n\n@since 3.18.0",
@@ -11801,8 +11811,8 @@
1180111811
"kind": "reference",
1180211812
"name": "GlobPattern"
1180311813
},
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`."
1180611816
}
1180711817
],
1180811818
"documentation": "A document filter where `pattern` is required field.\n\n@since 3.18.0",
@@ -12345,6 +12355,21 @@
1234512355
}
1234612356
]
1234712357
},
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+
},
1234812373
{
1234912374
"name": "CompletionClientCapabilities",
1235012375
"properties": [
@@ -15365,17 +15390,17 @@
1536515390
"name": "ApplyKind",
1536615391
"type": {
1536715392
"kind": "base",
15368-
"name": "string"
15393+
"name": "uinteger"
1536915394
},
1537015395
"values": [
1537115396
{
1537215397
"name": "Replace",
15373-
"value": "replace",
15398+
"value": 1,
1537415399
"documentation": "The value from the individual item (if provided and not `null`) will be\nused instead of the default."
1537515400
},
1537615401
{
1537715402
"name": "Merge",
15378-
"value": "merge",
15403+
"value": 2,
1537915404
"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."
1538015405
}
1538115406
],
@@ -15827,8 +15852,8 @@
1582715852
}
1582815853
]
1582915854
},
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."
1583215857
},
1583315858
{
1583415859
"name": "LSPObject",

0 commit comments

Comments
 (0)