Repository: vscode
Issue: 'More Actions' context menu Inconsistency
Labels: bug,notebook-globaltoolbar

### Applies To

- [x] Notebooks (.ipynb files)
- [ ] Interactive Window and\/or Cell Scripts (.py files with \#%% markers)

### What happened?

Steps: Open Notebook, go to '...' (More Actions Menu) and click the button.

Expected Functionality: Pop-up context menu displayed until mouse clicks again or moves away from the context menu.

Outcome: Button opens context menu for ~250ms then automatically closes; it closes without any action taken including keyboard or mouse input. 

### VS Code Version

Version: 1.91.1 (user setup) Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729 Date: 2024-07-09T22:06:49.809Z Electron: 29.4.0 ElectronBuildId: 9728852 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.22631

### Jupyter Extension Version

2024.6.0

### Jupyter logs

```shell
Visual Studio Code (1.91.1, undefined, desktop)
Jupyter Extension Version: 2024.6.0.
Python Extension Version: 2024.10.0.
Pylance Extension Version: 2024.7.1.
Platform: win32 (x64).
Workspace folder ~\Documents\RESEARCH, Home = c:\Users\garre
13:24:34.015 [info] Starting Kernel (Python Path: ~\AppData\Local\Programs\Python\Python312\python.exe, Unknown, 3.12.3) for '~\Documents\RESEARCH\synth_data.ipynb' (disableUI=true)
13:24:35.070 [warn] Failed to get activated env vars for ~\AppData\Local\Programs\Python\Python312\python.exe in 1057ms
13:24:35.074 [warn] Failed to get activated env vars for ~\AppData\Local\Programs\Python\Python312\python.exe in 905ms
13:24:35.084 [info] Process Execution: ~\AppData\Local\Programs\Python\Python312\python.exe -c "import site;print("USER_BASE_VALUE");print(site.USER_SITE);print("USER_BASE_VALUE");"
13:24:35.145 [info] Process Execution: ~\AppData\Local\Programs\Python\Python312\python.exe -m pip list
13:24:35.153 [info] Process Execution: ~\AppData\Local\Programs\Python\Python312\python.exe -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
13:24:35.161 [info] Process Execution: ~\AppData\Local\Programs\Python\Python312\python.exe c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.6.0-win32-x64\pythonFiles\vscode_datascience_helpers\kernel_interrupt_daemon.py --ppid 15664
    > cwd: ~\.vscode\extensions\ms-toolsai.jupyter-2024.6.0-win32-x64\pythonFiles\vscode_datascience_helpers
13:24:35.492 [info] Process Execution: ~\AppData\Local\Programs\Python\Python312\python.exe -m ipykernel_launcher --f=c:\Users\~\AppData\Roaming\jupyter\runtime\kernel-v2-15664HDPMBYKFZetJ.json
    > cwd: ~\Documents\RESEARCH
13:24:36.493 [info] Kernel successfully started
13:24:36.506 [warn] Failed to get activated env vars for ~\AppData\Local\Programs\Python\Python312\python.exe in 6ms
13:24:36.514 [info] Process Execution: ~\AppData\Local\Programs\Python\Python312\python.exe c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.6.0-win32-x64\pythonFiles\printJupyterDataDir.py
```


### Coding Language and Runtime Version

_No response_

### Language Extension Version (if applicable)

_No response_

### Anaconda Version (if applicable)

_No response_

### Running Jupyter locally or remotely?

None