Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Sep 13, 2021

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
1 participant