提交 70c630ce 编写于 作者: M Matt Bierner

Resolve completion items on click accept

Fixes #38636

**Bug**
When clicking on a suggestion to accept it, it may not have been resolved yet.

**Fix**
Make sure we resolve it after the click
上级 34c44f87
......@@ -498,7 +498,9 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
}
const item = e.elements[0];
this.onDidSelectEmitter.fire(item);
item.resolve().then(() => {
this.onDidSelectEmitter.fire(item);
});
alert(nls.localize('suggestionAriaAccepted', "{0}, accepted", item.suggestion.label));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册