mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
Add type definitions for enums (#1511)
This commit is contained in:
parent
7b4ee2073b
commit
e8eea88938
6 changed files with 14 additions and 1 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
|
@ -31,5 +31,8 @@
|
|||
"unregistrations",
|
||||
"upcase",
|
||||
"workspaceedit"
|
||||
],
|
||||
"git.branchProtection": [
|
||||
"gh-pages"
|
||||
]
|
||||
}
|
||||
|
|
@ -746,6 +746,8 @@ export namespace CompletionItemKind {
|
|||
export const Operator = 24;
|
||||
export const TypeParameter = 25;
|
||||
}
|
||||
|
||||
export type CompletionItemKind = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25;
|
||||
```
|
||||
* partial result: `CompletionItem[]` or `CompletionList` followed by `CompletionItem[]`. If the first provided result item is of type `CompletionList` subsequent partial results of `CompletionItem[]` add to the `items` property of the `CompletionList`.
|
||||
* error: code and message set in case an exception happens during the completion request.
|
||||
|
|
|
|||
|
|
@ -148,6 +148,8 @@ export namespace SymbolKind {
|
|||
export const Operator = 25;
|
||||
export const TypeParameter = 26;
|
||||
}
|
||||
|
||||
export type SymbolKind = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26;
|
||||
```
|
||||
|
||||
<div class="anchorHolder"><a href="#symbolTag" name="symbolTag" class="linkableAnchor"></a></div>
|
||||
|
|
|
|||
|
|
@ -244,7 +244,9 @@ export namespace InlayHintKind {
|
|||
* An inlay hint that is for a parameter.
|
||||
*/
|
||||
export const Parameter = 2;
|
||||
};
|
||||
}
|
||||
|
||||
export type InlayHintKind = 1 | 2;
|
||||
```
|
||||
|
||||
* error: code and message set in case an exception happens during the inlay hint request.
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ export namespace PrepareSupportDefaultBehavior {
|
|||
*/
|
||||
export const Identifier: 1 = 1;
|
||||
}
|
||||
|
||||
export type PrepareSupportDefaultBehavior = 1;
|
||||
```
|
||||
|
||||
<div class="anchorHolder"><a href="#renameClientCapabilities" name="renameClientCapabilities" class="linkableAnchor"></a></div>
|
||||
|
|
|
|||
|
|
@ -205,4 +205,6 @@ export namespace FileChangeType {
|
|||
*/
|
||||
export const Deleted = 3;
|
||||
}
|
||||
|
||||
export type FileChangeType = 1 | 2 | 3;
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue