Add additionalTextEdit and command conversion to CompletionItem

This commit is contained in:
rzj17
2019-12-31 10:20:30 +00:00
parent 656fff3b1e
commit fc50b4e4b5
2 changed files with 8 additions and 4 deletions

View File

@@ -417,7 +417,7 @@ export class ExtHostApiCommands {
};
return this._commands.executeCommand<modes.CompletionList>('_executeCompletionItemProvider', args).then(result => {
if (result) {
const items = result.suggestions.map(suggestion => typeConverters.CompletionItem.to(suggestion));
const items = result.suggestions.map(suggestion => typeConverters.CompletionItem.to(suggestion, this._commands.converter));
return new types.CompletionList(items, result.incomplete);
}
return undefined;