Skip to content

Load the standard PowerShell profile in the extension console on Windows #5710

Backlog

Description

@tsktech

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure this has not already been reported.

Summary

On Windows, the PowerShell extension's integrated console uses Microsoft.VSCode_profile.ps1 instead of the standard Microsoft.PowerShell_profile.ps1. As a result, ordinary interactive setup in the user's PowerShell profile (for example, prompt initialization) is missing from the extension console, even though it is present in regular pwsh terminals.

This makes two PowerShell sessions on the same Windows machine behave differently and requires users to maintain duplicate host-specific profile files for the same interactive configuration. With profile loading enabled, the standard PowerShell profile should be loaded by default so the extension console behaves consistently with other PowerShell terminals.

Please load Microsoft.PowerShell_profile.ps1 by default, while allowing an optional VS Code-specific profile to add overrides. If changing the current behavior is not possible without breaking existing setups, please provide a setting to opt into loading the standard profile.

Proposed Design

When powershell.enableProfileLoading is enabled, load the standard current-user PowerShell profile for the selected PowerShell installation. Then, if present, load Microsoft.VSCode_profile.ps1 for host-specific overrides. Document the order and provide a setting to preserve the current VS Code-only profile behavior if compatibility requires it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions