コード例 #1
0
        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));
        }
コード例 #2
0
 public Task <ImmutableArray <DocumentDiagnostics> > GetAllDiagnosticsAsync()
 {
     return(_implementation.GetAllDiagnosticsAsync());
 }
コード例 #3
0
 public Task <ImmutableArray <(string projectName, Diagnostic diagnostic)> > GetAllDiagnosticsAsync()
 {
     return(_implementation.GetAllDiagnosticsAsync());
 }