diff --git a/src/vs/editor/browser/standalone/standaloneLanguages.ts b/src/vs/editor/browser/standalone/standaloneLanguages.ts index 5479f5d0cab..3d22812fd34 100644 --- a/src/vs/editor/browser/standalone/standaloneLanguages.ts +++ b/src/vs/editor/browser/standalone/standaloneLanguages.ts @@ -353,6 +353,7 @@ interface ISuggestion2 extends modes.ISuggestion { } function convertKind(kind: CompletionItemKind): modes.SuggestionType { switch (kind) { + case CompletionItemKind.Method: return 'method'; case CompletionItemKind.Function: return 'function'; case CompletionItemKind.Constructor: return 'constructor'; case CompletionItemKind.Field: return 'field'; diff --git a/src/vs/workbench/api/node/extHostTypeConverters.ts b/src/vs/workbench/api/node/extHostTypeConverters.ts index e6ca0751d0e..53511be0c67 100644 --- a/src/vs/workbench/api/node/extHostTypeConverters.ts +++ b/src/vs/workbench/api/node/extHostTypeConverters.ts @@ -278,6 +278,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';