Skip to content

vscode-powershell extension does not load the Microsoft.VSCode_profile.ps1 in vscode portable mode (with the data/ folder) #2496

@animehunter123

Description

@animehunter123

System Details

Windows 10 Enterprise (10.0.18363 N/A Build 18363)
VSCode-win32-x64-1.42.1
ms-vscode.powershell-2020.1.0

$PSVersionTable
PSVersion 5.1.18362.628
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.628
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Issue Description

I am experiencing a problem with... the Microsoft.VSCode_profile.ps1 file. The vscode-powershell extension does not load the profile when vscode is ran in portable mode with a data folder.

Expected Behavior

In a normal installation the extension works as expected and loads the file from:

%UserProfile%\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1

Actual Behaviour

However when you use VSCode in portable mode (i.e. make a .\data folder after unzipping the VSCode-win32-x64-1.42.1.zip file, it still tries to load it from the %UserProfile% folder, and not the .\VSCode-win32-x64-1.42.1\data\user-data\User\Microsoft.VSCode_profile.ps1

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