-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Change Create New Terminal
to focus accordingly to the terminal location
#237404
base: main
Are you sure you want to change the base?
Change Create New Terminal
to focus accordingly to the terminal location
#237404
Conversation
9ded0d7
to
e00c8eb
Compare
Hi, thanks for working on this. From the code, I'm not sure it will work. |
Hi! Thanks for replying. It seems to work, feel free to test & review when you have time. Also, should I update the branch when it's ready for review or when it's on merge queue? Doing so sounds like it will waste CI time. |
shouldn't we be checking the location of the terminal to determine if we should focus the panel, vs doing so only when process support is not registered?
or perhaps the call to show panel is no longer needed? |
vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.ts Lines 1708 to 1715 in e00c8eb
That's why I wanted you to check, I'm not familliar with the codebase and I didn't research what's (tl;dr: i don't know much better but it should be logically same while not annoying me when it spawns a terminal on editor area) |
in "Create New Terminal (In Active Workspace)" Co-authored-by: Megan Rogge <[email protected]>
e00c8eb
to
fad4abf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Solves #237192 by using focusActiveTerminal.
I am not familliar with the codebase, so, please review if the else block is still needed.
vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.ts
Lines 313 to 325 in 9ded0d7
Have a nice day!
I'll undraft the PR as soon as it compiles on my machine and I verify it's working nicely.