microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.45k stars 28.62k forks source link

Terminal integrated profiles configuration not working when using windows shortcuts to launch VSCode #179395

Closed shivrick closed 1 year ago

shivrick commented 1 year ago

Type: Bug

After upgrading, terminal always starts with Powrshell and it doesn't see any of the terminal.integrated.profiles.windows that I have configured. In the UI, the settings entry Terminal - Integrated - Default Profile: Windows has a value of null

VS Code version: Code 1.77.1 (b7886d7461186a5eac768481578c1d7ca80e2d21, 2023-04-04T23:21:11.906Z) OS version: Windows_NT x64 10.0.22621 Modes: Sandboxed: Yes

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i7-1255U (12 x 2611)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|15.69GB (2.70GB free)| |Process Argv|C:\\Users\\sdavis\\dev\\gitRepos\\ui-component-registry --crash-reporter-id b7bcfccd-333b-493b-a010-acf28931f5d5| |Screen Reader|no| |VM|0%|
Extensions (10) Extension|Author (truncated)|Version ---|---|--- Bookmarks|ale|13.3.1 atlascode|atl|3.0.3 vscode-eslint|dba|2.4.0 gitlens|eam|13.4.0 prettier-vscode|esb|9.10.4 auto-rename-tag|for|0.1.10 vscode-peacock|joh|4.2.2 git-graph|mhu|1.30.0 vscode-jest|Ort|5.2.3 vscode-yaml|red|1.12.2
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 vstes263cf:30335440 vscoreces:30445986 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vscaat:30438848 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 nodejswelcome1cf:30587006 2e4cg342:30602488 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 2i9eh265:30646982 showlangstatbar:30672706 vsctsb:30705553 defaultazurewalk:30687958 pythonms35:30701012 ```
meganrogge commented 1 year ago

can you provide your settings.json file ?

shivrick commented 1 year ago

Here is my user settings.json

`{ "terminal.integrated.defaultProfile.windows": "Git Bash N16", "terminal.integrated.profiles.windows": {

    "PowerShell": {
        "source": "PowerShell",
        "icon": "terminal-powershell"
    },
    "Command Prompt": {
        "path": [
            "${env:windir}\\Sysnative\\cmd.exe",
            "${env:windir}\\System32\\cmd.exe"
        ],
        "args": [],
        "icon": "terminal-cmd"
    },
    "Git Bash N14": {
        "source": "Git Bash",
        "env": {
            "NODE_HOME": "/c/Users/sdavis/dev/Node/node-v14.18.2-win-x64"
        }
    },
    "Git Bash N16": {
        "source": "Git Bash",
        "env": {
            "NODE_HOME": "/c/Users/sdavis/dev/Node/node-v14.18.2-win-x64"
        }
    },
    "Git Bash N16 Oden": {
        "source": "Git Bash",
        "env": {
            "NODE_HOME": "/c/Users/sdavis/dev/Node/node-v14.18.2-win-x64",
            "NODE_CONFIG": "{\"IS_COMPONENT_CACHE_ENABLED\":true,\"IS_TEMPLATE_CACHE_ENABLED\":false}",
        }
    },
    "Git Bash N16 Oden it45390": {
        "source": "Git Bash",
        "env": {
            "NODE_HOME": "/c/Users/sdavis/dev/Node/node-v14.18.2-win-x64",
            "NODE_CONFIG": "{\"IS_COMPONENT_CACHE_ENABLED\":true,\"IS_TEMPLATE_CACHE_ENABLED\":false,\"COMPONENT_REGISTRY_URL\":\"https://it45390.academy.com/cr\",\"CLIENT_ASSETS_PATH\":\"/cr\",\"API_HOSTNAME\":\"https://it45390.academy.com\"}",
            "NODE_TLS_REJECT_UNAUTHORIZED": "0"
        }
    },
},
"yaml.schemas": {
    "file:///c%3A/Users/sdavis/.vscode/extensions/atlassian.atlascode-3.0.3/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml"
},
"atlascode.jira.enabled": true,
"atlascode.jira.jqlList": [
    {
        "id": "153f1b5a-a46e-4ecd-a677-3efe6559fe9c",
        "enabled": true,
        "name": "My academysports Issues",
        "query": "assignee = currentUser() AND resolution = Unresolved ORDER BY lastViewed DESC",
        "siteId": "3c352c88-ce87-45a6-a8c3-9f903e6852d4",
        "monitor": true
    }
],
"atlascode.jira.startWorkBranchTemplate.customPrefixes": [
    "feature",
    "defect"
],
"git.autofetch": true,
"redhat.telemetry.enabled": true,
"atlascode.bitbucket.explorer.notifications.pullRequestCreated": false,
"[json]": {
    "editor.defaultFormatter": "vscode.json-language-features"
},
"jest.autoRun": "off",
"git.confirmSync": false,
"atlascode.bitbucket.enabled": true,
"editor.accessibilitySupport": "off",
"npm.packageManager": "npm",
"update.enableWindowsBackgroundUpdates": false,
"update.mode": "manual"

}`

meganrogge commented 1 year ago

Can you do a trace log while creating a terminal? https://github.com/microsoft/vscode/wiki/Terminal-Issues#enabling-trace-logging /label info-needed terminal

shivrick commented 1 year ago

Not sure what else you need and I also don't know how to remove the "info-needed" label from this ticket. My windows shortcut has - "C:\Users\sdavis\AppData\Local\Programs\Microsoft VS Code\Code.exe" "C:\Users\sdavis\dev\gitRepos\ui-component-registry.code-workspace" --log-trace

and I'll try again to attach the log file (earlier was having problems, so pasted in) telemetry.log

I deleted the earlier comment that had the botched copy/paste

VSCodeTriageBot commented 1 year ago

Hey @meganrogge, this issue might need further attention.

@shivrick, you can help us out by closing this issue if the problem no longer exists, or adding more information.

meganrogge commented 1 year ago

Can you do a trace log while creating a terminal? https://github.com/microsoft/vscode/wiki/Terminal-Issues#enabling-trace-logging

VSCodeTriageBot commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!