mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-28 23:58:23 +01:00
context menu - add comment for when position is undefined
This commit is contained in:
@@ -158,6 +158,9 @@ class NativeContextMenuService extends Disposable implements IContextMenuService
|
||||
} else if (isAnchor(anchor)) {
|
||||
x = anchor.x;
|
||||
y = anchor.y;
|
||||
} else {
|
||||
// We leave x/y undefined in this case which will result in
|
||||
// Electron taking care of opening the menu at the cursor position.
|
||||
}
|
||||
|
||||
if (typeof x === 'number') {
|
||||
|
||||
Reference in New Issue
Block a user