Skip to content

Terminal profile settings not reflected in terminals created using VSCode API #192943

@karrtikr

Description

@karrtikr

Does this issue occur when all extensions are disabled?: Yes/No

Version: 1.83.0-insider
Commit: 03671d332bf6a34782d5adc64086bc8e083a1590
Date: 2023-09-12T15:02:37.804Z
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Steps to Reproduce:

  1. Configure fish profile to also set an environment variable:
        "fish": {
            "path": "fish",
            "env": {
                "fish_history": "history"
            }
        },
  1. Select this as default terminal profile

  2. Create a terminal and print variables, notice fish_history is present:
    image

  3. Create a terminal using vscode.window.createTerminal() API, notice many variables including this are not present:
    image

For Python extension, this leads to "Python" terminals being different from the selected terminal: microsoft/vscode-python#21960. Created on behalf of @kyochikuto.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityterminal-processProblems launching processes, managing ptys, exiting, process leaks, etc.terminal-profiles

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions