mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
api - encourage to set kind when creating a completion item
This commit is contained in:
@@ -18,13 +18,7 @@ export function activate(context) {
|
||||
provideCompletionItems(document, position, token) {
|
||||
const location = getLocation(document.getText(), document.offsetAt(position));
|
||||
if (location.path[1] === 'command') {
|
||||
return commands.then(ids => {
|
||||
return ids.map(id => {
|
||||
let item = new vscode.CompletionItem(id);
|
||||
item.kind = vscode.CompletionItemKind.Value;
|
||||
return item;
|
||||
});
|
||||
});
|
||||
return commands.then(ids => ids.map(id => new vscode.CompletionItem(id, vscode.CompletionItemKind.Value)));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user