From d033d03d429085bb23494489bae644823e18381d Mon Sep 17 00:00:00 2001 From: Dante-Di-Domenico Date: Thu, 16 Sep 2021 13:25:41 -0400 Subject: [PATCH] Added missing constants in `theia.d.ts` --- packages/plugin-ext/src/plugin/type-converters.ts | 4 ++++ packages/plugin-ext/src/plugin/types-impl.ts | 4 +++- packages/plugin/src/theia.d.ts | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/plugin-ext/src/plugin/type-converters.ts b/packages/plugin-ext/src/plugin/type-converters.ts index ec5fcc2bfcfd6..447b1544dfcad 100644 --- a/packages/plugin-ext/src/plugin/type-converters.ts +++ b/packages/plugin-ext/src/plugin/type-converters.ts @@ -272,6 +272,8 @@ export function fromCompletionItemKind(kind?: types.CompletionItemKind): model.C case types.CompletionItemKind.Event: return model.CompletionItemKind.Event; case types.CompletionItemKind.Operator: return model.CompletionItemKind.Operator; case types.CompletionItemKind.TypeParameter: return model.CompletionItemKind.TypeParameter; + case types.CompletionItemKind.User: return model.CompletionItemKind.User; + case types.CompletionItemKind.Issue: return model.CompletionItemKind.Issue; } return model.CompletionItemKind.Property; } @@ -303,6 +305,8 @@ export function toCompletionItemKind(kind?: model.CompletionItemKind): types.Com case model.CompletionItemKind.Event: return types.CompletionItemKind.Event; case model.CompletionItemKind.Operator: return types.CompletionItemKind.Operator; case model.CompletionItemKind.TypeParameter: return types.CompletionItemKind.TypeParameter; + case model.CompletionItemKind.User: return types.CompletionItemKind.User; + case model.CompletionItemKind.Issue: return types.CompletionItemKind.Issue; } return types.CompletionItemKind.Property; } diff --git a/packages/plugin-ext/src/plugin/types-impl.ts b/packages/plugin-ext/src/plugin/types-impl.ts index f15792f7ae1d7..740d95f2d774b 100644 --- a/packages/plugin-ext/src/plugin/types-impl.ts +++ b/packages/plugin-ext/src/plugin/types-impl.ts @@ -892,7 +892,9 @@ export enum CompletionItemKind { Struct = 21, Event = 22, Operator = 23, - TypeParameter = 24 + TypeParameter = 24, + User = 25, + Issue = 26 } @es5ClassCompat diff --git a/packages/plugin/src/theia.d.ts b/packages/plugin/src/theia.d.ts index 880018e7fb0c2..bfb746a70d9c6 100644 --- a/packages/plugin/src/theia.d.ts +++ b/packages/plugin/src/theia.d.ts @@ -7014,7 +7014,9 @@ declare module '@theia/plugin' { Struct = 21, Event = 22, Operator = 23, - TypeParameter = 24 + TypeParameter = 24, + User = 25, + Issue = 26 } /**