Skip to content

Report workspace/diagnostic as the failed request in workspace pulls - #1915

Open
Trivikram Kamat (trivikr) wants to merge 1 commit into
microsoft:mainfrom
trivikr:client-diagnostic-handle-failed-request
Open

Trivikram Kamat (trivikr) wants to merge 1 commit into
microsoft:mainfrom
trivikr:client-diagnostic-handle-failed-request

Conversation

@trivikr

Copy link
Copy Markdown
Contributor

The error handler for workspace diagnostic pulls passed DocumentDiagnosticRequest.type to handleFailedRequest. A failed pull was therefore logged and shown as "Request textDocument/diagnostic failed."

Pass WorkspaceDiagnosticRequest.type so the log and notification name the request that was actually sent.

The error handler for workspace diagnostic pulls passed
DocumentDiagnosticRequest.type to handleFailedRequest. A failed pull was
therefore logged and shown as "Request textDocument/diagnostic failed."

Pass WorkspaceDiagnosticRequest.type so the log and notification name
the request that was actually sent.
Copilot AI balanced review requested due to automatic review settings October 22, 2026 21:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The one-line correction matches the outgoing request and fixes error labeling without changing other error-handling behavior.

No open issues 🎉

What changed in this PR

Corrects failure reporting for workspace diagnostic pulls so errors identify the request that was actually sent.

Changes:

  • Passes WorkspaceDiagnosticRequest.type to the failure handler instead of DocumentDiagnosticRequest.type, preserving existing cancellation and fallback behavior.
File Description
client/​src/​common/​diagnostic.ts Corrects the request type used to report workspace diagnostic failures.

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants