mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
Move the checks on abbreviations to helper module
This commit is contained in:
@@ -33,7 +33,7 @@ export class DefaultCompletionItemProvider implements vscode.CompletionItemProvi
|
||||
|
||||
let result: vscode.CompletionList = doComplete(document, position, syntax, getEmmetConfiguration());
|
||||
let newItems: vscode.CompletionItem[] = [];
|
||||
if (result.items) {
|
||||
if (result && result.items) {
|
||||
result.items.forEach(item => {
|
||||
let newItem = new vscode.CompletionItem(item.label);
|
||||
newItem.documentation = item.documentation;
|
||||
|
||||
Reference in New Issue
Block a user