Skip to content

Polish when cwdFolder is shown in terminal description and add ProcessCapabilities#133037

Merged
meganrogge merged 3 commits intomainfrom
merogge/capabilities
Sep 13, 2021
Merged

Polish when cwdFolder is shown in terminal description and add ProcessCapabilities#133037
meganrogge merged 3 commits intomainfrom
merogge/capabilities

Conversation

@meganrogge
Copy link
Collaborator

@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
Collaborator 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

1 participant