We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fa5648 commit 121ea91Copy full SHA for 121ea91
src/client/terminals/activation.ts
@@ -51,9 +51,14 @@ export class TerminalAutoActivation implements ITerminalAutoActivation {
51
return;
52
}
53
// 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.
+ 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
+
60
await this.activator.activateEnvironmentInTerminal(terminal, {
- resource: this.activeResourceService.getActiveResource(),
61
+ resource: resource,
62
});
63
64
0 commit comments