-
Notifications
You must be signed in to change notification settings - Fork 8.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
Add a splitPane option to duplicate current profile #4683
Conversation
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.
I'd really love if we could add some tests for scenarios using this setting as well :)
Overall I'm pretty happy with this. I think with the few pieces you're missing, this will be easy to sign off on
@msftbot make sure @DHowett-MSFT signs off on this |
Hello @zadjii-msft! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
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.
This looks good to me. Thanks!
@zadjii-msft Hey, sorry to disturb again but I'm still not able to deploy it to test my changes. The 'bcz' command gives me a couple of warnings but says that the build succeeded. When I try to deploy the solution though I run into different kinds of errors. Can you please help me out on testing this. |
@Surya-06 I've frankly never seen that error before D: I'm not sure how that'd even happen... Does Maybe try just building the solution directly from VS, then running it there? There's pretty minor differences between how VS builds the solution and how plain-old MsBuild (which I'll pull your branch locally to test myself and make sure. |
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.
Okay, checked this out and built this locally. The suggestion I've made is needed to prevent a runtime exception. Without this line, it's possible that realGuid
is never initialized. Fix that, and you'll be good to go.
Change for exception as suggested. Co-Authored-By: Mike Griese <[email protected]>
@zadjii-msft I have committed your suggestion to handle the exception you pointed out. Let me know if I've missed anything. |
@zadjii-msft Hey, I've finally been able to deploy and run the terminal. Is the key that I created enough to create a keyboard shortcut? If not is there a guide on how to create the shortcuts. |
@Surya-06 yep, it works just fine for me :) |
can you tell me how you added the keyboard shortcut. i tried action as splitPane with splitMode as arg, i tried the value as 0/1 and also "duplicate" but couldn't see the result. |
No problem, I just threw it on: { "command": { "action": "splitPane", "split":"auto", "splitMode": "duplicate" }, "keys": [ "ctrl+alt+t" ] }, |
@zadjii-msft Finally everything fell into place on my machine and I could use my changes. Thanks for all the help. Hope to contribute more!!! 😃 |
@DHowett @carlos-zamora @miniksa @leonMSFT Can any of you please take a look at this, it's been a week since the last review. Thanks ! |
Yeah, sure. Though I'm not sure why @zadjii-msft requested @DHowett-MSFT for sign-off. I'll confer with him about it. |
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.
OK, I approve. It looks good. But @zadjii-msft said that he and @DHowett-MSFT had a verbal discussion about this, so I want to prod @DHowett-MSFT to be final check before it merges. I'll bother him today.
@msftbot make sure @DHowett-MSFT signs off on this |
Hello @miniksa! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
@miniksa Thanks for the quick reply. Do let me know if something needs to be done. |
If your branch has maintainer access turned on, I'm going to push a commit that fixes the line endings making it difficult to review/making everything conflict w/ ActionAndArgs |
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.
This looks great to me. Thanks!
(Sorry we sat on a relatively well-contained change for two weeks!) |
Thanks for responding so quick @DHowett-MSFT . |
Saw this in the release notes, but I can't seem to configure it in the |
@say25 okay we can only help you if you share with us what you've tried |
You need to update to the latest version (0.10.761.0), then it works. Still, the schema is not giving me the splitMode property, on VSCode, but it works anyway. This is what I'm using: { "command": { "action": "splitPane", "split": "horizontal", "splitMode": "duplicate"}, "keys": "alt+shift+-" },
{ "command": { "action": "splitPane", "split": "vertical", "splitMode": "duplicate"}, "keys": "alt+shift+plus" }, |
Yea its more that it doesn't show in the schema but im trying:
|
So, you almost certainly want the |
Well I actually kinda have an "odd use case" basically I'll be at one directory and/or have some amount of env. variables set in the shell (AWS/Azure creds) and then I need to switch from bash to powershell or vice versa. Maybe this feature doesnt entirely address that but it looked like it might |
This change adds the ability to configure a pane to split by duplicating the current profile
Closes #1756