We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e2b6e7 commit c6b4535Copy full SHA for c6b4535
src/PowerShellEditorServices/Server/PsesLanguageServer.cs
@@ -111,7 +111,7 @@ public async Task StartAsync()
111
var workspaceService = serviceProvider.GetService<WorkspaceService>();
112
113
// Grab the workspace path from the parameters
114
- workspaceService.WorkspacePath = request.RootUri.LocalPath;
+ workspaceService.WorkspacePath = request.RootUri?.LocalPath;
115
116
// Set the working directory of the PowerShell session to the workspace path
117
if (workspaceService.WorkspacePath != null
0 commit comments