Skip to content

Commit 007ab6d

Browse files
committed
Fix profile output
1 parent 6a38458 commit 007ab6d

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/PowerShellEditorServices/Services/PowerShell/Utility/PowerShellExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ public static void LoadProfiles(this PowerShell pwsh, ProfilePathInfo profilePat
170170
.AddProfileLoadIfExists(profileVariable, nameof(profilePaths.AllUsersCurrentHost), profilePaths.AllUsersCurrentHost)
171171
.AddProfileLoadIfExists(profileVariable, nameof(profilePaths.CurrentUserAllHosts), profilePaths.CurrentUserAllHosts)
172172
.AddProfileLoadIfExists(profileVariable, nameof(profilePaths.CurrentUserCurrentHost), profilePaths.CurrentUserCurrentHost)
173-
.AddOutputCommand();
174173

175174
pwsh.InvokeCommand(psCommand);
176175

src/PowerShellEditorServices/Utility/PSCommandExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public static PSCommand AddProfileLoadIfExists(this PSCommand psCommand, PSObjec
7070
{
7171
psCommand
7272
.AddCommand(profilePath, useLocalScope: false)
73+
.AddOutputCommand()
7374
.AddStatement();
7475
}
7576

0 commit comments

Comments
 (0)