coc-pyright 1.1.265 → 1.1.266

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.
package/README.md CHANGED
@@ -65,8 +65,9 @@ These configurations are used by `coc-pyright`, you need to set them in your `co
65
65
  | python.sortImports.path | Path to isort script, default using inner version | '' |
66
66
  | python.sortImports.args | Arguments passed to isort | [] |
67
67
  | pyright.server | Custom `pyright-langserver` path | '' |
68
- | pyright.disableCompletion | Disables completion from Pyright, left other LSP features work | false |
68
+ | pyright.disableCompletion | Disables completion from Pyright | false |
69
69
  | pyright.disableDiagnostics | Disable diagnostics from Pyright | false |
70
+ | pyright.disableDocumentation | Disables hover documentation from Pyright | false |
70
71
  | pyright.disableProgressNotifications | Disable the initialization and workdone progress notifications | false |
71
72
  | pyright.completion.importSupport | Enable `python-import` completion source support | true |
72
73
  | pyright.completion.snippetSupport | Enable completion snippets support | true |
package/lib/index.js CHANGED
@@ -23692,6 +23692,9 @@ async function activate(context) {
23692
23692
  if (pyrightCfg.get("disableDiagnostics")) {
23693
23693
  disabledFeatures.push("diagnostics");
23694
23694
  }
23695
+ if (pyrightCfg.get("disableDocumentation")) {
23696
+ disabledFeatures.push("hover");
23697
+ }
23695
23698
  const disableProgress = pyrightCfg.get("disableProgressNotifications");
23696
23699
  if (disableProgress)
23697
23700
  disabledFeatures.push("progress");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-pyright",
3
- "version": "1.1.265",
3
+ "version": "1.1.266",
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",
@@ -1349,6 +1349,11 @@
1349
1349
  "default": false,
1350
1350
  "description": "Disable diagnostics from Pyright"
1351
1351
  },
1352
+ "pyright.disableDocumentation": {
1353
+ "type": "boolean",
1354
+ "default": false,
1355
+ "description": "Disable hover documentation from Pyright"
1356
+ },
1352
1357
  "pyright.disableProgressNotifications": {
1353
1358
  "type": "boolean",
1354
1359
  "default": false,
@@ -1430,6 +1435,6 @@
1430
1435
  ]
1431
1436
  },
1432
1437
  "dependencies": {
1433
- "pyright": "^1.1.265"
1438
+ "pyright": "^1.1.266"
1434
1439
  }
1435
1440
  }