提交 c1d07a60 编写于 作者: R Rob Lourens

Fix potential submenu leak #62829

上级 aa98c222
......@@ -413,6 +413,7 @@ export class SearchTreeController extends WorkbenchTreeController {
public onContextMenu(tree: WorkbenchTree, element: any, event: ContextMenuEvent): boolean {
if (!this.contextMenu) {
this.contextMenu = this.menuService.createMenu(MenuId.SearchContext, tree.contextKeyService);
this.disposables.push(this.contextMenu);
}
tree.setFocus(element, { preventOpenOnFocus: true });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册