-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
[Feature Request] Feedback for contribution point "editor/title/run" #117722
Comments
Our idea is that the menu is used for run- and debug-commands |
//cc @weinand |
Now if I want to run my code, I need to click twice :( Previously one click was enough. Can you add a setting that sets a default behavior for the button? If you click on it once, "Run Code" should be the default. Clicking twice is a pain. |
The Java side also has a user mentioned about the Clicking twice is a pain |
I'd love an option to revert back to the previous button. This new feature has not once worked properly for me because it closes just as fast as it opens by itself. Seems to be a bug that I have been tracking for the past few days. |
Clicking twice really is a pain, would appreciate if a 'Select Default Option' was available for different languages. P.S. Happening in Python |
@Parminder51 "Happening in Python" : what do you mean? Do you have a link for more info? |
@jabbalaci When I'm trying to click the run button, the context menu pops up. A few days back it would just run the file with the coderunner extension. Now I have to select again and again whether to run using the python extension or coderunner extension. |
@Parminder51 OK, I misunderstood. When you wrote "Happening in Python", I thought a solution for Python was under way. Yes, I also noticed this double-click problem and it also bothers me. I hope there will be a solution for this soon. |
For those of you with the problem, are those two contributions to the new |
I have the same problem with @Parminder51 |
@gjsjohnmurray Usually the Python extension's button is hidden if the Code Runner extension is enabled, and it was working fine. But now when you click on it, the context menu pops up. I hope to use the Code Runner extension but there is no way to remove the run button in the Python extension, I checked for it and found this. https://github.com/microsoft/vscode-python/issues/6921. |
I suggest we agument toolbar submenu actions with some indicator that it's going to be a dropdown. This should help in the user's perception of what will happen when they click it. For this specific toolbar submenu action, the Run, maybe it's best to further change it to behave like debug: a UI piece with two click zones, one for the default and another for the dropdown which, when selected, would run and change the default. |
Now that we have hover feedback on toolbar actions (via #120226) I think it now makes sense to explore what adding affordances to split buttons could look like to improve their usability. Here are a few concepts: |
Option 3 |
Vote for option 3. The background color indicates that the |
I just pushed the new This powers the terminal's button in the same style: It's basically the 3rd option but with a negative left margin on the right button so that the 2 buttons are closer together like option 2, this is particularly important to help distinguish the related |
@isidorn raised the question whether selecting a drop down menu action should only select or select and execute the action. For comparison here is the current behavior: |
I was just concerned if we have other places in our UI where selecting something also runs it. I would still slightly lean towards that selection should not run because:
|
Another thing to consider: if the actions in the drop down menu do not have different icons, then selecting them without executing them will not have any visual effect on the split button since the icon does not change. This is different from the debug config dropdown where the unique name of a configuration is shown. |
@misolori I was not aware that we also do this in the terminal. |
I've released the feature. Please try it in the next Insiders. |
@jdneo interesting. I'm not seeing this with Mock Debug... Will investigate with Java |
Yes, I can reproduce with the Java extension. Workaround: add a |
I noticed some weird behavior with which title is shown on the button. To replicate:
Version info: |
Hi @weinand thank you for the fixing. Now the dropdown arrow works pretty well. There is another problem though, after switching the active run action via the arrow, then the run/debug button itself becomes unclickable(no response after clicking). |
@andreamah I can reproduce the problem you are seeing. I'll investigate... |
@andreamah @jdneo I've added a workaround and I could no longer reproduce the problem in the webview sample and in the Java extension. |
Thank you @weinand, I just played it in the newest insider, everything works great now! |
// This is a follow-up issue for #114123, cc @jrieken
Thanks to the team to provide a centralized contribution point for the
run
button. Here are some feedback for consideration.debug
(editor/title/debug)? In that case the user can just have one click if each contribution(run and debug) just has one entry.The text was updated successfully, but these errors were encountered: