coc-pyright 1.1.206 → 1.1.219
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/lib/index.js +17 -12
- package/package.json +35 -2
- package/schemas/pyrightconfig.schema.json +18 -0
package/lib/index.js
CHANGED
|
@@ -8014,7 +8014,7 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
8014
8014
|
"csibm863": "cp863",
|
|
8015
8015
|
"cp864": {
|
|
8016
8016
|
"type": "_sbcs",
|
|
8017
|
-
"chars": "\0\x07\b \n\v\f\r
|
|
8017
|
+
"chars": "\0\x07\b \n\v\f\r\x1B !\"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD"
|
|
8018
8018
|
},
|
|
8019
8019
|
"ibm864": "cp864",
|
|
8020
8020
|
"csibm864": "cp864",
|
|
@@ -8152,7 +8152,7 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
8152
8152
|
},
|
|
8153
8153
|
"tcvn": {
|
|
8154
8154
|
"type": "_sbcs",
|
|
8155
|
-
"chars": "\0\xDA\u1EE4\u1EEA\u1EEC\u1EEE\x07\b \n\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4
|
|
8155
|
+
"chars": "\0\xDA\u1EE4\u1EEA\u1EEC\u1EEE\x07\b \n\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0"
|
|
8156
8156
|
},
|
|
8157
8157
|
"georgianacademy": {
|
|
8158
8158
|
"type": "_sbcs",
|
|
@@ -8168,15 +8168,15 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
8168
8168
|
},
|
|
8169
8169
|
"viscii": {
|
|
8170
8170
|
"type": "_sbcs",
|
|
8171
|
-
"chars": "\0\u1EB2\u1EB4\u1EAA\x07\b \n\v\f\r\u1EF6\u1EF8
|
|
8171
|
+
"chars": "\0\u1EB2\u1EB4\u1EAA\x07\b \n\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1E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FFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"
|
|
8180
8180
|
},
|
|
8181
8181
|
"hproman8": {
|
|
8182
8182
|
"type": "_sbcs",
|
|
@@ -15520,7 +15520,7 @@ var require_auditTime = __commonJS({
|
|
|
15520
15520
|
var timer_1 = require_timer();
|
|
15521
15521
|
function auditTime(duration, scheduler) {
|
|
15522
15522
|
if (scheduler === void 0) {
|
|
15523
|
-
scheduler = async_1.
|
|
15523
|
+
scheduler = async_1.asyncScheduler;
|
|
15524
15524
|
}
|
|
15525
15525
|
return audit_1.audit(function() {
|
|
15526
15526
|
return timer_1.timer(duration, scheduler);
|
|
@@ -18571,7 +18571,7 @@ var require_timeInterval = __commonJS({
|
|
|
18571
18571
|
var map_1 = require_map();
|
|
18572
18572
|
function timeInterval(scheduler) {
|
|
18573
18573
|
if (scheduler === void 0) {
|
|
18574
|
-
scheduler = async_1.
|
|
18574
|
+
scheduler = async_1.asyncScheduler;
|
|
18575
18575
|
}
|
|
18576
18576
|
return function(source) {
|
|
18577
18577
|
return defer_1.defer(function() {
|
|
@@ -23382,7 +23382,8 @@ async function provideCompletionItem(document, position, context, token, next) {
|
|
|
23382
23382
|
return;
|
|
23383
23383
|
const items = Array.isArray(result) ? result : result.items;
|
|
23384
23384
|
items.map((x) => delete x.sortText);
|
|
23385
|
-
|
|
23385
|
+
const privateLevel = (x) => (x.insertText || x.label).match(/^_*/)[0].length;
|
|
23386
|
+
items.sort((a, b) => privateLevel(a) - privateLevel(b) || (a.kind && b.kind ? a.kind - b.kind : 0));
|
|
23386
23387
|
const snippetSupport = import_coc24.workspace.getConfiguration("pyright").get("completion.snippetSupport");
|
|
23387
23388
|
if (snippetSupport) {
|
|
23388
23389
|
for (const item of items) {
|
|
@@ -23441,8 +23442,13 @@ async function activate(context) {
|
|
|
23441
23442
|
module: module2,
|
|
23442
23443
|
transport: import_coc24.TransportKind.ipc
|
|
23443
23444
|
};
|
|
23444
|
-
const
|
|
23445
|
-
|
|
23445
|
+
const disabledFeatures = [];
|
|
23446
|
+
if (pyrightCfg.get("disableCompletion")) {
|
|
23447
|
+
disabledFeatures.push("completion");
|
|
23448
|
+
}
|
|
23449
|
+
if (pyrightCfg.get("disableDiagnostics")) {
|
|
23450
|
+
disabledFeatures.push("diagnostics");
|
|
23451
|
+
}
|
|
23446
23452
|
const outputChannel = import_coc24.window.createOutputChannel("Pyright");
|
|
23447
23453
|
const pythonSettings = PythonSettings.getInstance();
|
|
23448
23454
|
outputChannel.appendLine(`Workspace: ${import_coc24.workspace.root}`);
|
|
@@ -23454,8 +23460,7 @@ async function activate(context) {
|
|
|
23454
23460
|
configurationSection: ["python", "pyright"]
|
|
23455
23461
|
},
|
|
23456
23462
|
outputChannel,
|
|
23457
|
-
|
|
23458
|
-
disableDiagnostics,
|
|
23463
|
+
disabledFeatures,
|
|
23459
23464
|
progressOnInitialization: true,
|
|
23460
23465
|
middleware: {
|
|
23461
23466
|
workspace: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coc-pyright",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.219",
|
|
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",
|
|
@@ -468,6 +468,17 @@
|
|
|
468
468
|
"error"
|
|
469
469
|
]
|
|
470
470
|
},
|
|
471
|
+
"reportInconsistentConstructor": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
"description": "Diagnostics for __init__ and __new__ methods whose signatures are inconsistent.",
|
|
474
|
+
"default": "none",
|
|
475
|
+
"enum": [
|
|
476
|
+
"none",
|
|
477
|
+
"information",
|
|
478
|
+
"warning",
|
|
479
|
+
"error"
|
|
480
|
+
]
|
|
481
|
+
},
|
|
471
482
|
"reportOverlappingOverload": {
|
|
472
483
|
"type": "string",
|
|
473
484
|
"description": "Diagnostics for function overloads that overlap in signature and obscure each other or have incompatible return types.",
|
|
@@ -479,6 +490,17 @@
|
|
|
479
490
|
"error"
|
|
480
491
|
]
|
|
481
492
|
},
|
|
493
|
+
"reportMissingSuperCall": {
|
|
494
|
+
"type": "string",
|
|
495
|
+
"description": "Diagnostics for missing call to parent class for inherited `__init__` methods.",
|
|
496
|
+
"default": "none",
|
|
497
|
+
"enum": [
|
|
498
|
+
"none",
|
|
499
|
+
"information",
|
|
500
|
+
"warning",
|
|
501
|
+
"error"
|
|
502
|
+
]
|
|
503
|
+
},
|
|
482
504
|
"reportUninitializedInstanceVariable": {
|
|
483
505
|
"type": "string",
|
|
484
506
|
"description": "Diagnostics for instance variables that are not declared or initialized within class body or `__init__` method.",
|
|
@@ -743,6 +765,17 @@
|
|
|
743
765
|
"error"
|
|
744
766
|
]
|
|
745
767
|
},
|
|
768
|
+
"reportMatchNotExhaustive": {
|
|
769
|
+
"type": "string",
|
|
770
|
+
"description": "Diagnostics for 'match' statements that do not exhaustively match all possible values.",
|
|
771
|
+
"default": "none",
|
|
772
|
+
"enum": [
|
|
773
|
+
"none",
|
|
774
|
+
"information",
|
|
775
|
+
"warning",
|
|
776
|
+
"error"
|
|
777
|
+
]
|
|
778
|
+
},
|
|
746
779
|
"reportUnnecessaryTypeIgnoreComment": {
|
|
747
780
|
"type": "string",
|
|
748
781
|
"description": "Diagnostics for '# type: ignore' comments that have no effect.",
|
|
@@ -1358,6 +1391,6 @@
|
|
|
1358
1391
|
]
|
|
1359
1392
|
},
|
|
1360
1393
|
"dependencies": {
|
|
1361
|
-
"pyright": "^1.1.
|
|
1394
|
+
"pyright": "^1.1.219"
|
|
1362
1395
|
}
|
|
1363
1396
|
}
|
|
@@ -305,12 +305,24 @@
|
|
|
305
305
|
"title": "Controls reporting of overrides in subclasses that redefine a variable in an incompatible way",
|
|
306
306
|
"default": "none"
|
|
307
307
|
},
|
|
308
|
+
"reportInconsistentConstructor": {
|
|
309
|
+
"$id": "#/properties/reportInconsistentConstructor",
|
|
310
|
+
"$ref": "#/definitions/diagnostic",
|
|
311
|
+
"title": "Controls reporting of __init__ and __new__ methods whose signatures are inconsistent",
|
|
312
|
+
"default": "none"
|
|
313
|
+
},
|
|
308
314
|
"reportOverlappingOverload": {
|
|
309
315
|
"$id": "#/properties/reportOverlappingOverload",
|
|
310
316
|
"$ref": "#/definitions/diagnostic",
|
|
311
317
|
"title": "Controls reporting of function overloads that overlap in signature and obscure each other or do not agree on return type",
|
|
312
318
|
"default": "none"
|
|
313
319
|
},
|
|
320
|
+
"reportMissingSuperCall": {
|
|
321
|
+
"$id": "#/properties/reportMissingSuperCall",
|
|
322
|
+
"$ref": "#/definitions/diagnostic",
|
|
323
|
+
"title": "Controls reporting of missing call to parent class for inherited `__init__` methods",
|
|
324
|
+
"default": "none"
|
|
325
|
+
},
|
|
314
326
|
"reportUninitializedInstanceVariable": {
|
|
315
327
|
"$id": "#/properties/reportUninitializedInstanceVariable",
|
|
316
328
|
"$ref": "#/definitions/diagnostic",
|
|
@@ -461,6 +473,12 @@
|
|
|
461
473
|
"title": "Controls reporting of '# type: ignore' comments that have no effect'",
|
|
462
474
|
"default": "none"
|
|
463
475
|
},
|
|
476
|
+
"reportMatchNotExhaustive": {
|
|
477
|
+
"$id": "#/properties/reportMatchNotExhaustive",
|
|
478
|
+
"$ref": "#/definitions/diagnostic",
|
|
479
|
+
"title": "Controls reporting of 'match' statements that do not exhaustively match all possible values",
|
|
480
|
+
"default": "none"
|
|
481
|
+
},
|
|
464
482
|
"extraPaths": {
|
|
465
483
|
"$id": "#/properties/extraPaths",
|
|
466
484
|
"type": "array",
|