Skip to content

feat(cli): add coder open vscode #11191

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

Merged
merged 18 commits into from
Jan 2, 2024
Prev Previous commit
Next Next commit
add todo
  • Loading branch information
mafredri committed Jan 2, 2024
commit b0c3dce25e3440bfd86b420dbe9fe577d2560b1d
1 change: 1 addition & 0 deletions cli/open.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func (r *RootCmd) openVSCode() *clibase.Cmd {
return xerrors.Errorf("directory path %q not supported, use an absolute path instead", directory)
}
if insideThisWorkspace {
// TODO(mafredri): Return error if directory doesn't exist?
directory, err = filepath.Abs(directory)
if err != nil {
return xerrors.Errorf("expand directory: %w", err)
Expand Down