You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixes#1520
- introduced `lsp-diagnostic-filter` which can be used to limit the reported
diagnostics.
Here it is sample filter to filter diagnostics from typescript
``` elisp
(setq lsp-diagnostic-filter 'my/filter-typescript )
(lsp-defun my/filter-typescript ((params &as &PublishDiagnosticsParams :diagnostics)
_workspace)
(lsp:set-publish-diagnostics-params-diagnostics
params
(or (seq-filter (-lambda ((&Diagnostic :source?))
(not (string= "typescript" source?)))
diagnostics)
[]))
params)
```
0 commit comments