Skip to content

Fix determining whether cwdFolder should show on remote#286985

Closed
Tyriar wants to merge 2 commits intomainfrom
tyriar/286974
Closed

Fix determining whether cwdFolder should show on remote#286985
Tyriar wants to merge 2 commits intomainfrom
tyriar/286974

Conversation

@Tyriar
Copy link
Copy Markdown
Contributor

@Tyriar Tyriar commented Jan 11, 2026

Fixes #286974

@Tyriar Tyriar added this to the January 2026 milestone Jan 11, 2026
@Tyriar Tyriar self-assigned this Jan 11, 2026
Copilot AI review requested due to automatic review settings January 11, 2026 08:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR attempts to fix an issue with determining whether the current working directory (cwd) folder should be displayed in terminal labels for remote scenarios. The change removes the intermediate URI construction and directly compares the cwd path with the workspace folder's URI path.

Changes:

  • Removes the cwdUri variable construction that was using path.resolve() on the frontend
  • Updates path comparison to directly compare templateProperties.cwd with instance.workspaceFolder.uri.path
  • Adds a comment explaining the rationale for avoiding path.resolve() in remote scenarios

Comment thread src/vs/workbench/contrib/terminal/browser/terminalInstance.ts Outdated
Comment thread src/vs/workbench/contrib/terminal/browser/terminalInstance.ts Outdated
@Tyriar Tyriar closed this Jan 12, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Feb 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terminal tabs description/title using cwdFolder shows folder incorrectly in WSL

2 participants