Skip to content
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

Default terminal profile setting is ignored #130268

Closed
vaindil opened this issue Aug 6, 2021 · 9 comments
Closed

Default terminal profile setting is ignored #130268

vaindil opened this issue Aug 6, 2021 · 9 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug confirmed Issue has been confirmed by VS Code Team member *duplicate Issue identified as a duplicate of another issue(s) insiders-released Patch has been released in VS Code Insiders terminal-profiles
Milestone

Comments

@vaindil
Copy link

vaindil commented Aug 6, 2021

Issue Type: Bug

I have a custom terminal profile in my settings.json file like I always have. This terminal always opened by default prior to today's update. Today, however, the PowerShell terminal is always opening by default (either when opening VS Code fresh or clicking the + icon in the terminal area to create a new one). I found the setting terminal.integrated.defaultProfile.windows and set that to my profile, but it has no effect. I do not have either terminal.integrated.shell.windows or terminal.integrated.shellArgs.windows specified, so the default profile should be honored, but it's not. Setting the default profile to one of the built-in options, like Command Prompt, also has no effect. Opening my custom profile manually using the dropdown to explicitly choose it works just fine, it just refuses to open by default.

These are the only lines in settings.json that contain the text terminal (other than a bunch of lines that are just hex color codes):

"terminal.integrated.profiles.windows": {
  "cmder": {
    "path": "C:\\WINDOWS\\System32\\cmd.exe",
    "args": [
      "/K",
      "C:\\path\\Cmder\\vendor\\bin\\vscode_init.cmd"
    ]
  }
},
"terminal.integrated.defaultProfile.windows": "cmder",

VS Code version: Code - Insiders 1.60.0-insider (49af1cb, 2021-08-06T06:41:50.275Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz (12 x 2592)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.79GB (16.61GB free)
Process Argv --disable-extensions --crash-reporter-id a705106d-83f5-430f-bc96-f3ab88b46638
Screen Reader no
VM 0%
Extensions disabled
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256197
pythonvspyt639:30291487
pythontb:30258533
pythonvspyt551cf:30291413
pythonptprofiler:30281269
vsdfh931:30280409
vshan820:30294714
pythondataviewer:30285072
pythonvsuse255:30319630
vscod805:30301674
pythonvspyt200:30323110
vsccppwt:30312692
pythonvssor306:30340298
bridge0708:30335490
pygetstartedt:30346833
dockerwalkthrucf:30346919

@vscodebot
Copy link

vscodebot bot commented Aug 6, 2021

@vaindil
Copy link
Author

vaindil commented Aug 6, 2021

I see #126732, which is my issue, but it's closed without much info. This is a new issue that started only in today's build for me.

I also see #121722, but it doesn't seem to be quite the same. I don't have the other issues mentioned there, just that the default profile setting doesn't work.

@cdxn
Copy link

cdxn commented Aug 6, 2021

as @vaindil stated: this started today. Not only are profile settings ignored (User, Remote, Workspace), the prior terminal.integrated.shell.linux is also ignored. Windows 10 + WSL2 Ubuntu 20.04 + VSCode insiders.

Always launches integrated using $SHELL, and launches in home, not path from which VSCode was provided.

Version: 1.60.0-insider (user setup)
Commit: 49af1cb
Date: 2021-08-06T06:41:50.275Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.19043

@meganrogge meganrogge added bug Issue identified by VS Code Team member as probable bug confirmed Issue has been confirmed by VS Code Team member terminal-profiles labels Aug 6, 2021
@meganrogge meganrogge added this to the August 2021 milestone Aug 6, 2021
@meganrogge
Copy link
Contributor

Thanks for catching this. will be fixed in tomorrow's insider's.

@vaindil
Copy link
Author

vaindil commented Aug 9, 2021

@meganrogge This only appears to be partially fixed in the latest insiders build. Clicking the + icon works to open the default terminal, but PowerShell is still opened when I initially open a VS Code window (either the first instance or a new window). Looks like #128763 is being used for this, so I'll comment over there too.

@cdxn
Copy link

cdxn commented Aug 9, 2021

@vaindil @meganrogge - observed same behavior on Windows + WSL2. Initial integrated terminal falls back to $SHELL. +, or Ctrl + ` launches using profile.

@dippas
Copy link

dippas commented Aug 9, 2021

This is still not fixed, when restarting/open @meganrogge

@meganrogge
Copy link
Contributor

meganrogge commented Aug 9, 2021

/duplicate of #128763 - this issue tracks the issue with setting a default profile and creating with the + button not working (not including on launch), which has been fixed.

@KathRains
Copy link

I noticed this problem today after the recent update of VS Code. My default profile is Command Prompt and I do have the default settings for it but PowerShell is loaded ignoring them

    "terminal.integrated.profiles.windows": {
        "PowerShell": null,
        "Command Prompt": {
            "path": [
              "${env:windir}\\System32\\cmd.exe"
            ]
        }
    },
    "terminal.integrated.defaultProfile.windows": "Command Prompt"

@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug confirmed Issue has been confirmed by VS Code Team member *duplicate Issue identified as a duplicate of another issue(s) insiders-released Patch has been released in VS Code Insiders terminal-profiles
Projects
None yet
Development

No branches or pull requests

7 participants
@vaindil @cdxn @Tyriar @KathRains @dippas @meganrogge and others