mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
Fixes #279
This commit is contained in:
parent
fcb32f9831
commit
f2aeca53d5
2 changed files with 2 additions and 1 deletions
|
|
@ -440,7 +440,7 @@ If multiple `TextEdit`s are applied to a text document, all text edits describe
|
|||
|
||||
>#### New: TextDocumentEdit
|
||||
|
||||
Describes textual changes on a single text document. The text document is referred to as a `VersionedTextDocumentIdentifier` to allow clients to check the text document version before an edit is applied.
|
||||
Describes textual changes on a single text document. The text document is referred to as a `VersionedTextDocumentIdentifier` to allow clients to check the text document version before an edit is applied. A `TextDocumentEdit` describes all changes on a version Si and after they are applied move the document to version Si+1. So the creator of a `TextDocumentEdit` doesn't need to sort the array or do any kind of ordering. However the edits must be non overlapping.
|
||||
|
||||
```typescript
|
||||
export interface TextDocumentEdit {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue