{{ message }}
Repository navigation
cli: respect VSCODE_PORTABLE and make Quality parsing case-insensitive - #341565
Merged
Connor Peet (connor4312) merged 2 commits intoOct 14, 2026
Merged
Connor Peet (connor4312) merged 2 commits into
Connor Peet (connor4312) merged 2 commits into
Conversation
In portable mode, VS Code sets VSCODE_PORTABLE to point to the portable data directory. LauncherPaths now respects VSCODE_PORTABLE so CLI data and agent host logs do not leak into ~/.vscode/cli (Fixes microsoft#184646). Also makes Quality::try_from case-insensitive and adds unit tests.
Contributor
Author
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Home-token expansion rewrites literal portable paths, causing inconsistent or invalid storage locations.
1 open finding
What changed in this PR
Updates CLI storage paths to respect portable mode, addressing #184646, and makes quality parsing case-insensitive.
Changes:
- Uses
VSCODE_PORTABLEfor launcher data and agent-host paths. - Accepts mixed-case quality names.
- Adds path, parsing, and display tests.
| File | Description |
|---|---|
| cli/src/state.rs | Adds portable-path handling and launcher tests. |
| cli/src/options.rs | Adds case-insensitive quality parsing and parsing/display tests. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+174
to
+181
Contributor
Author
There was a problem hiding this comment.
Good catch! Updated in commit 249c9dd to pass VSCODE_PORTABLE paths directly to new_for_path as a PathBuf without home-token expansion, preserving paths with literal '~' (e.g. Windows 8.3 short paths), and updated the test suite accordingly.
Directly pass VSCODE_PORTABLE paths to new_for_path without home-token expansion, preserving paths that contain literal ~ characters (such as Windows short names).
Connor Peet (connor4312)
enabled auto-merge
October 14, 2026 21:36
Paul (pwang347)
approved these changes
Oct 14, 2026
Aaron Munger (amunger)
approved these changes
Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Fixes #184646
Summary
Respect VSCODE_PORTABLE in CLI Paths (Fixes .vscode\cli\ ignores portable mode #184646):
Case-Insensitive Quality::try_from Parsing: