use map over switch, "more strict" signature, don't send default type, https://github.com/microsoft/vscode/issues/95325

This commit is contained in:
Johannes Rieken
2020-04-16 14:48:30 +02:00
parent e14cf0ff92
commit ab24124841
4 changed files with 66 additions and 64 deletions

View File

@@ -406,7 +406,7 @@ export class MainThreadLanguageFeatures implements MainThreadLanguageFeaturesSha
return {
label: data[ISuggestDataDtoField.label2] || data[ISuggestDataDtoField.label],
kind: data[ISuggestDataDtoField.kind],
kind: data[ISuggestDataDtoField.kind] || modes.CompletionItemKind.Property,
tags: data[ISuggestDataDtoField.kindModifier],
detail: data[ISuggestDataDtoField.detail],
documentation: data[ISuggestDataDtoField.documentation],