-
Notifications
You must be signed in to change notification settings - Fork 6.4k
refactor: remove folder/workspace from vsCodeCliArgs #4932
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
Conversation
|
✨ Coder.com for PR #4932 deployed! It will be updated on every commit.
|
aa44e6c to
6be88d7
Compare
6be88d7 to
c2ecce1
Compare
code-asher
left a comment
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.
A much cleaner paradigm!
|
Argh, this won't pass CI until I remove those args in the VS Code side, merge and then update here. |
Since we handle this in the vscode.ts route, we no longer need to pass it to VS Code as a CLI arg since it's deprecated on that side.
Co-authored-by: Asher <ash@coder.com>
1cd9aa8 to
4ffd923
Compare
Co-authored-by: Asher <ash@coder.com>
code-asher
left a comment
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 refactor!
Codecov Report
@@ Coverage Diff @@
## main #4932 +/- ##
==========================================
+ Coverage 70.16% 70.29% +0.13%
==========================================
Files 29 29
Lines 1666 1670 +4
Branches 369 369
==========================================
+ Hits 1169 1174 +5
+ Misses 423 422 -1
Partials 74 74
Continue to review full report at Codecov.
|
* refactor: remove folder/workspace from vsCodeCliArgs Since we handle this in the vscode.ts route, we no longer need to pass it to VS Code as a CLI arg since it's deprecated on that side. * feat(vscode): redirect to folder from cli * Update src/node/routes/vscode.ts Co-authored-by: Asher <ash@coder.com> * fixup!: update _: type * fixup!: move vars to lower if block * fixup!: share redirect block * fixup!: mmove req.query.ew block into if * fixup!: refactor vscode tests * refactor: make vscode.ts logic easier to read * fixup!: fix broken tests and clean up logic * chore: upgrade vscode version * fixup!: delete unnecessary if closed block * Update src/node/routes/vscode.ts Co-authored-by: Asher <ash@coder.com> * fixup!: rename to FOLDER_OR_WORKSPACE_WAS_CLOSED Co-authored-by: Asher <ash@coder.com>
Since we handle this in the vscode.ts route, we no longer need to pass it to VS
Code as a CLI arg since it's deprecated on that side.
This adds logic to our
vscoderoute handler to handle both folder and workspace paths passed in via the CLIFixes an issue related to coder/vscode#45
Blocked by coder/vscode#49