Skip to content

Commit 121ea91

Browse files
Worked on issue microsoft#15522
1 parent 3fa5648 commit 121ea91

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/client/terminals/activation.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,14 @@ export class TerminalAutoActivation implements ITerminalAutoActivation {
5151
return;
5252
}
5353
// If we have just one workspace, then pass that as the resource.
54-
// Until upstream VSC issue is resolved https://github.com/Microsoft/vscode/issues/63052.
54+
const cwd =
55+
'cwd' in terminal.creationOptions
56+
? terminal.creationOptions.cwd
57+
: this.activeResourceService.getActiveResource();
58+
const resource = typeof cwd === 'string' ? Uri.file(cwd) : cwd;
59+
5560
await this.activator.activateEnvironmentInTerminal(terminal, {
56-
resource: this.activeResourceService.getActiveResource(),
61+
resource: resource,
5762
});
5863
}
5964
}

0 commit comments

Comments
 (0)