Skip to content

Login switch not used #2384

Closed
Closed
@bgelens

Description

@bgelens

System Details

System Details Output

### VSCode version: 1.41.1 26076a4de974ead31f97692a0d32f90d735645c0 x64

### VSCode extensions:
2gua.rainbow-brackets@0.0.6
adamhartford.vscode-base64@0.1.0
andreaslenzen.vbscript-language-server-client@1.0.3
Azurite.azurite@3.3.0
ban.spellright@3.0.48
DavidAnson.vscode-markdownlint@0.33.0
donjayamanne.githistory@0.4.11
eamodio.gitlens@10.2.0
EditorConfig.EditorConfig@0.14.4
Equinusocio.vsc-material-theme@30.0.0
eriklynd.json-tools@1.0.2
GrapeCity.gc-excelviewer@2.1.32
mauve.terraform@1.4.0
ms-azure-devops.azure-pipelines@1.157.4
ms-azuretools.vscode-azureappservice@0.16.2
ms-azuretools.vscode-azurefunctions@0.20.1
ms-azuretools.vscode-docker@0.9.0
ms-kubernetes-tools.vscode-aks-tools@0.0.4
ms-kubernetes-tools.vscode-kubernetes-tools@1.0.9
ms-mssql.mssql@1.8.0
ms-python.python@2019.11.50794
ms-vscode.azure-account@0.8.7
ms-vscode.azurecli@0.4.6
ms-vscode.cpptools@0.26.2
ms-vscode.csharp@1.21.9
ms-vscode.Go@0.11.9
ms-vscode.powershell@2019.12.0
ms-vscode.powershell-preview@2019.12.0
msazurermtools.azurerm-vscode-tools@0.8.3
PKief.material-icon-theme@3.9.2
redhat.vscode-xml@0.10.1
redhat.vscode-yaml@0.6.1
Shan.code-settings-sync@3.4.3
tht13.html-preview-vscode@0.2.5
twxs.cmake@0.0.17
Tyriar.shell-launcher@0.4.0
vitaliymaz.vscode-svg-previewer@0.5.1
wayou.vscode-todo-highlight@1.0.4
yzane.markdown-pdf@1.4.1


### PSES version: 2.0.0.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      7.0.0-rc.1
PSEdition                      Core
GitCommitId                    7.0.0-rc.1
OS                             Darwin 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Description

Depending if I open VS Code from a terminal code . or directly I have different paths in my $env:PATH variable.

From terminal:

/usr/local/microsoft/powershell/7-preview
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/share/dotnet
~/.dotnet/tools

Directly:

/usr/local/microsoft/powershell/7-preview
/usr/bin
/bin
/usr/sbin
/sbin

The difference here is that my terminal session is using -l when starting pwsh (it's my login shell)

Expected Behaviour

I would expect that Integrated Console would use -l when available or have an overwrite similar to:

"terminal.integrated.shellArgs.osx": [
    "-l"
 ],

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions