We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9eadcb7 commit e515a07Copy full SHA for e515a07
src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs
@@ -226,7 +226,8 @@ protected async Task HandleInitializeRequest(
226
editorSession.Workspace.WorkspacePath = initializeParams.RootPath;
227
228
// Set the working directory of the PowerShell session to the workspace path
229
- if (editorSession.Workspace.WorkspacePath != null)
+ if (editorSession.Workspace.WorkspacePath != null
230
+ && Directory.Exists(editorSession.Workspace.WorkspacePath))
231
{
232
await editorSession.PowerShellContext.SetWorkingDirectory(
233
editorSession.Workspace.WorkspacePath,
0 commit comments