Skip to content

Commit

Permalink
Added missing constants in theia.d.ts (#10123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archie27376 authored Sep 20, 2021
1 parent 8618183 commit 8695b1e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/plugin-ext/src/plugin/type-converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 3 additions & 1 deletion packages/plugin-ext/src/plugin/types-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,9 @@ export enum CompletionItemKind {
Struct = 21,
Event = 22,
Operator = 23,
TypeParameter = 24
TypeParameter = 24,
User = 25,
Issue = 26
}

@es5ClassCompat
Expand Down
4 changes: 3 additions & 1 deletion packages/plugin/src/theia.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7014,7 +7014,9 @@ declare module '@theia/plugin' {
Struct = 21,
Event = 22,
Operator = 23,
TypeParameter = 24
TypeParameter = 24,
User = 25,
Issue = 26
}

/**
Expand Down

0 comments on commit 8695b1e

Please sign in to comment.