coc-pyright 1.1.305 → 1.1.310

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 (4) hide show
  1. package/README.md +4 -3
  2. package/lib/index.js +23588 -28776
  3. package/package.json +7 -6
  4. package/diff.mjs +0 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-pyright",
3
- "version": "1.1.305",
3
+ "version": "1.1.310",
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",
@@ -31,8 +31,8 @@
31
31
  "schema": "curl -o schemas/pyrightconfig.schema.json https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json && node diff.mjs",
32
32
  "clean": "rimraf lib",
33
33
  "lint": "eslint src --ext ts",
34
- "build": "node esbuild.js",
35
- "prepare": "node esbuild.js"
34
+ "build": "node esbuild.mjs",
35
+ "prepare": "node esbuild.mjs"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/diff-match-patch": "^1.0.32",
@@ -44,7 +44,7 @@
44
44
  "@types/which": "^2.0.0",
45
45
  "@typescript-eslint/eslint-plugin": "^5.6.0",
46
46
  "@typescript-eslint/parser": "^5.6.0",
47
- "@zzzen/pyright-internal": "^1.2.0-dev.20230423",
47
+ "@zzzen/pyright-internal": "^1.2.0-dev.20230528",
48
48
  "coc.nvim": "^0.0.82",
49
49
  "diff-match-patch": "^1.0.5",
50
50
  "esbuild": "^0.17.10",
@@ -54,7 +54,7 @@
54
54
  "iconv-lite": "^0.6.2",
55
55
  "md5": "^2.3.0",
56
56
  "named-js-regexp": "^1.3.5",
57
- "rimraf": "^4.1.2",
57
+ "rimraf": "^5.0.0",
58
58
  "rxjs": "^7.4.0",
59
59
  "rxjs-compat": "^6.6.7",
60
60
  "semver": "^7.3.2",
@@ -1493,6 +1493,7 @@
1493
1493
  "description": "Organize imports provider",
1494
1494
  "enum": [
1495
1495
  "pyright",
1496
+ "ruff",
1496
1497
  "isort"
1497
1498
  ]
1498
1499
  },
@@ -1588,6 +1589,6 @@
1588
1589
  ]
1589
1590
  },
1590
1591
  "dependencies": {
1591
- "pyright": "^1.1.305"
1592
+ "pyright": "^1.1.310"
1592
1593
  }
1593
1594
  }
package/diff.mjs DELETED
@@ -1,25 +0,0 @@
1
- import { readFile } from 'fs';
2
- import { promisify } from 'util';
3
-
4
- async function diff() {
5
- const text = await promisify(readFile)('./package.json');
6
- const config = JSON.parse(text);
7
- const overrides = config.contributes.configuration.properties['python.analysis.diagnosticSeverityOverrides'].properties;
8
-
9
- const schemaText = await promisify(readFile)('./schemas/pyrightconfig.schema.json');
10
- const schema = JSON.parse(schemaText);
11
- for (const [key, val] of Object.entries(schema.properties)) {
12
- if (val['$ref'] === '#/definitions/diagnostic') {
13
- if (!overrides[key]) {
14
- console.error('missing:', key);
15
- } else {
16
- const obj = overrides[key];
17
- if (obj.default !== val.default) {
18
- console.error(`${key}, package.json value: ${obj.default}, schema value: ${val.default}`);
19
- }
20
- }
21
- }
22
- }
23
- }
24
-
25
- await diff();