CompletionItemLabel#label -> name

This commit is contained in:
Pine Wu
2020-01-15 10:37:33 +01:00
parent 79a01a0f27
commit 31ec4fe434
11 changed files with 17 additions and 23 deletions

View File

@@ -859,7 +859,7 @@ class SuggestAdapter {
private _convertCompletionItem(item: vscode.CompletionItem, position: vscode.Position, id: extHostProtocol.ChainedCacheId): extHostProtocol.ISuggestDataDto | undefined {
const label = typeof item.label === 'string'
? item.label
: item.label.label;
: item.label.name;
if (typeof label !== 'string' || label.length === 0) {
this._logService.warn('INVALID text edit -> must have at least a label');