-
Notifications
You must be signed in to change notification settings - Fork 29
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 checkout inline to SCM view #324
Conversation
@@ -16,6 +17,7 @@ const runTargetCommand = async ( | |||
|
|||
const target = basename(fsPath) | |||
const commandWithTarget = buildCommand(command, target) | |||
await ensureDir(cwd) |
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.
[F] There was a bug causing the underlying command to fail if the whole directory had been deleted.
@@ -112,31 +111,6 @@ describe('checkout', () => { | |||
}) | |||
}) | |||
|
|||
describe('checkoutRecursive', () => { |
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.
[F] This is the default behaviour of checkout
when a target is not specified.
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.
Great change!
… add-checkout-inline
This PR adds removes
checkoutRecursive
, replaces it withcheckoutTarget
and wires upcheckout
andcheckoutTarget
with our SCM view (as per #318).Another screen recording below
Screen.Recording.2021-04-26.at.3.51.21.pm.mov
As you can see I used the "discard" icon to try and fit in with the git extension. I also added the command inline into the scm/title to show that we can do this. That is prime real estate so we'll have to decide the most commonly used functions to go in there.
LMK if you have any questions.