Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieegan3 committed Apr 15, 2024
1 parent e79391b commit dffade6
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 126 deletions.
3 changes: 2 additions & 1 deletion internal/lsp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ func (l *LanguageServer) StartDiagnosticsWorker(ctx context.Context) {
if ok && len(aggDiags) > 0 {
l.diagnosticRequestWorkspace <- fmt.Sprintf("file %q with aggregate violation changed", evt.URI)
}
case <-l.diagnosticRequestWorkspace:
case r := <-l.diagnosticRequestWorkspace:
l.logError(fmt.Errorf("diagnostic request workspace: %s", r))
// results will be sent in response to the next workspace/diagnostics request
err := updateAllDiagnostics(ctx, l.cache, l.loadedConfig, l.clientRootURI)
if err != nil {
Expand Down
Loading

0 comments on commit dffade6

Please sign in to comment.