-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI shows the wrong keyboard shortcut with "when": "isRPackage"
or when RStudio Keymap is enabled
#2150
Comments
"when": "isRPackage"
"when": "isRPackage"
I can't tell from this screenshot, where I just see Shiny-related files. Just to confirm: the current workspace is an R package? If you actually press Ctrl + Shift + E, do you get |
Yes, But that same keyboard shortcut is the default VS-code key for switching to the files pane. |
This is a bit of "passing the buck" but I wonder if VS Code has hard-wired that UI (the hint about the keyboard shortcut) when really it shouldn't? |
"when": "isRPackage"
"when": "isRPackage"
or when RStudio Keymap is enabled
We have collected a number of issues that are related to this problem where the UI always shows a built-in keybinding, even when that keybinding does not apply to that action. The user might end up looking at the UI and trying that keybinding, but it does something completely different. So far this has come up in situations like Related:
If we tackle and totally resolve #3993, that will not solve this issue, which is kind of the opposite problem. This happens in VS Code itself, but it feels worse in Positron because we bundle more extensions and have more |
We have at least one keyboard short specific to R packages that overrides a VS Code default:
positron/extensions/positron-r/package.json
Lines 329 to 334 in 39ff5aa
During usability testing with @andrie we noticed that the UI does not reflect that override:
I don't know how hard-coded these are and whether we might consider removing them or otherwise dealing with this. It does seem bad that you see that shortcut suggested when that is not what it will do.
The text was updated successfully, but these errors were encountered: