diff --git a/src/PowerShellEditorServices/Server/PsesLanguageServer.cs b/src/PowerShellEditorServices/Server/PsesLanguageServer.cs index b2ffff59f..3da841b44 100644 --- a/src/PowerShellEditorServices/Server/PsesLanguageServer.cs +++ b/src/PowerShellEditorServices/Server/PsesLanguageServer.cs @@ -101,7 +101,7 @@ public async Task StartAsync() // Grab the workspace path from the parameters if (request.RootUri != null) { - workspaceService.WorkspacePath = workspaceService.ResolveFileUri(request.RootUri).OriginalString; + workspaceService.WorkspacePath = workspaceService.ResolveFileUri(request.RootUri).LocalPath; } // Set the working directory of the PowerShell session to the workspace path