public async Task <QuickFixResponse> Handle(CodeCheckRequest request) { if (string.IsNullOrEmpty(request.FileName)) { var allDiagnostics = await _diagWorker.GetAllDiagnosticsAsync(); return(GetResponseFromDiagnostics(allDiagnostics, fileName: null)); } var diagnostics = await _diagWorker.GetDiagnostics(ImmutableArray.Create(request.FileName)); return(GetResponseFromDiagnostics(diagnostics, request.FileName)); }
public Task <ImmutableArray <DocumentDiagnostics> > GetAllDiagnosticsAsync() { return(_implementation.GetAllDiagnosticsAsync()); }
public Task <ImmutableArray <(string projectName, Diagnostic diagnostic)> > GetAllDiagnosticsAsync() { return(_implementation.GetAllDiagnosticsAsync()); }