KEMBAR78
Polish when cwdFolder is shown in terminal description and add ProcessCapabilities by meganrogge · Pull Request #133037 · microsoft/vscode · GitHub
Skip to content

Conversation

@meganrogge
Copy link
Contributor

@meganrogge meganrogge commented Sep 13, 2021

This PR fixes #132797
fixes #132888
fixes #132876

@meganrogge meganrogge changed the title Polish when cwdFolder is shown in terminal description Polish when cwdFolder is shown in terminal description and add ProcessCapabilities Sep 13, 2021
const initialCwd = this._initialCwd;
const cwd = this._cwd || this._initialCwd;
const singleRootWorkspace = this._workspaceContextService.getWorkspace().folders.length <= 1;
if (!cwd || !this._capabilities.includes(ProcessCapability.CwdDetection) || (singleRootWorkspace && initialCwd === cwd)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check terminal.integrated.cwd first and if that's not set, do this

@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

2 participants