-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2024.2.0 No longer loads my Pwsh profile in the integrated terminal. How can I fix this? #4970
Comments
Just curious, what happens if you disable Terminal Shell Integration via |
I have been seeing this for a while now and not sure if it is with the extension or if it isn't VS Code itself. I can tell in integrated or VS Code's terminal that it is broken because
In VS Code |
@wsmelton ah now that is interesting! I just confirmed that we (the extension terminal / custom host) are just grabbing info from PowerShell's built-in |
@futuremotiondev what is the value of $error? What is in your profile? |
@andyleejordan figured out my issue working with Joel (jaykul) and found somehow |
This issue has been labeled as needing feedback and has not had any activity a week. It has been closed for housekeeping purposes. |
Prerequisites
Summary
Previously before the new update (
v2024.2.0
), the integrated terminal would load my profile on launch in VSCode. This is no longer the case, and all my aliases don't work, as well as the modules that I have set to import (In my profile).Another side-effect is that my terminal color settings aren't respected in the new integrated terminal.
How can I get the integrated terminal to auto-load my profile?
Appreciate any assistance.
PowerShell Version
Visual Studio Code Version
Extension Version
ms-vscode.powershell@2024.2.0
Steps to Reproduce
C:\Users\username\Documents\PowerShell\profile.ps1
), or anImport Module WhateverModule
statement.Edit:
Entering
$PROFILE
in the integrated terminal returnsC:\Users\username\Documents\PowerShell\Microsoft.VSCode_profile.ps1
, but even after adding theMicrosoft.VSCode_profile.ps1
file and restarting the integrated terminal, the profile still isn't loaded.Edit 2:
Just to cover everything, this is enabled in Powershell settings:
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: