mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
Fixes #4: Completion response type
This commit is contained in:
parent
7c15505bf7
commit
f9748aea55
1 changed files with 18 additions and 1 deletions
19
README.md
19
README.md
|
|
@ -914,7 +914,24 @@ _Request_
|
|||
* params: [`TextDocumentPositionParams`](#textdocumentposition)
|
||||
|
||||
_Response_
|
||||
* result: `CompletionItem[]`
|
||||
* result: `CompletionItem[] | CompletionList`
|
||||
```typescript
|
||||
/**
|
||||
* Represents a collection of [completion items](#CompletionItem) to be presented
|
||||
* in the editor.
|
||||
*/
|
||||
interface CompletionList {
|
||||
/**
|
||||
* This list it not complete. Further typing should result in recomputing
|
||||
* this list.
|
||||
*/
|
||||
isIncomplete: boolean;
|
||||
/**
|
||||
* The completion items.
|
||||
*/
|
||||
items: CompletionItem[];
|
||||
}
|
||||
```
|
||||
```typescript
|
||||
interface CompletionItem {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue