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 161f471 commit 9a33d60Copy full SHA for 9a33d60
src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs
@@ -215,7 +215,8 @@ protected async Task HandleInitializeRequestAsync(
215
editorSession.Workspace.WorkspacePath = initializeParams.RootPath;
216
217
// Set the working directory of the PowerShell session to the workspace path
218
- if (editorSession.Workspace.WorkspacePath != null)
+ if (editorSession.Workspace.WorkspacePath != null
219
+ && Directory.Exists(editorSession.Workspace.WorkspacePath))
220
{
221
await editorSession.PowerShellContext.SetWorkingDirectoryAsync(
222
editorSession.Workspace.WorkspacePath,
0 commit comments