d79
d79

Reputation: 3848

VSCode: set terminal shell on workspaces after latest update

On VSCode, if I needed a different terminal shell on a certain workspace, I had added the following setting in the workspace file (.code-workspace):

"settings": {
    "terminal.integrated.shell.windows": "path\to\the\shell.exe"
}

After the latest update (April 2021 - version 1.56) this doesn't work anymore and I get this warning:

This is deprecated, use #terminal.integrated.defaultProfile.windows# instead

If I replace the setting name with the suggested one I get:

This setting can be applied only in application user settings

How can I set a different terminal shell per workspace?

Upvotes: 1

Views: 2702

Answers (2)

d79
d79

Reputation: 3848

As zendu pointed out, there's an open issue about it with a temporary fix:

A temporary fix was added to re-enable workspace shell settings when "terminal.integrated.allowWorkspaceConfiguration": true is set #122104

I tried it and it seems to work (at least for now).

Upvotes: 0

Mark
Mark

Reputation: 182761

Unfortunately, here is the same issue: https://github.com/microsoft/vscode/issues/123031 from https://github.com/microsoft/vscode/issues/123133.

Issue 123133 was closed 05/05/2021 with a temporary fix, see that issue and https://github.com/microsoft/vscode/commit/006591a7cfa31b9778e712b742b6e37f4afd0ed9. Here is my Insiders Build workspace settings file after the fix:

terminal default profile fix

Note the previous error message is gone. I suspect that this "fix" will be in a point release to v1.56 fairly soon rather than waiting for v1.57.

Upvotes: 1

Related Questions