Skip to content
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

Terminal quick fix title should show the command that should be run #161907

Closed
isidorn opened this issue Sep 27, 2022 · 6 comments · Fixed by #162083
Closed

Terminal quick fix title should show the command that should be run #161907

isidorn opened this issue Sep 27, 2022 · 6 comments · Fixed by #162083
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders polish Cleanup and polish issue terminal-quick-fix verified Verification succeeded

Comments

@isidorn
Copy link
Contributor

isidorn commented Sep 27, 2022

Testing #161846

  1. git checkout -b lalala
  2. git push
  3. Notice quick fix title is "git push lalala". Title should be what will actually be run git push --set-upstream origin lalala

Right now the user does not know what will be run, so it is surprising and does not give confidence.

Screenshot 2022-09-27 at 10 20 01

@meganrogge
Copy link
Contributor

Not sure if we want to show all of those details - maybe we could on hover of the action?

@meganrogge meganrogge added under-discussion Issue is under discussion for relevance, priority, approach terminal-quick-fix labels Sep 27, 2022
@isidorn
Copy link
Contributor Author

isidorn commented Sep 27, 2022

If you do not want to render all the details then I suggest to render the first n characters and render ... at the end. That way the user can understand that we only took the beginning

And 👍 for on hover to show the whole thing

@meganrogge meganrogge added bug Issue identified by VS Code Team member as probable bug polish Cleanup and polish issue and removed under-discussion Issue is under discussion for relevance, priority, approach labels Sep 27, 2022
@meganrogge meganrogge added this to the September 2022 milestone Sep 27, 2022
@Tyriar
Copy link
Member

Tyriar commented Sep 27, 2022

#161599 is is about coding convenience, plus this issue. For simple commands like this we should always show the full thing without hover imo (hovering also can't happen on native dropdowns). This will increase the user's trust in the feature

@isidorn
Copy link
Contributor Author

isidorn commented Sep 27, 2022

Agreed. We could have a long command cutoff limit - 50 characters for example. After that we can render elipses ...

@Tyriar
Copy link
Member

Tyriar commented Sep 27, 2022

Commands that long are probably too complicated anyway, such as how we free the port which is a little different as it's handled outside of the terminal

@Tyriar
Copy link
Member

Tyriar commented Sep 27, 2022

I think we should also show the URL we're navigating to

const label = localize("terminal.gitCreatePr", "Create PR");

A good example of why this trust is important is because this:

image

Was navigating to https://github.com/microsoft/vscode/compare/tyriar/wording%20%20%20%20%20%20%20%20remote:To%20https:/github.com/microsoft/vscode%20*%20%5Bnew%20branch%5D%20%20%20%20%20%20%20%20%20%20%20%20%20%20tyriar/wording%20-%3E%20tyriar/wordingBranch%20'tyriar/wording'%20set%20up%20to%20track%20remote%20branch%20'tyriar/wording'%20from%20'origin'.?expand=1 due to a bug (#162074). If a user clicked "Create PR" and they go there, they may never use the feature again

@vscodenpa vscodenpa added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Sep 28, 2022
@isidorn isidorn added the verified Verification succeeded label Sep 30, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders polish Cleanup and polish issue terminal-quick-fix verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants