Skip to content

Commit

Permalink
fix: suppress code action warning
Browse files Browse the repository at this point in the history
"WARN typos_lsp::lsp: client doesn't support diagnostic data"
for code actions from other extensions
  • Loading branch information
tekumara committed Apr 30, 2023
1 parent fbcba05 commit cc3dbc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/typos-lsp/src/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ impl LanguageServer for Backend<'static> {
.context
.diagnostics
.iter()
.filter(|diag| diag.source == Some("typos".to_string()))
.flat_map(|diag| match &diag.data {
Some(data) => {
if let Ok(DiagnosticData { corrections }) =
Expand Down

0 comments on commit cc3dbc0

Please sign in to comment.