-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Should debug integrated terminal support pass the env directly to createTerminal? #77111
Comments
@Tyriar Debug tries to reuse a terminal if it is "free", i.e. if there are no child processes running in it. |
@Tyriar for addressing this issue I'm trying to use the const options: vscode.TerminalOptions = {
shellPath: this._terminalService.getDefaultShell(configProvider),
shellArgs: this._terminalService._getDefaultShellArgs(configProvider),
cwd: args.cwd,
name: args.title || nls.localize('debug.terminal.title', "debuggee"),
env: args.env
};
delete args.cwd;
delete args.env;
this._integratedTerminalInstance = this._terminalService.createTerminalFromOptions(options); |
@weinand it just didn't have any consumers outside yet, whereas the default shell is exposed in the API via |
Looking at this:
vscode/src/vs/workbench/contrib/debug/node/terminals.ts
Lines 113 to 122 in b51019b
It looks like it would be a lot simpler to pass in
env
tocreateTerminal
instead of constructing a per-shell command to set/unset them:vscode/src/vs/vscode.d.ts
Lines 7106 to 7109 in 4d02d83
The text was updated successfully, but these errors were encountered: