-
Notifications
You must be signed in to change notification settings - Fork 255
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
feat: Uses cwd as default workspace folder #956
base: main
Are you sure you want to change the base?
Conversation
@microsoft-github-policy-service agree |
I agree that this would make life easier and I don't understand why it wasn't by default |
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 for the PR! Left a few comments.
@@ -507,7 +497,7 @@ function buildOptions(y: Argv) { | |||
'user-data-folder': { type: 'string', description: 'Host path to a directory that is intended to be persisted and share state between sessions.' }, | |||
'docker-path': { type: 'string', description: 'Docker CLI path.' }, | |||
'docker-compose-path': { type: 'string', description: 'Docker Compose CLI path.' }, | |||
'workspace-folder': { type: 'string', required: true, description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.' }, | |||
'workspace-folder': { type: 'string', description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.' }, |
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.
Mention that the current working directory is used by default. (Also in a few other places in this file.)
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.
Yes. I actually just moved the default to the yargs entirely, so no need to manually handle null.
292e231
to
4c2a428
Compare
And fixes broken test syntaxes
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, thanks!
Guess I got a style thing to fix ☢️ |
CI doesn't seem to pick up the latest commit. Will close and reopen to trigger fresh. |
This basically makes the equivalent of
--workspace-folder .
the default.I'd imagine that this is 99% of use cases already, and those that need something else will know they need something else.
I think I covered all the commands this would apply to with the tests.