You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UPDATE: vscode v90 introduced an optional workbench.editor.alwaysShowEditorActions setting. Setting this to true improves the experience here. Namely the run button will not disappear when running commands or selecting its dropdown. There does still seem to be a problem with the last selected command intermittently not persisting.
There appears to be a vscode bug where custom webview panels steal focus when editor title menus are clicked.
editor/title/run menu
toolbar overflow button ...
A related bug is that once the custom panel is visible, trying to change the active run command will not work. I assume this is a side effect of the first bug.
To reproduce in the dh-vscode extension:
Setup
Open a dh python script
Click the run button (should see it connect and panel open on right)
Button Hiding
Try clicking the dropdown arrow beside the run button or the overflow menu
The panel tab steals the focus which causes the run button to disappear
Broken Selection
Clicking on different run action won't actually change to the new action
Workarounds
To get the hidden button to return, click on a panel outside of the editor and click back into the editor
If you need to switch between Run Deephaven file and Run Deephaven selected lines, just make sure there are no visible dh panels either by closing the panels or by opening another file over top of it. Once you switch the cmd, the panels can be visible, and you should be able to run the command as many times as you want by clicking the play button directly.
e.g. The issue will persist as long as static_table is the visible tab. If you change it to vscode-demo.py, things will work as expected in vscode-ext-testing.py.
We may not have any way to fix this barring submitting a PR to the vscode repo, so we may need to expose our run commands a different way to improve the user experience.
The text was updated successfully, but these errors were encountered:
There appears to be a
vscode
bug where custom webview panels steal focus when editor title menus are clicked....
A related bug is that once the custom panel is visible, trying to change the active run command will not work. I assume this is a side effect of the first bug.
To reproduce in the dh-vscode extension:
Setup
Button Hiding
Broken Selection
Clicking on different run action won't actually change to the new action
Workarounds
Run Deephaven file
andRun Deephaven selected lines
, just make sure there are no visible dh panels either by closing the panels or by opening another file over top of it. Once you switch the cmd, the panels can be visible, and you should be able to run the command as many times as you want by clicking the play button directly.e.g. The issue will persist as long as
static_table
is the visible tab. If you change it tovscode-demo.py
, things will work as expected invscode-ext-testing.py
.Related Issues (seem to be the root cause)
These 2 vscode issues seem to be related:
We may not have any way to fix this barring submitting a PR to the vscode repo, so we may need to expose our run commands a different way to improve the user experience.
The text was updated successfully, but these errors were encountered: