Add type definitions for enums (#1511)

This commit is contained in:
Dirk Bäumer 2022-06-30 14:32:38 +02:00 committed by GitHub
parent 7b4ee2073b
commit e8eea88938
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 1 deletions

View file

@ -31,5 +31,8 @@
"unregistrations",
"upcase",
"workspaceedit"
],
"git.branchProtection": [
"gh-pages"
]
}

View file

@ -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.

View file

@ -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>

View file

@ -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.

View file

@ -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>

View file

@ -205,4 +205,6 @@ export namespace FileChangeType {
*/
export const Deleted = 3;
}
export type FileChangeType = 1 | 2 | 3;
```