mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
next try to fix #26524
This commit is contained in:
@@ -554,7 +554,7 @@ class SuggestAdapter {
|
||||
}
|
||||
|
||||
private _convertCompletionItem(item: vscode.CompletionItem, position: vscode.Position, defaultRange: vscode.Range): modes.ISuggestion {
|
||||
if (!item.label) {
|
||||
if (typeof item.label !== 'string' || item.label.length === 0) {
|
||||
console.warn('INVALID text edit -> must have at least a label');
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user