Normalize Windows drive letter when comparing cwd and userHome (fix #293049)#293065
Merged
anthonykim1 merged 1 commit intomicrosoft:mainfrom Feb 5, 2026
Merged
Normalize Windows drive letter when comparing cwd and userHome (fix #293049)#293065anthonykim1 merged 1 commit intomicrosoft:mainfrom
anthonykim1 merged 1 commit intomicrosoft:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a bug where terminal creation would incorrectly fail due to case-sensitive comparison of Windows drive letters. The issue occurred when attaching to a Docker container on Windows, where the cwd and userHome paths had different drive letter casing (e.g., "C:" vs "c:").
Changes:
- Normalize drive letters before comparing cwd and userHome paths to handle case differences on Windows
- Fix misleading error message to correctly state "empty workspace" instead of "untrusted workspace"
anthonykim1
approved these changes
Feb 5, 2026
Contributor
|
Thank you! @gjsjohnmurray |
connor4312
approved these changes
Feb 5, 2026
andysharman
pushed a commit
to andysharman/vscode
that referenced
this pull request
Feb 5, 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.
This PR fixes #293049.
Test by following the repro steps on the issue to confirm the fix.
Please consider taking this as a candidate for 1.109 recovery release.