coc-pyright 1.1.231 → 1.1.243
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 +207 -158
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -21,7 +21,6 @@ var __spreadValues = (a, b) => {
|
|
|
21
21
|
return a;
|
|
22
22
|
};
|
|
23
23
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
25
24
|
var __commonJS = (cb, mod) => function __require() {
|
|
26
25
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
27
26
|
};
|
|
@@ -29,22 +28,16 @@ var __export = (target, all) => {
|
|
|
29
28
|
for (var name in all)
|
|
30
29
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
31
30
|
};
|
|
32
|
-
var
|
|
33
|
-
if (
|
|
34
|
-
for (let key of __getOwnPropNames(
|
|
35
|
-
if (!__hasOwnProp.call(
|
|
36
|
-
__defProp(
|
|
31
|
+
var __copyProps = (to, from, except, desc) => {
|
|
32
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
33
|
+
for (let key of __getOwnPropNames(from))
|
|
34
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
35
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
37
36
|
}
|
|
38
|
-
return
|
|
37
|
+
return to;
|
|
39
38
|
};
|
|
40
|
-
var __toESM = (
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
44
|
-
return (module2, temp) => {
|
|
45
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
46
|
-
};
|
|
47
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
39
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
40
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
41
|
|
|
49
42
|
// node_modules/semver/internal/constants.js
|
|
50
43
|
var require_constants = __commonJS({
|
|
@@ -83,7 +76,7 @@ var require_re = __commonJS({
|
|
|
83
76
|
var R = 0;
|
|
84
77
|
var createToken = (name, value, isGlobal) => {
|
|
85
78
|
const index = R++;
|
|
86
|
-
debug(index, value);
|
|
79
|
+
debug(name, index, value);
|
|
87
80
|
t[name] = index;
|
|
88
81
|
src[index] = value;
|
|
89
82
|
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
@@ -129,8 +122,8 @@ var require_re = __commonJS({
|
|
|
129
122
|
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
130
123
|
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
131
124
|
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
132
|
-
createToken("GTE0", "^\\s*>=\\s*0
|
|
133
|
-
createToken("GTE0PRE", "^\\s*>=\\s*0
|
|
125
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
126
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
134
127
|
}
|
|
135
128
|
});
|
|
136
129
|
|
|
@@ -138,9 +131,9 @@ var require_re = __commonJS({
|
|
|
138
131
|
var require_parse_options = __commonJS({
|
|
139
132
|
"node_modules/semver/internal/parse-options.js"(exports, module2) {
|
|
140
133
|
var opts = ["includePrerelease", "loose", "rtl"];
|
|
141
|
-
var parseOptions = (options) => !options ? {} : typeof options !== "object" ? { loose: true } : opts.filter((k) => options[k]).reduce((
|
|
142
|
-
|
|
143
|
-
return
|
|
134
|
+
var parseOptions = (options) => !options ? {} : typeof options !== "object" ? { loose: true } : opts.filter((k) => options[k]).reduce((o, k) => {
|
|
135
|
+
o[k] = true;
|
|
136
|
+
return o;
|
|
144
137
|
}, {});
|
|
145
138
|
module2.exports = parseOptions;
|
|
146
139
|
}
|
|
@@ -370,7 +363,7 @@ var require_semver = __commonJS({
|
|
|
370
363
|
}
|
|
371
364
|
}
|
|
372
365
|
if (identifier) {
|
|
373
|
-
if (this.prerelease[0] ===
|
|
366
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
374
367
|
if (isNaN(this.prerelease[1])) {
|
|
375
368
|
this.prerelease = [identifier, 0];
|
|
376
369
|
}
|
|
@@ -457,7 +450,7 @@ var require_inc = __commonJS({
|
|
|
457
450
|
options = void 0;
|
|
458
451
|
}
|
|
459
452
|
try {
|
|
460
|
-
return new SemVer2(version, options).inc(release, identifier).version;
|
|
453
|
+
return new SemVer2(version instanceof SemVer2 ? version.version : version, options).inc(release, identifier).version;
|
|
461
454
|
} catch (er) {
|
|
462
455
|
return null;
|
|
463
456
|
}
|
|
@@ -657,16 +650,20 @@ var require_cmp = __commonJS({
|
|
|
657
650
|
var cmp = (a, op, b, loose) => {
|
|
658
651
|
switch (op) {
|
|
659
652
|
case "===":
|
|
660
|
-
if (typeof a === "object")
|
|
653
|
+
if (typeof a === "object") {
|
|
661
654
|
a = a.version;
|
|
662
|
-
|
|
655
|
+
}
|
|
656
|
+
if (typeof b === "object") {
|
|
663
657
|
b = b.version;
|
|
658
|
+
}
|
|
664
659
|
return a === b;
|
|
665
660
|
case "!==":
|
|
666
|
-
if (typeof a === "object")
|
|
661
|
+
if (typeof a === "object") {
|
|
667
662
|
a = a.version;
|
|
668
|
-
|
|
663
|
+
}
|
|
664
|
+
if (typeof b === "object") {
|
|
669
665
|
b = b.version;
|
|
666
|
+
}
|
|
670
667
|
return a !== b;
|
|
671
668
|
case "":
|
|
672
669
|
case "=":
|
|
@@ -720,8 +717,9 @@ var require_coerce = __commonJS({
|
|
|
720
717
|
}
|
|
721
718
|
re[t.COERCERTL].lastIndex = -1;
|
|
722
719
|
}
|
|
723
|
-
if (match === null)
|
|
720
|
+
if (match === null) {
|
|
724
721
|
return null;
|
|
722
|
+
}
|
|
725
723
|
return parse(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options);
|
|
726
724
|
};
|
|
727
725
|
module2.exports = coerce;
|
|
@@ -1402,16 +1400,16 @@ var require_range = __commonJS({
|
|
|
1402
1400
|
this.loose = !!options.loose;
|
|
1403
1401
|
this.includePrerelease = !!options.includePrerelease;
|
|
1404
1402
|
this.raw = range;
|
|
1405
|
-
this.set = range.split(
|
|
1403
|
+
this.set = range.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
1406
1404
|
if (!this.set.length) {
|
|
1407
1405
|
throw new TypeError(`Invalid SemVer Range: ${range}`);
|
|
1408
1406
|
}
|
|
1409
1407
|
if (this.set.length > 1) {
|
|
1410
1408
|
const first = this.set[0];
|
|
1411
1409
|
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
1412
|
-
if (this.set.length === 0)
|
|
1410
|
+
if (this.set.length === 0) {
|
|
1413
1411
|
this.set = [first];
|
|
1414
|
-
else if (this.set.length > 1) {
|
|
1412
|
+
} else if (this.set.length > 1) {
|
|
1415
1413
|
for (const c of this.set) {
|
|
1416
1414
|
if (c.length === 1 && isAny(c[0])) {
|
|
1417
1415
|
this.set = [c];
|
|
@@ -1436,28 +1434,37 @@ var require_range = __commonJS({
|
|
|
1436
1434
|
const memoOpts = Object.keys(this.options).join(",");
|
|
1437
1435
|
const memoKey = `parseRange:${memoOpts}:${range}`;
|
|
1438
1436
|
const cached = cache.get(memoKey);
|
|
1439
|
-
if (cached)
|
|
1437
|
+
if (cached) {
|
|
1440
1438
|
return cached;
|
|
1439
|
+
}
|
|
1441
1440
|
const loose = this.options.loose;
|
|
1442
1441
|
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
1443
1442
|
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
1444
1443
|
debug("hyphen replace", range);
|
|
1445
1444
|
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
1446
|
-
debug("comparator trim", range
|
|
1445
|
+
debug("comparator trim", range);
|
|
1447
1446
|
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
1448
1447
|
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
1449
1448
|
range = range.split(/\s+/).join(" ");
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1449
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
1450
|
+
if (loose) {
|
|
1451
|
+
rangeList = rangeList.filter((comp) => {
|
|
1452
|
+
debug("loose invalid filter", comp, this.options);
|
|
1453
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
debug("range list", rangeList);
|
|
1453
1457
|
const rangeMap = /* @__PURE__ */ new Map();
|
|
1454
|
-
|
|
1455
|
-
|
|
1458
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
1459
|
+
for (const comp of comparators) {
|
|
1460
|
+
if (isNullSet(comp)) {
|
|
1456
1461
|
return [comp];
|
|
1462
|
+
}
|
|
1457
1463
|
rangeMap.set(comp.value, comp);
|
|
1458
1464
|
}
|
|
1459
|
-
if (rangeMap.size > 1 && rangeMap.has(""))
|
|
1465
|
+
if (rangeMap.size > 1 && rangeMap.has("")) {
|
|
1460
1466
|
rangeMap.delete("");
|
|
1467
|
+
}
|
|
1461
1468
|
const result = [...rangeMap.values()];
|
|
1462
1469
|
cache.set(memoKey, result);
|
|
1463
1470
|
return result;
|
|
@@ -1536,8 +1543,8 @@ var require_range = __commonJS({
|
|
|
1536
1543
|
return comp;
|
|
1537
1544
|
};
|
|
1538
1545
|
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
1539
|
-
var replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((
|
|
1540
|
-
return replaceTilde(
|
|
1546
|
+
var replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => {
|
|
1547
|
+
return replaceTilde(c, options);
|
|
1541
1548
|
}).join(" ");
|
|
1542
1549
|
var replaceTilde = (comp, options) => {
|
|
1543
1550
|
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
@@ -1560,8 +1567,8 @@ var require_range = __commonJS({
|
|
|
1560
1567
|
return ret;
|
|
1561
1568
|
});
|
|
1562
1569
|
};
|
|
1563
|
-
var replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((
|
|
1564
|
-
return replaceCaret(
|
|
1570
|
+
var replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => {
|
|
1571
|
+
return replaceCaret(c, options);
|
|
1565
1572
|
}).join(" ");
|
|
1566
1573
|
var replaceCaret = (comp, options) => {
|
|
1567
1574
|
debug("caret", comp, options);
|
|
@@ -1609,8 +1616,8 @@ var require_range = __commonJS({
|
|
|
1609
1616
|
};
|
|
1610
1617
|
var replaceXRanges = (comp, options) => {
|
|
1611
1618
|
debug("replaceXRanges", comp, options);
|
|
1612
|
-
return comp.split(/\s+/).map((
|
|
1613
|
-
return replaceXRange(
|
|
1619
|
+
return comp.split(/\s+/).map((c) => {
|
|
1620
|
+
return replaceXRange(c, options);
|
|
1614
1621
|
}).join(" ");
|
|
1615
1622
|
};
|
|
1616
1623
|
var replaceXRange = (comp, options) => {
|
|
@@ -1655,8 +1662,9 @@ var require_range = __commonJS({
|
|
|
1655
1662
|
m = +m + 1;
|
|
1656
1663
|
}
|
|
1657
1664
|
}
|
|
1658
|
-
if (gtlt === "<")
|
|
1665
|
+
if (gtlt === "<") {
|
|
1659
1666
|
pr = "-0";
|
|
1667
|
+
}
|
|
1660
1668
|
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
1661
1669
|
} else if (xm) {
|
|
1662
1670
|
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
@@ -1953,8 +1961,9 @@ var require_min_version = __commonJS({
|
|
|
1953
1961
|
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
1954
1962
|
}
|
|
1955
1963
|
});
|
|
1956
|
-
if (setMin && (!minver || gt(minver, setMin)))
|
|
1964
|
+
if (setMin && (!minver || gt(minver, setMin))) {
|
|
1957
1965
|
minver = setMin;
|
|
1966
|
+
}
|
|
1958
1967
|
}
|
|
1959
1968
|
if (minver && range.test(minver)) {
|
|
1960
1969
|
return minver;
|
|
@@ -2086,37 +2095,40 @@ var require_simplify = __commonJS({
|
|
|
2086
2095
|
var compare = require_compare();
|
|
2087
2096
|
module2.exports = (versions, range, options) => {
|
|
2088
2097
|
const set = [];
|
|
2089
|
-
let
|
|
2098
|
+
let first = null;
|
|
2090
2099
|
let prev = null;
|
|
2091
2100
|
const v = versions.sort((a, b) => compare(a, b, options));
|
|
2092
2101
|
for (const version of v) {
|
|
2093
2102
|
const included = satisfies(version, range, options);
|
|
2094
2103
|
if (included) {
|
|
2095
2104
|
prev = version;
|
|
2096
|
-
if (!
|
|
2097
|
-
|
|
2105
|
+
if (!first) {
|
|
2106
|
+
first = version;
|
|
2107
|
+
}
|
|
2098
2108
|
} else {
|
|
2099
2109
|
if (prev) {
|
|
2100
|
-
set.push([
|
|
2110
|
+
set.push([first, prev]);
|
|
2101
2111
|
}
|
|
2102
2112
|
prev = null;
|
|
2103
|
-
|
|
2113
|
+
first = null;
|
|
2104
2114
|
}
|
|
2105
2115
|
}
|
|
2106
|
-
if (
|
|
2107
|
-
set.push([
|
|
2116
|
+
if (first) {
|
|
2117
|
+
set.push([first, null]);
|
|
2118
|
+
}
|
|
2108
2119
|
const ranges = [];
|
|
2109
|
-
for (const [
|
|
2110
|
-
if (
|
|
2111
|
-
ranges.push(
|
|
2112
|
-
else if (!max &&
|
|
2120
|
+
for (const [min, max] of set) {
|
|
2121
|
+
if (min === max) {
|
|
2122
|
+
ranges.push(min);
|
|
2123
|
+
} else if (!max && min === v[0]) {
|
|
2113
2124
|
ranges.push("*");
|
|
2114
|
-
else if (!max)
|
|
2115
|
-
ranges.push(`>=${
|
|
2116
|
-
else if (
|
|
2125
|
+
} else if (!max) {
|
|
2126
|
+
ranges.push(`>=${min}`);
|
|
2127
|
+
} else if (min === v[0]) {
|
|
2117
2128
|
ranges.push(`<=${max}`);
|
|
2118
|
-
else
|
|
2119
|
-
ranges.push(`${
|
|
2129
|
+
} else {
|
|
2130
|
+
ranges.push(`${min} - ${max}`);
|
|
2131
|
+
}
|
|
2120
2132
|
}
|
|
2121
2133
|
const simplified = ranges.join(" || ");
|
|
2122
2134
|
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
@@ -2134,8 +2146,9 @@ var require_subset = __commonJS({
|
|
|
2134
2146
|
var satisfies = require_satisfies();
|
|
2135
2147
|
var compare = require_compare();
|
|
2136
2148
|
var subset = (sub, dom, options = {}) => {
|
|
2137
|
-
if (sub === dom)
|
|
2149
|
+
if (sub === dom) {
|
|
2138
2150
|
return true;
|
|
2151
|
+
}
|
|
2139
2152
|
sub = new Range11(sub, options);
|
|
2140
2153
|
dom = new Range11(dom, options);
|
|
2141
2154
|
let sawNonNull = false;
|
|
@@ -2144,59 +2157,70 @@ var require_subset = __commonJS({
|
|
|
2144
2157
|
for (const simpleDom of dom.set) {
|
|
2145
2158
|
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
2146
2159
|
sawNonNull = sawNonNull || isSub !== null;
|
|
2147
|
-
if (isSub)
|
|
2160
|
+
if (isSub) {
|
|
2148
2161
|
continue OUTER;
|
|
2162
|
+
}
|
|
2149
2163
|
}
|
|
2150
|
-
if (sawNonNull)
|
|
2164
|
+
if (sawNonNull) {
|
|
2151
2165
|
return false;
|
|
2166
|
+
}
|
|
2152
2167
|
}
|
|
2153
2168
|
return true;
|
|
2154
2169
|
};
|
|
2155
2170
|
var simpleSubset = (sub, dom, options) => {
|
|
2156
|
-
if (sub === dom)
|
|
2171
|
+
if (sub === dom) {
|
|
2157
2172
|
return true;
|
|
2173
|
+
}
|
|
2158
2174
|
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
2159
|
-
if (dom.length === 1 && dom[0].semver === ANY)
|
|
2175
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
2160
2176
|
return true;
|
|
2161
|
-
else if (options.includePrerelease)
|
|
2177
|
+
} else if (options.includePrerelease) {
|
|
2162
2178
|
sub = [new Comparator(">=0.0.0-0")];
|
|
2163
|
-
else
|
|
2179
|
+
} else {
|
|
2164
2180
|
sub = [new Comparator(">=0.0.0")];
|
|
2181
|
+
}
|
|
2165
2182
|
}
|
|
2166
2183
|
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
2167
|
-
if (options.includePrerelease)
|
|
2184
|
+
if (options.includePrerelease) {
|
|
2168
2185
|
return true;
|
|
2169
|
-
else
|
|
2186
|
+
} else {
|
|
2170
2187
|
dom = [new Comparator(">=0.0.0")];
|
|
2188
|
+
}
|
|
2171
2189
|
}
|
|
2172
2190
|
const eqSet = /* @__PURE__ */ new Set();
|
|
2173
2191
|
let gt, lt2;
|
|
2174
2192
|
for (const c of sub) {
|
|
2175
|
-
if (c.operator === ">" || c.operator === ">=")
|
|
2193
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
2176
2194
|
gt = higherGT(gt, c, options);
|
|
2177
|
-
else if (c.operator === "<" || c.operator === "<=")
|
|
2195
|
+
} else if (c.operator === "<" || c.operator === "<=") {
|
|
2178
2196
|
lt2 = lowerLT(lt2, c, options);
|
|
2179
|
-
else
|
|
2197
|
+
} else {
|
|
2180
2198
|
eqSet.add(c.semver);
|
|
2199
|
+
}
|
|
2181
2200
|
}
|
|
2182
|
-
if (eqSet.size > 1)
|
|
2201
|
+
if (eqSet.size > 1) {
|
|
2183
2202
|
return null;
|
|
2203
|
+
}
|
|
2184
2204
|
let gtltComp;
|
|
2185
2205
|
if (gt && lt2) {
|
|
2186
2206
|
gtltComp = compare(gt.semver, lt2.semver, options);
|
|
2187
|
-
if (gtltComp > 0)
|
|
2207
|
+
if (gtltComp > 0) {
|
|
2188
2208
|
return null;
|
|
2189
|
-
else if (gtltComp === 0 && (gt.operator !== ">=" || lt2.operator !== "<="))
|
|
2209
|
+
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt2.operator !== "<=")) {
|
|
2190
2210
|
return null;
|
|
2211
|
+
}
|
|
2191
2212
|
}
|
|
2192
2213
|
for (const eq of eqSet) {
|
|
2193
|
-
if (gt && !satisfies(eq, String(gt), options))
|
|
2214
|
+
if (gt && !satisfies(eq, String(gt), options)) {
|
|
2194
2215
|
return null;
|
|
2195
|
-
|
|
2216
|
+
}
|
|
2217
|
+
if (lt2 && !satisfies(eq, String(lt2), options)) {
|
|
2196
2218
|
return null;
|
|
2219
|
+
}
|
|
2197
2220
|
for (const c of dom) {
|
|
2198
|
-
if (!satisfies(eq, String(c), options))
|
|
2221
|
+
if (!satisfies(eq, String(c), options)) {
|
|
2199
2222
|
return false;
|
|
2223
|
+
}
|
|
2200
2224
|
}
|
|
2201
2225
|
return true;
|
|
2202
2226
|
}
|
|
@@ -2218,10 +2242,12 @@ var require_subset = __commonJS({
|
|
|
2218
2242
|
}
|
|
2219
2243
|
if (c.operator === ">" || c.operator === ">=") {
|
|
2220
2244
|
higher = higherGT(gt, c, options);
|
|
2221
|
-
if (higher === c && higher !== gt)
|
|
2245
|
+
if (higher === c && higher !== gt) {
|
|
2222
2246
|
return false;
|
|
2223
|
-
|
|
2247
|
+
}
|
|
2248
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
|
|
2224
2249
|
return false;
|
|
2250
|
+
}
|
|
2225
2251
|
}
|
|
2226
2252
|
if (lt2) {
|
|
2227
2253
|
if (needDomLTPre) {
|
|
@@ -2231,31 +2257,39 @@ var require_subset = __commonJS({
|
|
|
2231
2257
|
}
|
|
2232
2258
|
if (c.operator === "<" || c.operator === "<=") {
|
|
2233
2259
|
lower = lowerLT(lt2, c, options);
|
|
2234
|
-
if (lower === c && lower !== lt2)
|
|
2260
|
+
if (lower === c && lower !== lt2) {
|
|
2235
2261
|
return false;
|
|
2236
|
-
|
|
2262
|
+
}
|
|
2263
|
+
} else if (lt2.operator === "<=" && !satisfies(lt2.semver, String(c), options)) {
|
|
2237
2264
|
return false;
|
|
2265
|
+
}
|
|
2238
2266
|
}
|
|
2239
|
-
if (!c.operator && (lt2 || gt) && gtltComp !== 0)
|
|
2267
|
+
if (!c.operator && (lt2 || gt) && gtltComp !== 0) {
|
|
2240
2268
|
return false;
|
|
2269
|
+
}
|
|
2241
2270
|
}
|
|
2242
|
-
if (gt && hasDomLT && !lt2 && gtltComp !== 0)
|
|
2271
|
+
if (gt && hasDomLT && !lt2 && gtltComp !== 0) {
|
|
2243
2272
|
return false;
|
|
2244
|
-
|
|
2273
|
+
}
|
|
2274
|
+
if (lt2 && hasDomGT && !gt && gtltComp !== 0) {
|
|
2245
2275
|
return false;
|
|
2246
|
-
|
|
2276
|
+
}
|
|
2277
|
+
if (needDomGTPre || needDomLTPre) {
|
|
2247
2278
|
return false;
|
|
2279
|
+
}
|
|
2248
2280
|
return true;
|
|
2249
2281
|
};
|
|
2250
2282
|
var higherGT = (a, b, options) => {
|
|
2251
|
-
if (!a)
|
|
2283
|
+
if (!a) {
|
|
2252
2284
|
return b;
|
|
2285
|
+
}
|
|
2253
2286
|
const comp = compare(a.semver, b.semver, options);
|
|
2254
2287
|
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
2255
2288
|
};
|
|
2256
2289
|
var lowerLT = (a, b, options) => {
|
|
2257
|
-
if (!a)
|
|
2290
|
+
if (!a) {
|
|
2258
2291
|
return b;
|
|
2292
|
+
}
|
|
2259
2293
|
const comp = compare(a.semver, b.semver, options);
|
|
2260
2294
|
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
2261
2295
|
};
|
|
@@ -3332,7 +3366,6 @@ var require_fs = __commonJS({
|
|
|
3332
3366
|
api.forEach((method2) => {
|
|
3333
3367
|
exports[method2] = u(fs6[method2]);
|
|
3334
3368
|
});
|
|
3335
|
-
exports.realpath.native = u(fs6.realpath.native);
|
|
3336
3369
|
exports.exists = function(filename, callback) {
|
|
3337
3370
|
if (typeof callback === "function") {
|
|
3338
3371
|
return fs6.exists(filename, callback);
|
|
@@ -3379,6 +3412,11 @@ var require_fs = __commonJS({
|
|
|
3379
3412
|
});
|
|
3380
3413
|
};
|
|
3381
3414
|
}
|
|
3415
|
+
if (typeof fs6.realpath.native === "function") {
|
|
3416
|
+
exports.realpath.native = u(fs6.realpath.native);
|
|
3417
|
+
} else {
|
|
3418
|
+
process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?", "Warning", "fs-extra-WARN0003");
|
|
3419
|
+
}
|
|
3382
3420
|
}
|
|
3383
3421
|
});
|
|
3384
3422
|
|
|
@@ -3653,9 +3691,7 @@ var require_copy = __commonJS({
|
|
|
3653
3691
|
opts.clobber = "clobber" in opts ? !!opts.clobber : true;
|
|
3654
3692
|
opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
|
|
3655
3693
|
if (opts.preserveTimestamps && process.arch === "ia32") {
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);
|
|
3694
|
+
process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0001");
|
|
3659
3695
|
}
|
|
3660
3696
|
stat.checkPaths(src, dest, "copy", opts, (err, stats) => {
|
|
3661
3697
|
if (err)
|
|
@@ -3874,9 +3910,7 @@ var require_copy_sync = __commonJS({
|
|
|
3874
3910
|
opts.clobber = "clobber" in opts ? !!opts.clobber : true;
|
|
3875
3911
|
opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
|
|
3876
3912
|
if (opts.preserveTimestamps && process.arch === "ia32") {
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);
|
|
3913
|
+
process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0002");
|
|
3880
3914
|
}
|
|
3881
3915
|
const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);
|
|
3882
3916
|
stat.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
@@ -4918,6 +4952,7 @@ var require_move = __commonJS({
|
|
|
4918
4952
|
cb = opts;
|
|
4919
4953
|
opts = {};
|
|
4920
4954
|
}
|
|
4955
|
+
opts = opts || {};
|
|
4921
4956
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
4922
4957
|
stat.checkPaths(src, dest, "move", opts, (err, stats) => {
|
|
4923
4958
|
if (err)
|
|
@@ -10395,7 +10430,7 @@ var require_Subscription = __commonJS({
|
|
|
10395
10430
|
this.initialTeardown = initialTeardown;
|
|
10396
10431
|
this.closed = false;
|
|
10397
10432
|
this._parentage = null;
|
|
10398
|
-
this.
|
|
10433
|
+
this._finalizers = null;
|
|
10399
10434
|
}
|
|
10400
10435
|
Subscription2.prototype.unsubscribe = function() {
|
|
10401
10436
|
var e_1, _a, e_2, _b;
|
|
@@ -10426,22 +10461,22 @@ var require_Subscription = __commonJS({
|
|
|
10426
10461
|
_parentage.remove(this);
|
|
10427
10462
|
}
|
|
10428
10463
|
}
|
|
10429
|
-
var
|
|
10430
|
-
if (isFunction_1.isFunction(
|
|
10464
|
+
var initialFinalizer = this.initialTeardown;
|
|
10465
|
+
if (isFunction_1.isFunction(initialFinalizer)) {
|
|
10431
10466
|
try {
|
|
10432
|
-
|
|
10467
|
+
initialFinalizer();
|
|
10433
10468
|
} catch (e) {
|
|
10434
10469
|
errors = e instanceof UnsubscriptionError_1.UnsubscriptionError ? e.errors : [e];
|
|
10435
10470
|
}
|
|
10436
10471
|
}
|
|
10437
|
-
var
|
|
10438
|
-
if (
|
|
10439
|
-
this.
|
|
10472
|
+
var _finalizers = this._finalizers;
|
|
10473
|
+
if (_finalizers) {
|
|
10474
|
+
this._finalizers = null;
|
|
10440
10475
|
try {
|
|
10441
|
-
for (var
|
|
10442
|
-
var
|
|
10476
|
+
for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
|
|
10477
|
+
var finalizer = _finalizers_1_1.value;
|
|
10443
10478
|
try {
|
|
10444
|
-
|
|
10479
|
+
execFinalizer(finalizer);
|
|
10445
10480
|
} catch (err) {
|
|
10446
10481
|
errors = errors !== null && errors !== void 0 ? errors : [];
|
|
10447
10482
|
if (err instanceof UnsubscriptionError_1.UnsubscriptionError) {
|
|
@@ -10455,8 +10490,8 @@ var require_Subscription = __commonJS({
|
|
|
10455
10490
|
e_2 = { error: e_2_1 };
|
|
10456
10491
|
} finally {
|
|
10457
10492
|
try {
|
|
10458
|
-
if (
|
|
10459
|
-
_b.call(
|
|
10493
|
+
if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return))
|
|
10494
|
+
_b.call(_finalizers_1);
|
|
10460
10495
|
} finally {
|
|
10461
10496
|
if (e_2)
|
|
10462
10497
|
throw e_2.error;
|
|
@@ -10472,7 +10507,7 @@ var require_Subscription = __commonJS({
|
|
|
10472
10507
|
var _a;
|
|
10473
10508
|
if (teardown && teardown !== this) {
|
|
10474
10509
|
if (this.closed) {
|
|
10475
|
-
|
|
10510
|
+
execFinalizer(teardown);
|
|
10476
10511
|
} else {
|
|
10477
10512
|
if (teardown instanceof Subscription2) {
|
|
10478
10513
|
if (teardown.closed || teardown._hasParent(this)) {
|
|
@@ -10480,7 +10515,7 @@ var require_Subscription = __commonJS({
|
|
|
10480
10515
|
}
|
|
10481
10516
|
teardown._addParent(this);
|
|
10482
10517
|
}
|
|
10483
|
-
(this.
|
|
10518
|
+
(this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
|
|
10484
10519
|
}
|
|
10485
10520
|
}
|
|
10486
10521
|
};
|
|
@@ -10501,8 +10536,8 @@ var require_Subscription = __commonJS({
|
|
|
10501
10536
|
}
|
|
10502
10537
|
};
|
|
10503
10538
|
Subscription2.prototype.remove = function(teardown) {
|
|
10504
|
-
var
|
|
10505
|
-
|
|
10539
|
+
var _finalizers = this._finalizers;
|
|
10540
|
+
_finalizers && arrRemove_1.arrRemove(_finalizers, teardown);
|
|
10506
10541
|
if (teardown instanceof Subscription2) {
|
|
10507
10542
|
teardown._removeParent(this);
|
|
10508
10543
|
}
|
|
@@ -10520,11 +10555,11 @@ var require_Subscription = __commonJS({
|
|
|
10520
10555
|
return value instanceof Subscription || value && "closed" in value && isFunction_1.isFunction(value.remove) && isFunction_1.isFunction(value.add) && isFunction_1.isFunction(value.unsubscribe);
|
|
10521
10556
|
}
|
|
10522
10557
|
exports.isSubscription = isSubscription;
|
|
10523
|
-
function
|
|
10524
|
-
if (isFunction_1.isFunction(
|
|
10525
|
-
|
|
10558
|
+
function execFinalizer(finalizer) {
|
|
10559
|
+
if (isFunction_1.isFunction(finalizer)) {
|
|
10560
|
+
finalizer();
|
|
10526
10561
|
} else {
|
|
10527
|
-
|
|
10562
|
+
finalizer.unsubscribe();
|
|
10528
10563
|
}
|
|
10529
10564
|
}
|
|
10530
10565
|
}
|
|
@@ -10579,13 +10614,16 @@ var require_timeoutProvider = __commonJS({
|
|
|
10579
10614
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10580
10615
|
exports.timeoutProvider = void 0;
|
|
10581
10616
|
exports.timeoutProvider = {
|
|
10582
|
-
setTimeout: function() {
|
|
10617
|
+
setTimeout: function(handler, timeout) {
|
|
10583
10618
|
var args = [];
|
|
10584
|
-
for (var _i =
|
|
10585
|
-
args[_i] = arguments[_i];
|
|
10619
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
10620
|
+
args[_i - 2] = arguments[_i];
|
|
10586
10621
|
}
|
|
10587
10622
|
var delegate = exports.timeoutProvider.delegate;
|
|
10588
|
-
|
|
10623
|
+
if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
|
|
10624
|
+
return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args)));
|
|
10625
|
+
}
|
|
10626
|
+
return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));
|
|
10589
10627
|
},
|
|
10590
10628
|
clearTimeout: function(handle) {
|
|
10591
10629
|
var delegate = exports.timeoutProvider.delegate;
|
|
@@ -11490,6 +11528,7 @@ var require_Subject = __commonJS({
|
|
|
11490
11528
|
function Subject2() {
|
|
11491
11529
|
var _this = _super.call(this) || this;
|
|
11492
11530
|
_this.closed = false;
|
|
11531
|
+
_this.currentObservers = null;
|
|
11493
11532
|
_this.observers = [];
|
|
11494
11533
|
_this.isStopped = false;
|
|
11495
11534
|
_this.hasError = false;
|
|
@@ -11512,18 +11551,20 @@ var require_Subject = __commonJS({
|
|
|
11512
11551
|
var e_1, _a;
|
|
11513
11552
|
_this._throwIfClosed();
|
|
11514
11553
|
if (!_this.isStopped) {
|
|
11515
|
-
|
|
11554
|
+
if (!_this.currentObservers) {
|
|
11555
|
+
_this.currentObservers = Array.from(_this.observers);
|
|
11556
|
+
}
|
|
11516
11557
|
try {
|
|
11517
|
-
for (var
|
|
11518
|
-
var observer =
|
|
11558
|
+
for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
11559
|
+
var observer = _c.value;
|
|
11519
11560
|
observer.next(value);
|
|
11520
11561
|
}
|
|
11521
11562
|
} catch (e_1_1) {
|
|
11522
11563
|
e_1 = { error: e_1_1 };
|
|
11523
11564
|
} finally {
|
|
11524
11565
|
try {
|
|
11525
|
-
if (
|
|
11526
|
-
_a.call(
|
|
11566
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
11567
|
+
_a.call(_b);
|
|
11527
11568
|
} finally {
|
|
11528
11569
|
if (e_1)
|
|
11529
11570
|
throw e_1.error;
|
|
@@ -11561,7 +11602,7 @@ var require_Subject = __commonJS({
|
|
|
11561
11602
|
};
|
|
11562
11603
|
Subject2.prototype.unsubscribe = function() {
|
|
11563
11604
|
this.isStopped = this.closed = true;
|
|
11564
|
-
this.observers = null;
|
|
11605
|
+
this.observers = this.currentObservers = null;
|
|
11565
11606
|
};
|
|
11566
11607
|
Object.defineProperty(Subject2.prototype, "observed", {
|
|
11567
11608
|
get: function() {
|
|
@@ -11581,10 +11622,17 @@ var require_Subject = __commonJS({
|
|
|
11581
11622
|
return this._innerSubscribe(subscriber);
|
|
11582
11623
|
};
|
|
11583
11624
|
Subject2.prototype._innerSubscribe = function(subscriber) {
|
|
11625
|
+
var _this = this;
|
|
11584
11626
|
var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
|
|
11585
|
-
|
|
11586
|
-
return
|
|
11587
|
-
}
|
|
11627
|
+
if (hasError || isStopped) {
|
|
11628
|
+
return Subscription_1.EMPTY_SUBSCRIPTION;
|
|
11629
|
+
}
|
|
11630
|
+
this.currentObservers = null;
|
|
11631
|
+
observers.push(subscriber);
|
|
11632
|
+
return new Subscription_1.Subscription(function() {
|
|
11633
|
+
_this.currentObservers = null;
|
|
11634
|
+
arrRemove_1.arrRemove(observers, subscriber);
|
|
11635
|
+
});
|
|
11588
11636
|
};
|
|
11589
11637
|
Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
11590
11638
|
var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
|
|
@@ -11950,13 +11998,16 @@ var require_intervalProvider = __commonJS({
|
|
|
11950
11998
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11951
11999
|
exports.intervalProvider = void 0;
|
|
11952
12000
|
exports.intervalProvider = {
|
|
11953
|
-
setInterval: function() {
|
|
12001
|
+
setInterval: function(handler, timeout) {
|
|
11954
12002
|
var args = [];
|
|
11955
|
-
for (var _i =
|
|
11956
|
-
args[_i] = arguments[_i];
|
|
12003
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
12004
|
+
args[_i - 2] = arguments[_i];
|
|
11957
12005
|
}
|
|
11958
12006
|
var delegate = exports.intervalProvider.delegate;
|
|
11959
|
-
|
|
12007
|
+
if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
|
|
12008
|
+
return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args)));
|
|
12009
|
+
}
|
|
12010
|
+
return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args)));
|
|
11960
12011
|
},
|
|
11961
12012
|
clearInterval: function(handle) {
|
|
11962
12013
|
var delegate = exports.intervalProvider.delegate;
|
|
@@ -14092,7 +14143,7 @@ var require_timeout = __commonJS({
|
|
|
14092
14143
|
}
|
|
14093
14144
|
lastValue = null;
|
|
14094
14145
|
}));
|
|
14095
|
-
startTimer(first != null ? typeof first === "number" ? first : +first - scheduler.now() : each);
|
|
14146
|
+
!seen && startTimer(first != null ? typeof first === "number" ? first : +first - scheduler.now() : each);
|
|
14096
14147
|
});
|
|
14097
14148
|
}
|
|
14098
14149
|
exports.timeout = timeout;
|
|
@@ -14442,7 +14493,7 @@ var require_mergeInternals = __commonJS({
|
|
|
14442
14493
|
var innerFrom_1 = require_innerFrom();
|
|
14443
14494
|
var executeSchedule_1 = require_executeSchedule();
|
|
14444
14495
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
14445
|
-
function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler,
|
|
14496
|
+
function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
|
|
14446
14497
|
var buffer = [];
|
|
14447
14498
|
var active = 0;
|
|
14448
14499
|
var index = 0;
|
|
@@ -14497,7 +14548,7 @@ var require_mergeInternals = __commonJS({
|
|
|
14497
14548
|
checkComplete();
|
|
14498
14549
|
}));
|
|
14499
14550
|
return function() {
|
|
14500
|
-
|
|
14551
|
+
additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();
|
|
14501
14552
|
};
|
|
14502
14553
|
}
|
|
14503
14554
|
exports.mergeInternals = mergeInternals;
|
|
@@ -18073,14 +18124,11 @@ var require_shareReplay = __commonJS({
|
|
|
18073
18124
|
var ReplaySubject_1 = require_ReplaySubject();
|
|
18074
18125
|
var share_1 = require_share();
|
|
18075
18126
|
function shareReplay(configOrBufferSize, windowTime, scheduler) {
|
|
18076
|
-
var _a, _b;
|
|
18127
|
+
var _a, _b, _c;
|
|
18077
18128
|
var bufferSize;
|
|
18078
18129
|
var refCount = false;
|
|
18079
18130
|
if (configOrBufferSize && typeof configOrBufferSize === "object") {
|
|
18080
|
-
bufferSize =
|
|
18081
|
-
windowTime = (_b = configOrBufferSize.windowTime) !== null && _b !== void 0 ? _b : Infinity;
|
|
18082
|
-
refCount = !!configOrBufferSize.refCount;
|
|
18083
|
-
scheduler = configOrBufferSize.scheduler;
|
|
18131
|
+
_a = configOrBufferSize.bufferSize, bufferSize = _a === void 0 ? Infinity : _a, _b = configOrBufferSize.windowTime, windowTime = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler;
|
|
18084
18132
|
} else {
|
|
18085
18133
|
bufferSize = configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity;
|
|
18086
18134
|
}
|
|
@@ -20949,6 +20997,7 @@ var src_exports = {};
|
|
|
20949
20997
|
__export(src_exports, {
|
|
20950
20998
|
activate: () => activate
|
|
20951
20999
|
});
|
|
21000
|
+
module.exports = __toCommonJS(src_exports);
|
|
20952
21001
|
var import_coc24 = require("coc.nvim");
|
|
20953
21002
|
var import_fs = require("fs");
|
|
20954
21003
|
var import_path5 = require("path");
|
|
@@ -21223,9 +21272,16 @@ var _PythonSettings = class {
|
|
|
21223
21272
|
}
|
|
21224
21273
|
resolvePythonFromVENV() {
|
|
21225
21274
|
function pythonBinFromPath(p) {
|
|
21226
|
-
|
|
21275
|
+
const fullPath = process.platform === "win32" ? import_path.default.join(p, "Scripts", "python.exe") : import_path.default.join(p, "bin", "python");
|
|
21276
|
+
return import_fs_extra.default.existsSync(fullPath) ? fullPath : void 0;
|
|
21227
21277
|
}
|
|
21228
21278
|
try {
|
|
21279
|
+
if (process.env.VIRTUAL_ENV && import_fs_extra.default.existsSync(import_path.default.join(process.env.VIRTUAL_ENV, "pyvenv.cfg"))) {
|
|
21280
|
+
return pythonBinFromPath(process.env.VIRTUAL_ENV);
|
|
21281
|
+
}
|
|
21282
|
+
if (process.env.CONDA_PREFIX) {
|
|
21283
|
+
return pythonBinFromPath(process.env.CONDA_PREFIX);
|
|
21284
|
+
}
|
|
21229
21285
|
let p = import_path.default.join(this.workspaceRoot, ".python-version");
|
|
21230
21286
|
if (import_fs_extra.default.existsSync(p)) {
|
|
21231
21287
|
if (!process.env.PYENV_VERSION) {
|
|
@@ -21252,12 +21308,6 @@ var _PythonSettings = class {
|
|
|
21252
21308
|
return pythonBinFromPath(info);
|
|
21253
21309
|
}
|
|
21254
21310
|
}
|
|
21255
|
-
if (process.env.VIRTUAL_ENV && import_fs_extra.default.existsSync(import_path.default.join(process.env.VIRTUAL_ENV, "pyvenv.cfg"))) {
|
|
21256
|
-
return pythonBinFromPath(process.env.VIRTUAL_ENV);
|
|
21257
|
-
}
|
|
21258
|
-
if (process.env.CONDA_PREFIX) {
|
|
21259
|
-
return pythonBinFromPath(process.env.CONDA_PREFIX);
|
|
21260
|
-
}
|
|
21261
21311
|
const files = import_fs_extra.default.readdirSync(this.workspaceRoot);
|
|
21262
21312
|
for (const file of files) {
|
|
21263
21313
|
const x = import_path.default.join(this.workspaceRoot, file);
|
|
@@ -21854,7 +21904,7 @@ var BaseFormatter = class {
|
|
|
21854
21904
|
}
|
|
21855
21905
|
const filepath = import_coc4.Uri.parse(document.uri).fsPath;
|
|
21856
21906
|
const tempFile = await this.createTempFile(document);
|
|
21857
|
-
if (this.checkCancellation(filepath, tempFile, token)) {
|
|
21907
|
+
if (this.checkCancellation(filepath, tempFile, "start", token)) {
|
|
21858
21908
|
return [];
|
|
21859
21909
|
}
|
|
21860
21910
|
args.push(tempFile);
|
|
@@ -21872,7 +21922,7 @@ var BaseFormatter = class {
|
|
|
21872
21922
|
this.outputChannel.appendLine("");
|
|
21873
21923
|
this.outputChannel.appendLine(`${"#".repeat(10)} ${this.Id} output:`);
|
|
21874
21924
|
this.outputChannel.appendLine(data);
|
|
21875
|
-
if (this.checkCancellation(filepath, tempFile, token)) {
|
|
21925
|
+
if (this.checkCancellation(filepath, tempFile, "success", token)) {
|
|
21876
21926
|
return [];
|
|
21877
21927
|
}
|
|
21878
21928
|
const edits = getTextEditsFromPatch(document.getText(), data);
|
|
@@ -21880,11 +21930,11 @@ var BaseFormatter = class {
|
|
|
21880
21930
|
import_coc4.window.showMessage(`Formatted with ${this.Id}`);
|
|
21881
21931
|
return edits;
|
|
21882
21932
|
}).catch((error) => {
|
|
21883
|
-
if (this.checkCancellation(filepath, tempFile, token)) {
|
|
21884
|
-
return [];
|
|
21885
|
-
}
|
|
21886
21933
|
this.handleError(this.Id, error).catch(() => {
|
|
21887
21934
|
});
|
|
21935
|
+
if (this.checkCancellation(filepath, tempFile, "error", token)) {
|
|
21936
|
+
return [];
|
|
21937
|
+
}
|
|
21888
21938
|
return [];
|
|
21889
21939
|
}).finally(() => {
|
|
21890
21940
|
this.deleteTempFile(filepath, tempFile).catch(() => {
|
|
@@ -21910,9 +21960,9 @@ var BaseFormatter = class {
|
|
|
21910
21960
|
}
|
|
21911
21961
|
return Promise.resolve();
|
|
21912
21962
|
}
|
|
21913
|
-
checkCancellation(originalFile, tempFile, token) {
|
|
21963
|
+
checkCancellation(originalFile, tempFile, state, token) {
|
|
21914
21964
|
if (token && token.isCancellationRequested) {
|
|
21915
|
-
this.outputChannel.appendLine(`${"#".repeat(10)} ${this.Id} formatting action is canceled
|
|
21965
|
+
this.outputChannel.appendLine(`${"#".repeat(10)} ${this.Id} formatting action is canceled on ${state}`);
|
|
21916
21966
|
this.deleteTempFile(originalFile, tempFile).catch(() => {
|
|
21917
21967
|
});
|
|
21918
21968
|
return true;
|
|
@@ -23653,7 +23703,6 @@ var ImportCompletionProvider = class {
|
|
|
23653
23703
|
return items;
|
|
23654
23704
|
}
|
|
23655
23705
|
};
|
|
23656
|
-
module.exports = __toCommonJS(src_exports);
|
|
23657
23706
|
// Annotate the CommonJS export names for ESM import in node:
|
|
23658
23707
|
0 && (module.exports = {
|
|
23659
23708
|
activate
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coc-pyright",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.243",
|
|
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",
|
|
@@ -1403,6 +1403,6 @@
|
|
|
1403
1403
|
]
|
|
1404
1404
|
},
|
|
1405
1405
|
"dependencies": {
|
|
1406
|
-
"pyright": "^1.1.
|
|
1406
|
+
"pyright": "^1.1.243"
|
|
1407
1407
|
}
|
|
1408
1408
|
}
|