-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support terminal.integrated.cwd as a resource scope setting
Fixes #42165
- Loading branch information
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
897ed30
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.
Hello @Tyriar,
isAbsolute(cwdConfig)
may not be accurate here.cwdConfig
could be something like${fileDirname}
or${workspaceFolder}
, it will be replaced with an absolute path later:vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts
Lines 397 to 404 in 2e0f560
but the value of
isAbsolute(cwdConfig)
in line 1685 isfalse
. So, theURI.joinPath
in line 1691 will actually join two absolute path, the result is likeD:\sources\app\scripts\D:\sources\app\scripts
which is invalid. See #136099