You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
shellPath.ts returns undefined for Windows even when connected to WSL #9737
ide:vscodeRelates specifically to VS Code extensionjavascriptPull requests that update Javascript codekind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windowsreleased
getEnvPathFromUserShell() in core/util/shellPath.ts returns undefined for all Windows platforms, even when the extension is connected to a WSL remote where shell path detection would work.
Code
if(process.platform==="win32"){returnundefined;// Always returns undefined on Windows}
Impact
PATH environment may be incorrect when Windows host connects to WSL, potentially causing tool resolution failures.
Suggested Fix
Check ideInfo.remoteName === "wsl" and attempt shell path detection for the remote environment.
No, but #9934 will take care of it. The state issue I detailed here, though, may make any further issues related to detecting wsl require knowing if the reporter has had multiple windows crossing between Windows and wsl a necessary question for debugging: #9735 (comment)
ide:vscodeRelates specifically to VS Code extensionjavascriptPull requests that update Javascript codekind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windowsreleased
Activity
sestinj commentedon Jan 21, 2026
Related issues involving shell path / WSL detection:
RomneyDa commentedon Jan 26, 2026
@shanevcantwell was this fixed by one of these?
#9810
#9740
fix: detect WSL remote for shell PATH resolution
shanevcantwell commentedon Jan 27, 2026
No, but #9934 will take care of it. The state issue I detailed here, though, may make any further issues related to detecting wsl require knowing if the reporter has had multiple windows crossing between Windows and wsl a necessary question for debugging:
#9735 (comment)
fix: detect WSL remote for shell PATH resolution (#9934)
sestinj commentedon Feb 3, 2026
🎉 This issue has been resolved in version 1.41.0 🎉
The release is available on:
Your semantic-release bot 📦🚀