Skip to content

Report lint/breaking check results as DiagnosticSeverityWarning in LSP#3710

Merged
doriable merged 1 commit intomainfrom
3701-checks-diagnostic-warning
Mar 25, 2025
Merged

Report lint/breaking check results as DiagnosticSeverityWarning in LSP#3710
doriable merged 1 commit intomainfrom
3701-checks-diagnostic-warning

Conversation

@doriable
Copy link
Member

This changes the severity of the lint and breaking changes to DiagnosticSeverityWarning.
Checked a couple of reference implementations (e.g. gopls, rust-analyzer), surfacing lint/breaking
file annotations as "warning" level diagnostics is reasonable. We may want to make this configurable
in the future.

Fixes #3701, this would allow format to run with lint/breaking results.
We still want to continue blocking formatting with an invalid AST.

@doriable doriable requested review from emcfarlane and mcy March 24, 2025 22:02
@github-actions
Copy link
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMar 24, 2025, 10:02 PM

@doriable doriable merged commit 0b89248 into main Mar 25, 2025
12 checks passed
@doriable doriable deleted the 3701-checks-diagnostic-warning branch March 25, 2025 14:50
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.

lsp: formatting behavior is different from buf format

2 participants