We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6d9656 commit 24fe761Copy full SHA for 24fe761
packages/jupyterlab-lsp/src/features/diagnostics/diagnostics.ts
@@ -378,6 +378,12 @@ export class DiagnosticsCM extends CodeMirrorIntegration {
378
let code = diagnostic.code;
379
if (
380
typeof code !== 'undefined' &&
381
+ // pygls servers return code null if value is missing (rather than undefined)
382
+ // which is a departure from the LSP specs: https://microsoft.github.io/language-server-protocol/specification#diagnostic
383
+ // there is an open issue: https://github.com/openlawlibrary/pygls/issues/124
384
+ // and PR: https://github.com/openlawlibrary/pygls/pull/132
385
+ // this also affects hover tooltips.
386
+ code !== null &&
387
ignoredDiagnosticsCodes.has(code.toString())
388
) {
389
return false;
0 commit comments