coc-pyright 1.1.170 → 1.1.171

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +4 -0
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -23433,6 +23433,9 @@ async function provideHover(document, position, token, next) {
23433
23433
  }
23434
23434
  return hover;
23435
23435
  }
23436
+ async function handleDiagnostics(uri, diagnostics, next) {
23437
+ next(uri, diagnostics.filter((d) => d.message !== '"__" is not accessed'));
23438
+ }
23436
23439
  async function activate(context) {
23437
23440
  const pyrightCfg = import_coc24.workspace.getConfiguration("pyright");
23438
23441
  const isEnable = pyrightCfg.get("enable", true);
@@ -23478,6 +23481,7 @@ async function activate(context) {
23478
23481
  configuration
23479
23482
  },
23480
23483
  provideHover,
23484
+ handleDiagnostics,
23481
23485
  provideCompletionItem,
23482
23486
  resolveCompletionItem
23483
23487
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-pyright",
3
- "version": "1.1.170",
3
+ "version": "1.1.171",
4
4
  "description": "Pyright extension for coc.nvim, static type checker for Python",
5
5
  "author": "Heyward Fann <fannheyward@gmail.com>",
6
6
  "license": "MIT",
@@ -1331,6 +1331,6 @@
1331
1331
  ]
1332
1332
  },
1333
1333
  "dependencies": {
1334
- "pyright": "^1.1.170"
1334
+ "pyright": "^1.1.171"
1335
1335
  }
1336
1336
  }