提交 6c04bb4b 编写于 作者: R Ramya Achutha Rao

Re-render suggestion item when resolved Microsoft/monaco-editor#781

上级 ae5f6d25
......@@ -597,6 +597,12 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
this.currentSuggestionDetails = item.resolve()
.then(() => {
// item can have extra information, so re-render
this.ignoreFocusEvents = true;
this.list.splice(index, 1, [item]);
this.list.setFocus([index]);
this.ignoreFocusEvents = false;
if (this.expandDocsSettingFromStorage()) {
this.showDetails();
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册