File tree 1 file changed +3
-2
lines changed
src/PowerShellEditorServices/Services/PowerShellContext/Session
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ namespace Microsoft.PowerShell.EditorServices.Services.PowerShellContext
18
18
internal class PSReadLinePromptContext : IPromptContext
19
19
{
20
20
private static readonly string _psReadLineModulePath = Path . Combine (
21
- Path . GetDirectoryName ( typeof ( PSReadLinePromptContext ) . Assembly . Location ) ,
21
+ AppContext . BaseDirectory ,
22
22
".." ,
23
23
".." ,
24
24
".." ,
@@ -27,7 +27,7 @@ internal class PSReadLinePromptContext : IPromptContext
27
27
// When using xUnit (dotnet test) the assemblies are deployed to the
28
28
// test project folder, invalidating our relative path assumption.
29
29
private static readonly string _psReadLineTestModulePath = Path . Combine (
30
- Path . GetDirectoryName ( typeof ( PSReadLinePromptContext ) . Assembly . Location ) ,
30
+ AppContext . BaseDirectory ,
31
31
".." ,
32
32
".." ,
33
33
".." ,
@@ -89,6 +89,7 @@ internal static bool TryGetPSReadLineProxy(
89
89
{
90
90
readLineProxy = null ;
91
91
logger . LogTrace ( "Attempting to load PSReadLine" ) ;
92
+ Console . WriteLine ( $ "{ _psReadLineModulePath } / { _psReadLineTestModulePath } ") ;
92
93
using ( var pwsh = PowerShell . Create ( ) )
93
94
{
94
95
pwsh . Runspace = runspace ;
You can’t perform that action at this time.
0 commit comments