We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29617f8 commit 1d1d3eeCopy full SHA for 1d1d3ee
src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs
@@ -141,6 +141,13 @@ protected async Task HandleInitializeRequest(
141
// Grab the workspace path from the parameters
142
editorSession.Workspace.WorkspacePath = initializeParams.RootPath;
143
144
+ // Set the working directory of the PowerShell session to the workspace path
145
+ if (editorSession.Workspace.WorkspacePath != null)
146
+ {
147
+ editorSession.PowerShellContext.SetWorkingDirectory(
148
+ editorSession.Workspace.WorkspacePath);
149
+ }
150
+
151
await requestContext.SendResult(
152
new InitializeResult
153
{
0 commit comments