-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Allow for Editor Action icons to be shown on inactive Editor Groups #209962
Comments
Maybe as a setting? One thing we have to ensure is not broken is that these actions get the right context. When you click on them while the other group is active, they might make wrong assumptions about which group is active because that state only updates based on focus changes. |
This is not easily possible currently due to context keys and focus Code_-_OSS_NrL4eyLtq5.mp4 |
I completely understand given the context of the desktop environment, and working specifically with side-by-side code. For the extension in the .dev web context where we have curriculum on one side and code on the right, we're facing discoverability issues from new users in EDU, even with prompting - who can't "see" the run button unless focused in that panel. Also, adding these two HITS reports which talk about user discoverability of the run button: Just to clarify, is it something that is possible and can be worked on and could be accessed as a setting or another option, or not possible? CC: Adding @bamurtaugh to this issue. |
I think we should be able to figure out a solution for your case. I currently see two options:
Option 2. seems more likely currently, but requires more investigation. I'll have a closer look next week and follow up here |
@IanMatthewHuff @asmeets in tomorrows insiders we will support the There is still some work to be done for our existing actions such as making sure they extract the context correctly. |
@benibenj Thanks so much! Excited to check it out. |
For our extension (VS Code for Education) we have a main webview content pane parked in editor group 1 that hosts our lesson content and we often have a runnable code file parked in editor group 2. To help students with running their code files, we provide a run Editor Action that we add to the editor actions for code files. We also don't show the usual run and debug sidebar section in our basic student profiles, so they need to run via the file editor actions.
Our discoverability problem with this is that in our default layout focus is usually in the lesson content where students are reading text, navigating lesson parts, or answering questions. This means that most of the time the run button on the code file is invisible, and only shows up when clicking over to it. We've seen a lot of new students stuck on initially finding out how to run their code files.
Ideally, we'd like some way to work around this, either by a general setting we could turn on to show all editor actions in inactive windows, or by letting specific editor action contributions opt into being shown on inactive editor groups. So here we could opt in all or specific primary actions:
vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.ts
Line 1619 in fb757ca
@asmeets
The text was updated successfully, but these errors were encountered: