mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 19:12:57 +00:00
Fixes Microsoft/monaco-editor#772: Avoid NPE
This commit is contained in:
parent
af6cc15110
commit
472ede0442
1 changed files with 3 additions and 1 deletions
|
@ -176,7 +176,9 @@ class Renderer implements IRenderer<ICompletionItem, ISuggestionTemplateData> {
|
|||
}
|
||||
|
||||
disposeTemplate(templateData: ISuggestionTemplateData): void {
|
||||
if (templateData.highlightedLabel) {
|
||||
templateData.highlightedLabel.dispose();
|
||||
}
|
||||
templateData.disposables = dispose(templateData.disposables);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue