Repository navigation
Fix Bash path interpretation for Windows terminal - #26125
Akash (akashdeepmaity4) wants to merge 6 commits into
Conversation
Fixed path interpretation issues for Bash commands in Windows, ensuring proper command and argument formatting.
@microsoft-github-policy-service agree |
|
🔒 Automated review in progress — Bill Schnurr (@bschnurr) is auto-reviewing this PR. |
|
Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Result: Summary: No meaningful test executed because the verification container could not start. Static inspection found duplicate statements at class scope in `service.ts`, which makes the PR head syntactically invalid. No tests were added, and existing terminal tests do not cover the new Bash path conversion. Test runs: 1 not run
|
Removed deprecated logic for stitching command and arguments in terminal service.
Refactor command processing for Bash compatibility and restore command execution logic.
Key Changes Applied: Preserved Architecture Pipeline: Routes processedCommand and processedArgs back through this.terminalHelper.buildCommandForTerminal(...) and this.executeCommand(...) to retain shell-aware escaping, shell integration capabilities, and cross-platform handling. Strict Path Operand Normalization: Avoids naive path regexes like /^[A-Za-z]:\\|\\/ which corrupt CLI flags, regex patterns, or inline snippets (e.g., -c, --option, or Python code with \n). Converts only explicit file paths (e.g., C:\path\to\file or .\path\to\file). Cleaned Class Hierarchy: Removed all dangling/duplicate outer-scope statements to maintain clean TypeScript compilation.
Akash (akashdeepmaity4)
left a comment
There was a problem hiding this comment.
Cleaned Class Hierarchy
Strict Path Operand Normalization
Preserved Architecture Pipeline
Removed duplicacies
Removed/fixes orphaned brackets
|
Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Result: Summary: The PR adds Windows Bash path normalization, but no tests cover it and the PR adds no tests. Existing terminal-service tests only verify generic command dispatch. Verification could not execute because no trusted sandbox image is configured for `microsoft/vscode-python`. Confidence is therefore limited. Test runs: 1 not run
|
Bill Schnurr (bschnurr)
left a comment
There was a problem hiding this comment.
Approved via Review Center.
Heejae Chang (heejaechang)
left a comment
There was a problem hiding this comment.
Approved via Review Center.
|
reopened PR, rrequesting update by maintainers |
Fixed path interpretation issues for Bash commands in Windows, ensuring proper command and argument formatting. Check recent issues submitted by Akash (@akashdeepmaity4) to reproduce issue and get more details.