In WorkSpaceService.cs
| // List supported schemes here |
| case"file": |
| case"untitled": |
| case"vscode-notebook-cell": |
| break; |
Consider adding
as this is the default for the MonacoLanguageClient
Additionally for this to work, consider the following change to prevent a FileNotFoundException in CodeActionHandler.cs
| IReadOnlyDictionary<string,MarkerCorrection>corrections=await_analysisService.GetMostRecentCodeActionsForFileAsync( |
IReadOnlyDictionary<string, MarkerCorrection> corrections = null;
try
{
var file = _workspaceService.GetFile(request.TextDocument.Uri);
corrections = await _analysisService.GetMostRecentCodeActionsForFileAsync(file).ConfigureAwait(false);
}
catch (Exception ex) //if (corrections == null)
{
return Array.Empty<CommandOrCodeAction>();
}
In WorkSpaceService.cs
PowerShellEditorServices/src/PowerShellEditorServices/Services/Workspace/WorkspaceService.cs
Lines 193 to 197 in a12edc9
Consider adding
as this is the default for the MonacoLanguageClient
Additionally for this to work, consider the following change to prevent a FileNotFoundException in CodeActionHandler.cs
PowerShellEditorServices/src/PowerShellEditorServices/Services/TextDocument/Handlers/CodeActionHandler.cs
Line 60 in a12edc9