Skip to content

Commit 7fe1706

Browse files
authored
Merge pull request microsoft#210187 from microsoft/tyriar/cwd_issue
Revive cwd URI before exposing
2 parents a808279 + 5b19440 commit 7fe1706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/api/common/extHostTerminalShellIntegration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { MainContext, type ExtHostTerminalShellIntegrationShape, type MainThread
1111
import { IExtHostRpcService } from 'vs/workbench/api/common/extHostRpcService';
1212
import { IExtHostTerminalService } from 'vs/workbench/api/common/extHostTerminalService';
1313
import { Emitter, type Event } from 'vs/base/common/event';
14-
import { URI } from 'vs/base/common/uri';
14+
import { isUriComponents, URI } from 'vs/base/common/uri';
1515
import { AsyncIterableObject, Barrier, type AsyncIterableEmitter } from 'vs/base/common/async';
1616

1717
export interface IExtHostTerminalShellIntegration extends ExtHostTerminalShellIntegrationShape {
@@ -132,7 +132,7 @@ export class ExtHostTerminalShellIntegration extends Disposable implements IExtH
132132
}
133133

134134
public $cwdChange(instanceId: number, cwd: URI | undefined): void {
135-
this._activeShellIntegrations.get(instanceId)?.setCwd(cwd);
135+
this._activeShellIntegrations.get(instanceId)?.setCwd(isUriComponents(cwd) ? URI.revive(cwd) : cwd);
136136
}
137137

138138
public $closeTerminal(instanceId: number): void {

0 commit comments

Comments
 (0)