Skip to content

Commit 7111814

Browse files
committed
Removed reference to local profile
1 parent 99854df commit 7111814

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/PowerShellContextService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,7 @@ public static PowerShellContextService Create(
284284

285285
// ImportPSModule throws System.Management.Automation.DriveNotFoundException: 'Cannot find drive. A drive with the name 'C' does not exist.'
286286
// ImportPSModulesFromPath loads the module fine
287-
hostStartupInfo.InitialSessionState.ImportPSModulesFromPath(s_commandsModulePath); //C:\Users\dkattan\Source\Repos\immybot\core\backend\Immybot.Backend.Web\bin\Commands\PowerShellEditorServices.Commands.psd1
288-
hostStartupInfo.InitialSessionState.ImportPSModulesFromPath(@"%UserProfile%\Source\Repos\immybot\core\backend\Immybot.Backend.Web\bin\Debug\net5.0\vendor\PSES\module\PSScriptAnalyzer");
287+
hostStartupInfo.InitialSessionState.ImportPSModulesFromPath(s_commandsModulePath);
289288

290289
if (!hostStartupInfo.InitialSessionState.Commands.Any(a => a.Name.ToLower() == "tabexpansion2"))
291290
{

0 commit comments

Comments
 (0)