Skip to content

Commit 119ed02

Browse files
authored
Revert #2087 (#2102)
1 parent 89f63b3 commit 119ed02

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

_specifications/lsp/3.18/language/completion.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export interface CompletionClientCapabilities {
171171
* Specifies whether the client supports `CompletionList.applyKind` to
172172
* indicate how supported values from `completionList.itemDefaults`
173173
* and `completion` will be combined.
174-
*
174+
*
175175
* If a client supports `applyKind` it must support it for all fields
176176
* that it supports that are listed in `CompletionList.applyKind`. This
177177
* means when clients add support for new/future fields in completion
@@ -406,13 +406,13 @@ export interface CompletionList {
406406
/**
407407
* Specifies how fields from a completion item should be combined with those
408408
* from `completionList.itemDefaults`.
409-
*
409+
*
410410
* If unspecified, all fields will be treated as ApplyKind.Replace.
411-
*
411+
*
412412
* If a field's value is ApplyKind.Replace, the value from a completion item
413413
* (if provided and not `null`) will always be used instead of the value
414414
* from `completionItem.itemDefaults`.
415-
*
415+
*
416416
* If a field's value is ApplyKind.Merge, the values will be merged using
417417
* the rules defined against each field below.
418418
*
@@ -426,14 +426,14 @@ export interface CompletionList {
426426
/**
427427
* Specifies whether commitCharacters on a completion will replace or be
428428
* merged with those in `completionList.itemDefaults.commitCharacters`.
429-
*
429+
*
430430
* If ApplyKind.Replace, the commit characters from the completion item
431431
* will always be used unless not provided, in which case those from
432432
* `completionList.itemDefaults.commitCharacters` will be used. An
433433
* empty list can be used if a completion item does not have any commit
434434
* characters and also should not use those from
435435
* `completionList.itemDefaults.commitCharacters`.
436-
*
436+
*
437437
* If ApplyKind.Merge the commitCharacters for the completion will be
438438
* the union of all values in both
439439
* `completionList.itemDefaults.commitCharacters` and the completion's
@@ -446,17 +446,17 @@ export interface CompletionList {
446446
/**
447447
* Specifies whether the `data` field on a completion will replace or
448448
* be merged with data from `completionList.itemDefaults.data`.
449-
*
449+
*
450450
* If ApplyKind.Replace, the data from the completion item will be used
451451
* if provided (and not `null`), otherwise
452452
* `completionList.itemDefaults.data` will be used. An empty object can
453453
* be used if a completion item does not have any data but also should
454454
* not use the value from `completionList.itemDefaults.data`.
455-
*
455+
*
456456
* If ApplyKind.Merge, a shallow merge will be performed between
457457
* `completionList.itemDefaults.data` and the completion's own data
458458
* using the following rules:
459-
*
459+
*
460460
* - If a completion's `data` field is not provided (or `null`), the
461461
* entire `data` field from `completionList.itemDefaults.data` will be
462462
* used as-is.
@@ -881,8 +881,6 @@ The `body` of a snippet can use special constructs to control cursors and the te
881881

882882
With tab stops, you can make the editor cursor move inside a snippet. Use `$1`, `$2`, and so on to specify cursor locations. The number is the order in which tab stops will be visited. Multiple tab stops are linked and updated in sync.
883883

884-
The `$0` tab stop denotes the final cursor position. This tab stop should not be combined with other snippet syntax - placeholders, choices, variables or transforms - it should only take the form `$0`.
885-
886884
##### Placeholders
887885

888886
Placeholders are tab stops with values, like `${1:foo}`. The placeholder text will be inserted and selected such that it can be easily changed. Placeholders can be nested, like `${1:another ${2:placeholder}}`.

0 commit comments

Comments
 (0)