-
Notifications
You must be signed in to change notification settings - Fork 238
Closed
Labels
Issue-EnhancementA feature request (enhancement).A feature request (enhancement).
Description
In WorkSpaceService.cs
PowerShellEditorServices/src/PowerShellEditorServices/Services/Workspace/WorkspaceService.cs
Lines 193 to 197 in a12edc9
// List supported schemes here | |
case "file": | |
case "untitled": | |
case "vscode-notebook-cell": | |
break; |
Consider adding
case: "inmemory":
as this is the default for the MonacoLanguageClient
Additionally for this to work, consider the following change to prevent a FileNotFoundException in CodeActionHandler.cs
Line 60 in a12edc9
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>();
}
Metadata
Metadata
Assignees
Labels
Issue-EnhancementA feature request (enhancement).A feature request (enhancement).