Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompletionItemKind: add enum values User and Issue #10123

Merged
merged 1 commit into from
Sep 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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