mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Support CompletionItemKind.Method
Previously, if a registered completion provider returned items with CompletionItemKind.Method, they would display in the list as properties, due to not being converted to the corresponding SuggestionType.
This commit is contained in:
@@ -240,6 +240,7 @@ export const CompletionItemKind = {
|
||||
|
||||
from(kind: types.CompletionItemKind): modes.SuggestionType {
|
||||
switch (kind) {
|
||||
case types.CompletionItemKind.Method: return 'method';
|
||||
case types.CompletionItemKind.Function: return 'function';
|
||||
case types.CompletionItemKind.Constructor: return 'constructor';
|
||||
case types.CompletionItemKind.Field: return 'field';
|
||||
|
||||
Reference in New Issue
Block a user