coc-pyright 1.1.307 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-pyright",
3
- "version": "1.1.307",
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",
@@ -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.20230507",
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",
@@ -1589,6 +1589,6 @@
1589
1589
  ]
1590
1590
  },
1591
1591
  "dependencies": {
1592
- "pyright": "^1.1.307"
1592
+ "pyright": "^1.1.310"
1593
1593
  }
1594
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();
package/esbuild.mjs DELETED
@@ -1,24 +0,0 @@
1
- import * as esbuild from 'esbuild';
2
-
3
- const options = {
4
- entryPoints: ['src/index.ts'],
5
- bundle: true,
6
- minify: process.env.NODE_ENV === 'production',
7
- sourcemap: process.env.NODE_ENV === 'development',
8
- mainFields: ['module', 'main'],
9
- external: ['coc.nvim'],
10
- platform: 'node',
11
- target: 'node14.14',
12
- outfile: 'lib/index.js',
13
- };
14
-
15
- if (process.argv.length > 2 && process.argv[2] === '--watch') {
16
- const ctx = await esbuild.context(options);
17
- await ctx.watch();
18
- console.log('watching...');
19
- } else {
20
- const result = await esbuild.build(options);
21
- if (result.errors.length) {
22
- console.error(result.errors);
23
- }
24
- }