mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 12cb89c82e88e035f4ab630f1b9fcebac338dc03 (#5125)
This commit is contained in:
@@ -16,6 +16,9 @@ export function registerContextMenuListener(): void {
|
||||
y: options ? options.y : undefined,
|
||||
positioningItem: options ? options.positioningItem : undefined,
|
||||
callback: () => {
|
||||
// Workaround for https://github.com/Microsoft/vscode/issues/72447
|
||||
// It turns out that the menu gets GC'ed if not referenced anymore
|
||||
// As such we drag it into this scope so that it is not being GC'ed
|
||||
if (menu) {
|
||||
event.sender.send(CONTEXT_MENU_CLOSE_CHANNEL, contextMenuId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user