@codingame/monaco-languageclient-wrapper 2.5.0 → 2.5.3
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/dist/index.d.ts +1 -3
- package/dist/index.js +500 -348
- package/package.json +2 -2
- package/stats.html +1 -1
package/dist/index.js
CHANGED
|
@@ -441,11 +441,280 @@ class CodinGameInfrastructure {
|
|
|
441
441
|
|
|
442
442
|
var lib = {};
|
|
443
443
|
|
|
444
|
+
/*! *****************************************************************************
|
|
445
|
+
Copyright (c) Microsoft Corporation.
|
|
446
|
+
|
|
447
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
448
|
+
purpose with or without fee is hereby granted.
|
|
449
|
+
|
|
450
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
451
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
452
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
453
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
454
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
455
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
456
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
457
|
+
***************************************************************************** */
|
|
458
|
+
/* global Reflect, Promise */
|
|
459
|
+
|
|
460
|
+
var extendStatics = function(d, b) {
|
|
461
|
+
extendStatics = Object.setPrototypeOf ||
|
|
462
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
463
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
464
|
+
return extendStatics(d, b);
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
function __extends(d, b) {
|
|
468
|
+
if (typeof b !== "function" && b !== null)
|
|
469
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
470
|
+
extendStatics(d, b);
|
|
471
|
+
function __() { this.constructor = d; }
|
|
472
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
var __assign = function() {
|
|
476
|
+
__assign = Object.assign || function __assign(t) {
|
|
477
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
478
|
+
s = arguments[i];
|
|
479
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
480
|
+
}
|
|
481
|
+
return t;
|
|
482
|
+
};
|
|
483
|
+
return __assign.apply(this, arguments);
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
function __rest(s, e) {
|
|
487
|
+
var t = {};
|
|
488
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
489
|
+
t[p] = s[p];
|
|
490
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
491
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
492
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
493
|
+
t[p[i]] = s[p[i]];
|
|
494
|
+
}
|
|
495
|
+
return t;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
function __decorate(decorators, target, key, desc) {
|
|
499
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
500
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
501
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
502
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
function __param(paramIndex, decorator) {
|
|
506
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
function __metadata(metadataKey, metadataValue) {
|
|
510
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
514
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
515
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
516
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
517
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
518
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
519
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
function __generator(thisArg, body) {
|
|
524
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
525
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
526
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
527
|
+
function step(op) {
|
|
528
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
529
|
+
while (_) try {
|
|
530
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
531
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
532
|
+
switch (op[0]) {
|
|
533
|
+
case 0: case 1: t = op; break;
|
|
534
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
535
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
536
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
537
|
+
default:
|
|
538
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
539
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
540
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
541
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
542
|
+
if (t[2]) _.ops.pop();
|
|
543
|
+
_.trys.pop(); continue;
|
|
544
|
+
}
|
|
545
|
+
op = body.call(thisArg, _);
|
|
546
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
547
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
552
|
+
if (k2 === undefined) k2 = k;
|
|
553
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
554
|
+
}) : (function(o, m, k, k2) {
|
|
555
|
+
if (k2 === undefined) k2 = k;
|
|
556
|
+
o[k2] = m[k];
|
|
557
|
+
});
|
|
558
|
+
|
|
559
|
+
function __exportStar(m, o) {
|
|
560
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
function __values(o) {
|
|
564
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
565
|
+
if (m) return m.call(o);
|
|
566
|
+
if (o && typeof o.length === "number") return {
|
|
567
|
+
next: function () {
|
|
568
|
+
if (o && i >= o.length) o = void 0;
|
|
569
|
+
return { value: o && o[i++], done: !o };
|
|
570
|
+
}
|
|
571
|
+
};
|
|
572
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
function __read(o, n) {
|
|
576
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
577
|
+
if (!m) return o;
|
|
578
|
+
var i = m.call(o), r, ar = [], e;
|
|
579
|
+
try {
|
|
580
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
581
|
+
}
|
|
582
|
+
catch (error) { e = { error: error }; }
|
|
583
|
+
finally {
|
|
584
|
+
try {
|
|
585
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
586
|
+
}
|
|
587
|
+
finally { if (e) throw e.error; }
|
|
588
|
+
}
|
|
589
|
+
return ar;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/** @deprecated */
|
|
593
|
+
function __spread() {
|
|
594
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
595
|
+
ar = ar.concat(__read(arguments[i]));
|
|
596
|
+
return ar;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/** @deprecated */
|
|
600
|
+
function __spreadArrays() {
|
|
601
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
602
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
603
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
604
|
+
r[k] = a[j];
|
|
605
|
+
return r;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
function __spreadArray(to, from, pack) {
|
|
609
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
610
|
+
if (ar || !(i in from)) {
|
|
611
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
612
|
+
ar[i] = from[i];
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
function __await(v) {
|
|
619
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
623
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
624
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
625
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
626
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
627
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
628
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
629
|
+
function fulfill(value) { resume("next", value); }
|
|
630
|
+
function reject(value) { resume("throw", value); }
|
|
631
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
function __asyncDelegator(o) {
|
|
635
|
+
var i, p;
|
|
636
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
637
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
function __asyncValues(o) {
|
|
641
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
642
|
+
var m = o[Symbol.asyncIterator], i;
|
|
643
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
644
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
645
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
function __makeTemplateObject(cooked, raw) {
|
|
649
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
650
|
+
return cooked;
|
|
651
|
+
}
|
|
652
|
+
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
653
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
654
|
+
}) : function(o, v) {
|
|
655
|
+
o["default"] = v;
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
function __importStar(mod) {
|
|
659
|
+
if (mod && mod.__esModule) return mod;
|
|
660
|
+
var result = {};
|
|
661
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
662
|
+
__setModuleDefault(result, mod);
|
|
663
|
+
return result;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
function __importDefault(mod) {
|
|
667
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
671
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
672
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
673
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
677
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
678
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
679
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
680
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
var tslib_es6 = /*#__PURE__*/Object.freeze({
|
|
684
|
+
__proto__: null,
|
|
685
|
+
__extends: __extends,
|
|
686
|
+
get __assign () { return __assign; },
|
|
687
|
+
__rest: __rest,
|
|
688
|
+
__decorate: __decorate,
|
|
689
|
+
__param: __param,
|
|
690
|
+
__metadata: __metadata,
|
|
691
|
+
__awaiter: __awaiter,
|
|
692
|
+
__generator: __generator,
|
|
693
|
+
__createBinding: __createBinding,
|
|
694
|
+
__exportStar: __exportStar,
|
|
695
|
+
__values: __values,
|
|
696
|
+
__read: __read,
|
|
697
|
+
__spread: __spread,
|
|
698
|
+
__spreadArrays: __spreadArrays,
|
|
699
|
+
__spreadArray: __spreadArray,
|
|
700
|
+
__await: __await,
|
|
701
|
+
__asyncGenerator: __asyncGenerator,
|
|
702
|
+
__asyncDelegator: __asyncDelegator,
|
|
703
|
+
__asyncValues: __asyncValues,
|
|
704
|
+
__makeTemplateObject: __makeTemplateObject,
|
|
705
|
+
__importStar: __importStar,
|
|
706
|
+
__importDefault: __importDefault,
|
|
707
|
+
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
708
|
+
__classPrivateFieldSet: __classPrivateFieldSet
|
|
709
|
+
});
|
|
710
|
+
|
|
711
|
+
var require$$0 = /*@__PURE__*/getAugmentedNamespace(tslib_es6);
|
|
712
|
+
|
|
444
713
|
var disposable$1 = {};
|
|
445
714
|
|
|
446
|
-
var services
|
|
715
|
+
var services = {};
|
|
447
716
|
|
|
448
|
-
var require$$
|
|
717
|
+
var require$$1$3 = /*@__PURE__*/getAugmentedNamespace(vscodeLanguageserverProtocol);
|
|
449
718
|
|
|
450
719
|
/* --------------------------------------------------------------------------------------------
|
|
451
720
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1746,7 +2015,7 @@ messageBuffer.AbstractMessageBuffer = AbstractMessageBuffer;
|
|
|
1746
2015
|
Object.defineProperty(ril, "__esModule", { value: true });
|
|
1747
2016
|
const ral_1$1 = ral;
|
|
1748
2017
|
const util_1 = require$$1$1;
|
|
1749
|
-
const disposable_1$
|
|
2018
|
+
const disposable_1$3 = disposable;
|
|
1750
2019
|
const messageBuffer_1 = messageBuffer;
|
|
1751
2020
|
class MessageBuffer extends messageBuffer_1.AbstractMessageBuffer {
|
|
1752
2021
|
constructor(encoding = 'utf-8') {
|
|
@@ -1785,19 +2054,19 @@ class ReadableStreamWrapper {
|
|
|
1785
2054
|
}
|
|
1786
2055
|
onClose(listener) {
|
|
1787
2056
|
this.stream.on('close', listener);
|
|
1788
|
-
return disposable_1$
|
|
2057
|
+
return disposable_1$3.Disposable.create(() => this.stream.off('close', listener));
|
|
1789
2058
|
}
|
|
1790
2059
|
onError(listener) {
|
|
1791
2060
|
this.stream.on('error', listener);
|
|
1792
|
-
return disposable_1$
|
|
2061
|
+
return disposable_1$3.Disposable.create(() => this.stream.off('error', listener));
|
|
1793
2062
|
}
|
|
1794
2063
|
onEnd(listener) {
|
|
1795
2064
|
this.stream.on('end', listener);
|
|
1796
|
-
return disposable_1$
|
|
2065
|
+
return disposable_1$3.Disposable.create(() => this.stream.off('end', listener));
|
|
1797
2066
|
}
|
|
1798
2067
|
onData(listener) {
|
|
1799
2068
|
this.stream.on('data', listener);
|
|
1800
|
-
return disposable_1$
|
|
2069
|
+
return disposable_1$3.Disposable.create(() => this.stream.off('data', listener));
|
|
1801
2070
|
}
|
|
1802
2071
|
}
|
|
1803
2072
|
class WritableStreamWrapper {
|
|
@@ -1806,15 +2075,15 @@ class WritableStreamWrapper {
|
|
|
1806
2075
|
}
|
|
1807
2076
|
onClose(listener) {
|
|
1808
2077
|
this.stream.on('close', listener);
|
|
1809
|
-
return disposable_1$
|
|
2078
|
+
return disposable_1$3.Disposable.create(() => this.stream.off('close', listener));
|
|
1810
2079
|
}
|
|
1811
2080
|
onError(listener) {
|
|
1812
2081
|
this.stream.on('error', listener);
|
|
1813
|
-
return disposable_1$
|
|
2082
|
+
return disposable_1$3.Disposable.create(() => this.stream.off('error', listener));
|
|
1814
2083
|
}
|
|
1815
2084
|
onEnd(listener) {
|
|
1816
2085
|
this.stream.on('end', listener);
|
|
1817
|
-
return disposable_1$
|
|
2086
|
+
return disposable_1$3.Disposable.create(() => this.stream.off('end', listener));
|
|
1818
2087
|
}
|
|
1819
2088
|
write(data, encoding) {
|
|
1820
2089
|
return new Promise((resolve, reject) => {
|
|
@@ -4661,7 +4930,7 @@ var path$1 = /*#__PURE__*/Object.freeze({
|
|
|
4661
4930
|
'default': path
|
|
4662
4931
|
});
|
|
4663
4932
|
|
|
4664
|
-
var require$$2 = /*@__PURE__*/getAugmentedNamespace(path$1);
|
|
4933
|
+
var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(path$1);
|
|
4665
4934
|
|
|
4666
4935
|
/*
|
|
4667
4936
|
The MIT License (MIT)
|
|
@@ -4798,7 +5067,7 @@ var os$1 = /*#__PURE__*/Object.freeze({
|
|
|
4798
5067
|
'default': os
|
|
4799
5068
|
});
|
|
4800
5069
|
|
|
4801
|
-
var require$$3
|
|
5070
|
+
var require$$3 = /*@__PURE__*/getAugmentedNamespace(os$1);
|
|
4802
5071
|
|
|
4803
5072
|
var empty = {};
|
|
4804
5073
|
|
|
@@ -4830,8 +5099,8 @@ const ril_1 = ril;
|
|
|
4830
5099
|
// Install the node runtime abstract.
|
|
4831
5100
|
ril_1.default.install();
|
|
4832
5101
|
const api_1 = api;
|
|
4833
|
-
const path = require$$2;
|
|
4834
|
-
const os = require$$3
|
|
5102
|
+
const path = require$$2$1;
|
|
5103
|
+
const os = require$$3;
|
|
4835
5104
|
const crypto_1 = require$$5;
|
|
4836
5105
|
const net_1 = require$$5;
|
|
4837
5106
|
__exportStar(api, exports);
|
|
@@ -5024,43 +5293,21 @@ exports.createMessageConnection = createMessageConnection;
|
|
|
5024
5293
|
|
|
5025
5294
|
}(main));
|
|
5026
5295
|
|
|
5027
|
-
var require$$
|
|
5296
|
+
var require$$4 = /*@__PURE__*/getAugmentedNamespace(api$1);
|
|
5028
5297
|
|
|
5029
5298
|
/* --------------------------------------------------------------------------------------------
|
|
5030
|
-
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
5299
|
+
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
5031
5300
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5032
5301
|
* ------------------------------------------------------------------------------------------ */
|
|
5033
5302
|
|
|
5034
5303
|
(function (exports) {
|
|
5035
5304
|
|
|
5036
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
5037
|
-
if (k2 === undefined) k2 = k;
|
|
5038
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5039
|
-
|
|
5040
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5041
|
-
desc = {
|
|
5042
|
-
enumerable: true,
|
|
5043
|
-
get: function () {
|
|
5044
|
-
return m[k];
|
|
5045
|
-
}
|
|
5046
|
-
};
|
|
5047
|
-
}
|
|
5048
|
-
|
|
5049
|
-
Object.defineProperty(o, k2, desc);
|
|
5050
|
-
} : function (o, m, k, k2) {
|
|
5051
|
-
if (k2 === undefined) k2 = k;
|
|
5052
|
-
o[k2] = m[k];
|
|
5053
|
-
});
|
|
5054
|
-
|
|
5055
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
|
|
5056
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5057
|
-
};
|
|
5058
|
-
|
|
5059
5305
|
Object.defineProperty(exports, "__esModule", {
|
|
5060
5306
|
value: true
|
|
5061
5307
|
});
|
|
5062
5308
|
exports.ConfigurationTarget = exports.DocumentIdentifier = exports.ProgressLocation = exports.VsCodeDiagnosticSeverity = exports.SignatureHelpTriggerKind = exports.isDocumentSelector = exports.Services = exports.TextDocument = exports.Emitter = exports.Event = exports.CancellationToken = exports.Disposable = void 0;
|
|
5063
|
-
const
|
|
5309
|
+
const tslib_1 = require$$0;
|
|
5310
|
+
const vscode_languageserver_protocol_1 = require$$1$3;
|
|
5064
5311
|
const vscode_languageserver_textdocument_1 = require$$1$2;
|
|
5065
5312
|
Object.defineProperty(exports, "TextDocument", {
|
|
5066
5313
|
enumerable: true,
|
|
@@ -5094,7 +5341,7 @@ var require$$3 = /*@__PURE__*/getAugmentedNamespace(api$1);
|
|
|
5094
5341
|
}
|
|
5095
5342
|
});
|
|
5096
5343
|
|
|
5097
|
-
__exportStar(require$$
|
|
5344
|
+
tslib_1.__exportStar(require$$4, exports);
|
|
5098
5345
|
|
|
5099
5346
|
(function (Services) {
|
|
5100
5347
|
const global = window;
|
|
@@ -5164,7 +5411,7 @@ var require$$3 = /*@__PURE__*/getAugmentedNamespace(api$1);
|
|
|
5164
5411
|
ConfigurationTarget[ConfigurationTarget["Workspace"] = 2] = "Workspace";
|
|
5165
5412
|
ConfigurationTarget[ConfigurationTarget["WorkspaceFolder"] = 3] = "WorkspaceFolder";
|
|
5166
5413
|
})(exports.ConfigurationTarget || (exports.ConfigurationTarget = {}));
|
|
5167
|
-
})(services
|
|
5414
|
+
})(services);
|
|
5168
5415
|
|
|
5169
5416
|
(function (exports) {
|
|
5170
5417
|
|
|
@@ -5173,11 +5420,11 @@ var require$$3 = /*@__PURE__*/getAugmentedNamespace(api$1);
|
|
|
5173
5420
|
});
|
|
5174
5421
|
exports.DisposableCollection = exports.Disposable = void 0;
|
|
5175
5422
|
/* --------------------------------------------------------------------------------------------
|
|
5176
|
-
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
5423
|
+
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
5177
5424
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5178
5425
|
* ------------------------------------------------------------------------------------------ */
|
|
5179
5426
|
|
|
5180
|
-
const services_1 = services
|
|
5427
|
+
const services_1 = services;
|
|
5181
5428
|
Object.defineProperty(exports, "Disposable", {
|
|
5182
5429
|
enumerable: true,
|
|
5183
5430
|
get: function () {
|
|
@@ -5218,51 +5465,21 @@ var require$$3 = /*@__PURE__*/getAugmentedNamespace(api$1);
|
|
|
5218
5465
|
|
|
5219
5466
|
var connection = {};
|
|
5220
5467
|
|
|
5221
|
-
var require$$
|
|
5468
|
+
var require$$2 = /*@__PURE__*/getAugmentedNamespace(is$2);
|
|
5222
5469
|
|
|
5223
5470
|
/* --------------------------------------------------------------------------------------------
|
|
5224
|
-
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
5471
|
+
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
5225
5472
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5226
5473
|
* ------------------------------------------------------------------------------------------ */
|
|
5227
5474
|
|
|
5228
|
-
var __awaiter$1 = commonjsGlobal && commonjsGlobal.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
5229
|
-
function adopt(value) {
|
|
5230
|
-
return value instanceof P ? value : new P(function (resolve) {
|
|
5231
|
-
resolve(value);
|
|
5232
|
-
});
|
|
5233
|
-
}
|
|
5234
|
-
|
|
5235
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5236
|
-
function fulfilled(value) {
|
|
5237
|
-
try {
|
|
5238
|
-
step(generator.next(value));
|
|
5239
|
-
} catch (e) {
|
|
5240
|
-
reject(e);
|
|
5241
|
-
}
|
|
5242
|
-
}
|
|
5243
|
-
|
|
5244
|
-
function rejected(value) {
|
|
5245
|
-
try {
|
|
5246
|
-
step(generator["throw"](value));
|
|
5247
|
-
} catch (e) {
|
|
5248
|
-
reject(e);
|
|
5249
|
-
}
|
|
5250
|
-
}
|
|
5251
|
-
|
|
5252
|
-
function step(result) {
|
|
5253
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
5254
|
-
}
|
|
5255
|
-
|
|
5256
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
5257
|
-
});
|
|
5258
|
-
};
|
|
5259
|
-
|
|
5260
5475
|
Object.defineProperty(connection, "__esModule", {
|
|
5261
5476
|
value: true
|
|
5262
5477
|
});
|
|
5263
5478
|
connection.createConnection = void 0;
|
|
5264
|
-
const
|
|
5265
|
-
const
|
|
5479
|
+
const tslib_1$1 = require$$0;
|
|
5480
|
+
const vscode_languageserver_protocol_1$f = require$$1$3;
|
|
5481
|
+
|
|
5482
|
+
const Is$4 = tslib_1$1.__importStar(require$$2);
|
|
5266
5483
|
|
|
5267
5484
|
function createConnection(connection, errorHandler, closeHandler) {
|
|
5268
5485
|
connection.onError(data => {
|
|
@@ -5279,12 +5496,12 @@ function createConnection(connection, errorHandler, closeHandler) {
|
|
|
5279
5496
|
return connection.sendRequest(Is$4.string(type) ? type : type.method, ...params);
|
|
5280
5497
|
},
|
|
5281
5498
|
onRequest: (type, handler) => connection.onRequest(Is$4.string(type) ? type : type.method, handler),
|
|
5282
|
-
sendNotification: (type, params) =>
|
|
5499
|
+
sendNotification: (type, params) => tslib_1$1.__awaiter(this, void 0, void 0, function* () {
|
|
5283
5500
|
return connection.sendNotification(Is$4.string(type) ? type : type.method, params);
|
|
5284
5501
|
}),
|
|
5285
5502
|
onNotification: (type, handler) => connection.onNotification(Is$4.string(type) ? type : type.method, handler),
|
|
5286
5503
|
onProgress: (type, token, handler) => connection.onProgress(type, token, handler),
|
|
5287
|
-
sendProgress: (type, token, value) =>
|
|
5504
|
+
sendProgress: (type, token, value) => tslib_1$1.__awaiter(this, void 0, void 0, function* () {
|
|
5288
5505
|
return connection.sendProgress(type, token, value);
|
|
5289
5506
|
}),
|
|
5290
5507
|
trace: function (value, tracer) {
|
|
@@ -5293,28 +5510,28 @@ function createConnection(connection, errorHandler, closeHandler) {
|
|
|
5293
5510
|
},
|
|
5294
5511
|
initialize: params => connection.sendRequest(vscode_languageserver_protocol_1$f.InitializeRequest.type, params),
|
|
5295
5512
|
shutdown: () => connection.sendRequest(vscode_languageserver_protocol_1$f.ShutdownRequest.type, undefined),
|
|
5296
|
-
exit: () =>
|
|
5513
|
+
exit: () => tslib_1$1.__awaiter(this, void 0, void 0, function* () {
|
|
5297
5514
|
return connection.sendNotification(vscode_languageserver_protocol_1$f.ExitNotification.type);
|
|
5298
5515
|
}),
|
|
5299
5516
|
onLogMessage: handler => connection.onNotification(vscode_languageserver_protocol_1$f.LogMessageNotification.type, handler),
|
|
5300
5517
|
onShowMessage: handler => connection.onNotification(vscode_languageserver_protocol_1$f.ShowMessageNotification.type, handler),
|
|
5301
5518
|
onTelemetry: handler => connection.onNotification(vscode_languageserver_protocol_1$f.TelemetryEventNotification.type, handler),
|
|
5302
|
-
didChangeConfiguration: params =>
|
|
5519
|
+
didChangeConfiguration: params => tslib_1$1.__awaiter(this, void 0, void 0, function* () {
|
|
5303
5520
|
return connection.sendNotification(vscode_languageserver_protocol_1$f.DidChangeConfigurationNotification.type, params);
|
|
5304
5521
|
}),
|
|
5305
|
-
didChangeWatchedFiles: params =>
|
|
5522
|
+
didChangeWatchedFiles: params => tslib_1$1.__awaiter(this, void 0, void 0, function* () {
|
|
5306
5523
|
return connection.sendNotification(vscode_languageserver_protocol_1$f.DidChangeWatchedFilesNotification.type, params);
|
|
5307
5524
|
}),
|
|
5308
|
-
didOpenTextDocument: params =>
|
|
5525
|
+
didOpenTextDocument: params => tslib_1$1.__awaiter(this, void 0, void 0, function* () {
|
|
5309
5526
|
return connection.sendNotification(vscode_languageserver_protocol_1$f.DidOpenTextDocumentNotification.type, params);
|
|
5310
5527
|
}),
|
|
5311
|
-
didChangeTextDocument: params =>
|
|
5528
|
+
didChangeTextDocument: params => tslib_1$1.__awaiter(this, void 0, void 0, function* () {
|
|
5312
5529
|
return connection.sendNotification(vscode_languageserver_protocol_1$f.DidChangeTextDocumentNotification.type, params);
|
|
5313
5530
|
}),
|
|
5314
|
-
didCloseTextDocument: params =>
|
|
5531
|
+
didCloseTextDocument: params => tslib_1$1.__awaiter(this, void 0, void 0, function* () {
|
|
5315
5532
|
return connection.sendNotification(vscode_languageserver_protocol_1$f.DidCloseTextDocumentNotification.type, params);
|
|
5316
5533
|
}),
|
|
5317
|
-
didSaveTextDocument: params =>
|
|
5534
|
+
didSaveTextDocument: params => tslib_1$1.__awaiter(this, void 0, void 0, function* () {
|
|
5318
5535
|
return connection.sendNotification(vscode_languageserver_protocol_1$f.DidSaveTextDocumentNotification.type, params);
|
|
5319
5536
|
}),
|
|
5320
5537
|
onDiagnostics: handler => connection.onNotification(vscode_languageserver_protocol_1$f.PublishDiagnosticsNotification.type, handler),
|
|
@@ -5339,55 +5556,26 @@ var esm = /*#__PURE__*/Object.freeze({
|
|
|
5339
5556
|
Utils: Utils
|
|
5340
5557
|
});
|
|
5341
5558
|
|
|
5342
|
-
var require$$
|
|
5559
|
+
var require$$1 = /*@__PURE__*/getAugmentedNamespace(esm);
|
|
5343
5560
|
|
|
5344
5561
|
/* --------------------------------------------------------------------------------------------
|
|
5345
|
-
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
5562
|
+
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
5346
5563
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5347
5564
|
* ------------------------------------------------------------------------------------------ */
|
|
5348
5565
|
|
|
5349
5566
|
|
|
5350
|
-
var __awaiter = commonjsGlobal && commonjsGlobal.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
5351
|
-
function adopt(value) {
|
|
5352
|
-
return value instanceof P ? value : new P(function (resolve) {
|
|
5353
|
-
resolve(value);
|
|
5354
|
-
});
|
|
5355
|
-
}
|
|
5356
|
-
|
|
5357
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5358
|
-
function fulfilled(value) {
|
|
5359
|
-
try {
|
|
5360
|
-
step(generator.next(value));
|
|
5361
|
-
} catch (e) {
|
|
5362
|
-
reject(e);
|
|
5363
|
-
}
|
|
5364
|
-
}
|
|
5365
|
-
|
|
5366
|
-
function rejected(value) {
|
|
5367
|
-
try {
|
|
5368
|
-
step(generator["throw"](value));
|
|
5369
|
-
} catch (e) {
|
|
5370
|
-
reject(e);
|
|
5371
|
-
}
|
|
5372
|
-
}
|
|
5373
|
-
|
|
5374
|
-
function step(result) {
|
|
5375
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
5376
|
-
}
|
|
5377
|
-
|
|
5378
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
5379
|
-
});
|
|
5380
|
-
};
|
|
5381
|
-
|
|
5382
5567
|
Object.defineProperty(vscodeApi, "__esModule", {
|
|
5383
5568
|
value: true
|
|
5384
5569
|
});
|
|
5385
5570
|
vscodeApi.createVSCodeApi = void 0;
|
|
5386
|
-
const
|
|
5387
|
-
const
|
|
5388
|
-
const
|
|
5389
|
-
const
|
|
5390
|
-
|
|
5571
|
+
const tslib_1 = require$$0;
|
|
5572
|
+
const vscode_uri_1 = require$$1;
|
|
5573
|
+
const disposable_1$2 = disposable$1;
|
|
5574
|
+
const services_1$3 = services;
|
|
5575
|
+
|
|
5576
|
+
const ServicesModule = tslib_1.__importStar(services);
|
|
5577
|
+
|
|
5578
|
+
const vscode_languageserver_protocol_1$e = require$$1$3;
|
|
5391
5579
|
|
|
5392
5580
|
function createVSCodeApi(servicesProvider) {
|
|
5393
5581
|
const unsupported = () => {
|
|
@@ -5571,7 +5759,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
5571
5759
|
};
|
|
5572
5760
|
},
|
|
5573
5761
|
|
|
5574
|
-
applyEdit: edit => __awaiter(this, void 0, void 0, function* () {
|
|
5762
|
+
applyEdit: edit => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5575
5763
|
const services = servicesProvider();
|
|
5576
5764
|
|
|
5577
5765
|
if (services_1$3.WorkspaceEdit.is(edit)) {
|
|
@@ -5881,7 +6069,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
5881
6069
|
} = servicesProvider();
|
|
5882
6070
|
|
|
5883
6071
|
if (!languages.registerCompletionItemProvider) {
|
|
5884
|
-
return disposable_1$
|
|
6072
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
5885
6073
|
}
|
|
5886
6074
|
|
|
5887
6075
|
const resolveCompletionItem = provider.resolveCompletionItem;
|
|
@@ -5922,7 +6110,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
5922
6110
|
} = servicesProvider();
|
|
5923
6111
|
|
|
5924
6112
|
if (!languages.registerCodeActionsProvider) {
|
|
5925
|
-
return disposable_1$
|
|
6113
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
5926
6114
|
}
|
|
5927
6115
|
|
|
5928
6116
|
return languages.registerCodeActionsProvider(selector, {
|
|
@@ -5951,7 +6139,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
5951
6139
|
} = servicesProvider();
|
|
5952
6140
|
|
|
5953
6141
|
if (!languages.registerCodeLensProvider) {
|
|
5954
|
-
return disposable_1$
|
|
6142
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
5955
6143
|
}
|
|
5956
6144
|
|
|
5957
6145
|
const resolveCodeLens = provider.resolveCodeLens;
|
|
@@ -5979,7 +6167,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
5979
6167
|
} = servicesProvider();
|
|
5980
6168
|
|
|
5981
6169
|
if (!languages.registerDefinitionProvider) {
|
|
5982
|
-
return disposable_1$
|
|
6170
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
5983
6171
|
}
|
|
5984
6172
|
|
|
5985
6173
|
return languages.registerDefinitionProvider(selector, {
|
|
@@ -6004,7 +6192,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6004
6192
|
} = servicesProvider();
|
|
6005
6193
|
|
|
6006
6194
|
if (!languages.registerImplementationProvider) {
|
|
6007
|
-
return disposable_1$
|
|
6195
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6008
6196
|
}
|
|
6009
6197
|
|
|
6010
6198
|
return languages.registerImplementationProvider(selector, {
|
|
@@ -6029,7 +6217,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6029
6217
|
} = servicesProvider();
|
|
6030
6218
|
|
|
6031
6219
|
if (!languages.registerTypeDefinitionProvider) {
|
|
6032
|
-
return disposable_1$
|
|
6220
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6033
6221
|
}
|
|
6034
6222
|
|
|
6035
6223
|
return languages.registerTypeDefinitionProvider(selector, {
|
|
@@ -6054,7 +6242,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6054
6242
|
} = servicesProvider();
|
|
6055
6243
|
|
|
6056
6244
|
if (!languages.registerDeclarationProvider) {
|
|
6057
|
-
return disposable_1$
|
|
6245
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6058
6246
|
}
|
|
6059
6247
|
|
|
6060
6248
|
return languages.registerDeclarationProvider(selector, {
|
|
@@ -6091,7 +6279,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6091
6279
|
});
|
|
6092
6280
|
}
|
|
6093
6281
|
|
|
6094
|
-
return disposable_1$
|
|
6282
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6095
6283
|
},
|
|
6096
6284
|
|
|
6097
6285
|
registerDocumentHighlightProvider(selector, provider) {
|
|
@@ -6104,7 +6292,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6104
6292
|
} = servicesProvider();
|
|
6105
6293
|
|
|
6106
6294
|
if (!languages.registerDocumentHighlightProvider) {
|
|
6107
|
-
return disposable_1$
|
|
6295
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6108
6296
|
}
|
|
6109
6297
|
|
|
6110
6298
|
return languages.registerDocumentHighlightProvider(selector, {
|
|
@@ -6129,7 +6317,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6129
6317
|
} = servicesProvider();
|
|
6130
6318
|
|
|
6131
6319
|
if (!languages.registerDocumentSymbolProvider) {
|
|
6132
|
-
return disposable_1$
|
|
6320
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6133
6321
|
}
|
|
6134
6322
|
|
|
6135
6323
|
return languages.registerDocumentSymbolProvider(selector, {
|
|
@@ -6149,7 +6337,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6149
6337
|
} = servicesProvider();
|
|
6150
6338
|
|
|
6151
6339
|
if (!languages.registerWorkspaceSymbolProvider) {
|
|
6152
|
-
return disposable_1$
|
|
6340
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6153
6341
|
}
|
|
6154
6342
|
|
|
6155
6343
|
return languages.registerWorkspaceSymbolProvider({
|
|
@@ -6173,7 +6361,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6173
6361
|
} = servicesProvider();
|
|
6174
6362
|
|
|
6175
6363
|
if (!languages.registerReferenceProvider) {
|
|
6176
|
-
return disposable_1$
|
|
6364
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6177
6365
|
}
|
|
6178
6366
|
|
|
6179
6367
|
return languages.registerReferenceProvider(selector, {
|
|
@@ -6199,7 +6387,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6199
6387
|
} = servicesProvider();
|
|
6200
6388
|
|
|
6201
6389
|
if (!languages.registerRenameProvider) {
|
|
6202
|
-
return disposable_1$
|
|
6390
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6203
6391
|
}
|
|
6204
6392
|
|
|
6205
6393
|
return languages.registerRenameProvider(selector, {
|
|
@@ -6225,7 +6413,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6225
6413
|
} = servicesProvider();
|
|
6226
6414
|
|
|
6227
6415
|
if (!languages.registerDocumentFormattingEditProvider) {
|
|
6228
|
-
return disposable_1$
|
|
6416
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6229
6417
|
}
|
|
6230
6418
|
|
|
6231
6419
|
return languages.registerDocumentFormattingEditProvider(selector, {
|
|
@@ -6250,7 +6438,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6250
6438
|
} = servicesProvider();
|
|
6251
6439
|
|
|
6252
6440
|
if (!languages.registerDocumentRangeFormattingEditProvider) {
|
|
6253
|
-
return disposable_1$
|
|
6441
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6254
6442
|
}
|
|
6255
6443
|
|
|
6256
6444
|
return languages.registerDocumentRangeFormattingEditProvider(selector, {
|
|
@@ -6276,7 +6464,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6276
6464
|
} = servicesProvider();
|
|
6277
6465
|
|
|
6278
6466
|
if (!languages.registerOnTypeFormattingEditProvider) {
|
|
6279
|
-
return disposable_1$
|
|
6467
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6280
6468
|
}
|
|
6281
6469
|
|
|
6282
6470
|
for (var _len2 = arguments.length, moreTriggerCharacter = new Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {
|
|
@@ -6307,7 +6495,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6307
6495
|
} = servicesProvider();
|
|
6308
6496
|
|
|
6309
6497
|
if (!languages.registerSignatureHelpProvider) {
|
|
6310
|
-
return disposable_1$
|
|
6498
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6311
6499
|
}
|
|
6312
6500
|
|
|
6313
6501
|
let triggerCharacters;
|
|
@@ -6349,7 +6537,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6349
6537
|
} = servicesProvider();
|
|
6350
6538
|
|
|
6351
6539
|
if (!languages.registerDocumentLinkProvider) {
|
|
6352
|
-
return disposable_1$
|
|
6540
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6353
6541
|
}
|
|
6354
6542
|
|
|
6355
6543
|
const resolveDocumentLink = provider.resolveDocumentLink;
|
|
@@ -6377,7 +6565,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6377
6565
|
} = servicesProvider();
|
|
6378
6566
|
|
|
6379
6567
|
if (!languages.registerColorProvider) {
|
|
6380
|
-
return disposable_1$
|
|
6568
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6381
6569
|
}
|
|
6382
6570
|
|
|
6383
6571
|
return languages.registerColorProvider(selector, {
|
|
@@ -6413,7 +6601,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6413
6601
|
} = servicesProvider();
|
|
6414
6602
|
|
|
6415
6603
|
if (!languages.registerFoldingRangeProvider) {
|
|
6416
|
-
return disposable_1$
|
|
6604
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6417
6605
|
}
|
|
6418
6606
|
|
|
6419
6607
|
return languages.registerFoldingRangeProvider(selector, {
|
|
@@ -6437,7 +6625,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6437
6625
|
} = servicesProvider();
|
|
6438
6626
|
|
|
6439
6627
|
if (!languages.registerSelectionRangeProvider) {
|
|
6440
|
-
return disposable_1$
|
|
6628
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6441
6629
|
}
|
|
6442
6630
|
|
|
6443
6631
|
return languages.registerSelectionRangeProvider(selector, {
|
|
@@ -6464,7 +6652,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6464
6652
|
} = servicesProvider();
|
|
6465
6653
|
|
|
6466
6654
|
if (!languages.registerDocumentSemanticTokensProvider) {
|
|
6467
|
-
return disposable_1$
|
|
6655
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6468
6656
|
}
|
|
6469
6657
|
|
|
6470
6658
|
return languages.registerDocumentSemanticTokensProvider(selector, {
|
|
@@ -6497,7 +6685,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6497
6685
|
} = servicesProvider();
|
|
6498
6686
|
|
|
6499
6687
|
if (!languages.registerDocumentRangeSemanticTokensProvider) {
|
|
6500
|
-
return disposable_1$
|
|
6688
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6501
6689
|
}
|
|
6502
6690
|
|
|
6503
6691
|
return languages.registerDocumentRangeSemanticTokensProvider(selector, {
|
|
@@ -6664,7 +6852,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6664
6852
|
} = servicesProvider();
|
|
6665
6853
|
|
|
6666
6854
|
if (!commands) {
|
|
6667
|
-
return disposable_1$
|
|
6855
|
+
return disposable_1$2.Disposable.create(() => {});
|
|
6668
6856
|
}
|
|
6669
6857
|
|
|
6670
6858
|
return commands.registerCommand(command, callback, thisArg);
|
|
@@ -6769,13 +6957,13 @@ function createVSCodeApi(servicesProvider) {
|
|
|
6769
6957
|
vscodeApi.createVSCodeApi = createVSCodeApi;
|
|
6770
6958
|
|
|
6771
6959
|
/* --------------------------------------------------------------------------------------------
|
|
6772
|
-
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
6960
|
+
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
6773
6961
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
6774
6962
|
* ------------------------------------------------------------------------------------------ */
|
|
6775
6963
|
|
|
6776
6964
|
|
|
6777
6965
|
const vscode_api_1 = vscodeApi;
|
|
6778
|
-
const services_1$2 = services
|
|
6966
|
+
const services_1$2 = services;
|
|
6779
6967
|
var vscodeCompatibility = (0, vscode_api_1.createVSCodeApi)(services_1$2.Services.get);
|
|
6780
6968
|
|
|
6781
6969
|
var configuration = {};
|
|
@@ -6791,7 +6979,7 @@ Object.defineProperty(configuration, "__esModule", {
|
|
|
6791
6979
|
});
|
|
6792
6980
|
configuration.toJSONObject = configuration.ConfigurationFeature = void 0;
|
|
6793
6981
|
const vscode_1$8 = vscodeCompatibility;
|
|
6794
|
-
const vscode_languageserver_protocol_1$d = require$$
|
|
6982
|
+
const vscode_languageserver_protocol_1$d = require$$1$3;
|
|
6795
6983
|
|
|
6796
6984
|
class ConfigurationFeature {
|
|
6797
6985
|
constructor(_client) {
|
|
@@ -7128,7 +7316,7 @@ Object.defineProperty(codeConverter, "__esModule", {
|
|
|
7128
7316
|
});
|
|
7129
7317
|
codeConverter.createConverter = void 0;
|
|
7130
7318
|
const code$1 = vscodeCompatibility;
|
|
7131
|
-
const proto = require$$
|
|
7319
|
+
const proto = require$$1$3;
|
|
7132
7320
|
const Is$3 = is;
|
|
7133
7321
|
const protocolCompletionItem_1$1 = protocolCompletionItem;
|
|
7134
7322
|
const protocolCodeLens_1$1 = protocolCodeLens;
|
|
@@ -7136,7 +7324,7 @@ const protocolDocumentLink_1$1 = protocolDocumentLink;
|
|
|
7136
7324
|
const protocolCodeAction_1$1 = protocolCodeAction;
|
|
7137
7325
|
const protocolDiagnostic_1$1 = protocolDiagnostic;
|
|
7138
7326
|
const protocolCallHierarchyItem_1$1 = protocolCallHierarchyItem;
|
|
7139
|
-
const vscode_languageserver_protocol_1$c = require$$
|
|
7327
|
+
const vscode_languageserver_protocol_1$c = require$$1$3;
|
|
7140
7328
|
var InsertReplaceRange;
|
|
7141
7329
|
|
|
7142
7330
|
(function (InsertReplaceRange) {
|
|
@@ -8041,7 +8229,7 @@ Object.defineProperty(protocolConverter, "__esModule", {
|
|
|
8041
8229
|
});
|
|
8042
8230
|
protocolConverter.createConverter = void 0;
|
|
8043
8231
|
const code = vscodeCompatibility;
|
|
8044
|
-
const ls = require$$
|
|
8232
|
+
const ls = require$$1$3;
|
|
8045
8233
|
const Is$2 = is;
|
|
8046
8234
|
const protocolCompletionItem_1 = protocolCompletionItem;
|
|
8047
8235
|
const protocolCodeLens_1 = protocolCodeLens;
|
|
@@ -8049,7 +8237,7 @@ const protocolDocumentLink_1 = protocolDocumentLink;
|
|
|
8049
8237
|
const protocolCodeAction_1 = protocolCodeAction;
|
|
8050
8238
|
const protocolDiagnostic_1 = protocolDiagnostic;
|
|
8051
8239
|
const protocolCallHierarchyItem_1 = protocolCallHierarchyItem;
|
|
8052
|
-
const vscode_languageserver_protocol_1$b = require$$
|
|
8240
|
+
const vscode_languageserver_protocol_1$b = require$$1$3;
|
|
8053
8241
|
var CodeBlock;
|
|
8054
8242
|
|
|
8055
8243
|
(function (CodeBlock) {
|
|
@@ -9188,7 +9376,7 @@ Object.defineProperty(async, "__esModule", {
|
|
|
9188
9376
|
value: true
|
|
9189
9377
|
});
|
|
9190
9378
|
async.Delayer = void 0;
|
|
9191
|
-
const vscode_languageserver_protocol_1$a = require$$
|
|
9379
|
+
const vscode_languageserver_protocol_1$a = require$$1$3;
|
|
9192
9380
|
|
|
9193
9381
|
class Delayer {
|
|
9194
9382
|
constructor(defaultDelay) {
|
|
@@ -9359,7 +9547,7 @@ Object.defineProperty(progressPart, "__esModule", {
|
|
|
9359
9547
|
});
|
|
9360
9548
|
progressPart.ProgressPart = void 0;
|
|
9361
9549
|
const vscode_1$7 = vscodeCompatibility;
|
|
9362
|
-
const vscode_languageserver_protocol_1$9 = require$$
|
|
9550
|
+
const vscode_languageserver_protocol_1$9 = require$$1$3;
|
|
9363
9551
|
const Is$1 = is;
|
|
9364
9552
|
|
|
9365
9553
|
class ProgressPart {
|
|
@@ -9473,7 +9661,7 @@ progressPart.ProgressPart = ProgressPart;
|
|
|
9473
9661
|
});
|
|
9474
9662
|
exports.BaseLanguageClient = exports.MessageTransports = exports.TextDocumentFeature = exports.State = exports.RevealOutputChannelOn = exports.CloseAction = exports.ErrorAction = void 0;
|
|
9475
9663
|
const vscode_1 = vscodeCompatibility;
|
|
9476
|
-
const vscode_languageserver_protocol_1 = require$$
|
|
9664
|
+
const vscode_languageserver_protocol_1 = require$$1$3;
|
|
9477
9665
|
const configuration_1 = configuration;
|
|
9478
9666
|
const c2p = codeConverter;
|
|
9479
9667
|
const p2c = protocolConverter;
|
|
@@ -12725,7 +12913,7 @@ Object.defineProperty(typeDefinition, "__esModule", {
|
|
|
12725
12913
|
});
|
|
12726
12914
|
typeDefinition.TypeDefinitionFeature = void 0;
|
|
12727
12915
|
const vscode_1$6 = vscodeCompatibility;
|
|
12728
|
-
const vscode_languageserver_protocol_1$8 = require$$
|
|
12916
|
+
const vscode_languageserver_protocol_1$8 = require$$1$3;
|
|
12729
12917
|
const client_1$6 = client;
|
|
12730
12918
|
|
|
12731
12919
|
function ensure$7(target, key) {
|
|
@@ -12796,7 +12984,7 @@ Object.defineProperty(implementation, "__esModule", {
|
|
|
12796
12984
|
});
|
|
12797
12985
|
implementation.ImplementationFeature = void 0;
|
|
12798
12986
|
const vscode_1$5 = vscodeCompatibility;
|
|
12799
|
-
const vscode_languageserver_protocol_1$7 = require$$
|
|
12987
|
+
const vscode_languageserver_protocol_1$7 = require$$1$3;
|
|
12800
12988
|
const client_1$5 = client;
|
|
12801
12989
|
|
|
12802
12990
|
function ensure$6(target, key) {
|
|
@@ -12866,7 +13054,7 @@ Object.defineProperty(colorProvider, "__esModule", {
|
|
|
12866
13054
|
});
|
|
12867
13055
|
colorProvider.ColorProviderFeature = void 0;
|
|
12868
13056
|
const vscode_1$4 = vscodeCompatibility;
|
|
12869
|
-
const vscode_languageserver_protocol_1$6 = require$$
|
|
13057
|
+
const vscode_languageserver_protocol_1$6 = require$$1$3;
|
|
12870
13058
|
const client_1$4 = client;
|
|
12871
13059
|
|
|
12872
13060
|
function ensure$5(target, key) {
|
|
@@ -12982,7 +13170,7 @@ Object.defineProperty(workspaceFolders, "__esModule", {
|
|
|
12982
13170
|
workspaceFolders.WorkspaceFoldersFeature = workspaceFolders.arrayDiff = void 0;
|
|
12983
13171
|
const UUID = uuid;
|
|
12984
13172
|
const vscode_1$3 = vscodeCompatibility;
|
|
12985
|
-
const vscode_languageserver_protocol_1$5 = require$$
|
|
13173
|
+
const vscode_languageserver_protocol_1$5 = require$$1$3;
|
|
12986
13174
|
|
|
12987
13175
|
function access(target, key) {
|
|
12988
13176
|
if (target === void 0) {
|
|
@@ -13155,7 +13343,7 @@ Object.defineProperty(foldingRange, "__esModule", {
|
|
|
13155
13343
|
});
|
|
13156
13344
|
foldingRange.FoldingRangeFeature = void 0;
|
|
13157
13345
|
const vscode_1$2 = vscodeCompatibility;
|
|
13158
|
-
const vscode_languageserver_protocol_1$4 = require$$
|
|
13346
|
+
const vscode_languageserver_protocol_1$4 = require$$1$3;
|
|
13159
13347
|
const client_1$3 = client;
|
|
13160
13348
|
|
|
13161
13349
|
function ensure$4(target, key) {
|
|
@@ -13256,7 +13444,7 @@ Object.defineProperty(callHierarchy, "__esModule", {
|
|
|
13256
13444
|
});
|
|
13257
13445
|
callHierarchy.CallHierarchyFeature = void 0;
|
|
13258
13446
|
const vscode_1$1 = vscodeCompatibility;
|
|
13259
|
-
const vscode_languageserver_protocol_1$3 = require$$
|
|
13447
|
+
const vscode_languageserver_protocol_1$3 = require$$1$3;
|
|
13260
13448
|
const client_1$2 = client;
|
|
13261
13449
|
|
|
13262
13450
|
function ensure$3(target, key) {
|
|
@@ -13373,7 +13561,7 @@ Object.defineProperty(progress, "__esModule", {
|
|
|
13373
13561
|
value: true
|
|
13374
13562
|
});
|
|
13375
13563
|
progress.ProgressFeature = void 0;
|
|
13376
|
-
const vscode_languageserver_protocol_1$2 = require$$
|
|
13564
|
+
const vscode_languageserver_protocol_1$2 = require$$1$3;
|
|
13377
13565
|
const progressPart_1 = progressPart;
|
|
13378
13566
|
|
|
13379
13567
|
function ensure$2(target, key) {
|
|
@@ -13434,7 +13622,7 @@ Object.defineProperty(semanticTokens, "__esModule", {
|
|
|
13434
13622
|
semanticTokens.SemanticTokensFeature = void 0;
|
|
13435
13623
|
const vscode = vscodeCompatibility;
|
|
13436
13624
|
const client_1$1 = client;
|
|
13437
|
-
const vscode_languageserver_protocol_1$1 = require$$
|
|
13625
|
+
const vscode_languageserver_protocol_1$1 = require$$1$3;
|
|
13438
13626
|
const Is = is;
|
|
13439
13627
|
|
|
13440
13628
|
function ensure$1(target, key) {
|
|
@@ -13589,7 +13777,7 @@ Object.defineProperty(declaration, "__esModule", {
|
|
|
13589
13777
|
});
|
|
13590
13778
|
declaration.DeclarationFeature = void 0;
|
|
13591
13779
|
const vscode_1 = vscodeCompatibility;
|
|
13592
|
-
const vscode_languageserver_protocol_1 = require$$
|
|
13780
|
+
const vscode_languageserver_protocol_1 = require$$1$3;
|
|
13593
13781
|
const client_1 = client;
|
|
13594
13782
|
|
|
13595
13783
|
function ensure(target, key) {
|
|
@@ -13648,35 +13836,13 @@ declaration.DeclarationFeature = DeclarationFeature;
|
|
|
13648
13836
|
|
|
13649
13837
|
(function (exports) {
|
|
13650
13838
|
|
|
13651
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
13652
|
-
if (k2 === undefined) k2 = k;
|
|
13653
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
13654
|
-
|
|
13655
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13656
|
-
desc = {
|
|
13657
|
-
enumerable: true,
|
|
13658
|
-
get: function () {
|
|
13659
|
-
return m[k];
|
|
13660
|
-
}
|
|
13661
|
-
};
|
|
13662
|
-
}
|
|
13663
|
-
|
|
13664
|
-
Object.defineProperty(o, k2, desc);
|
|
13665
|
-
} : function (o, m, k, k2) {
|
|
13666
|
-
if (k2 === undefined) k2 = k;
|
|
13667
|
-
o[k2] = m[k];
|
|
13668
|
-
});
|
|
13669
|
-
|
|
13670
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
|
|
13671
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
13672
|
-
};
|
|
13673
|
-
|
|
13674
13839
|
Object.defineProperty(exports, "__esModule", {
|
|
13675
13840
|
value: true
|
|
13676
13841
|
});
|
|
13677
13842
|
exports.MonacoLanguageClient = void 0;
|
|
13843
|
+
const tslib_1 = require$$0;
|
|
13678
13844
|
/* --------------------------------------------------------------------------------------------
|
|
13679
|
-
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
13845
|
+
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
13680
13846
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
13681
13847
|
* ------------------------------------------------------------------------------------------ */
|
|
13682
13848
|
|
|
@@ -13692,7 +13858,7 @@ declaration.DeclarationFeature = DeclarationFeature;
|
|
|
13692
13858
|
const semanticTokens_1 = semanticTokens;
|
|
13693
13859
|
const declaration_1 = declaration;
|
|
13694
13860
|
|
|
13695
|
-
__exportStar(client, exports);
|
|
13861
|
+
tslib_1.__exportStar(client, exports);
|
|
13696
13862
|
|
|
13697
13863
|
class MonacoLanguageClient extends client_1.BaseLanguageClient {
|
|
13698
13864
|
constructor(_ref) {
|
|
@@ -13830,11 +13996,11 @@ Object.defineProperty(consoleWindow, "__esModule", {
|
|
|
13830
13996
|
});
|
|
13831
13997
|
consoleWindow.ConsoleWindow = void 0;
|
|
13832
13998
|
/* --------------------------------------------------------------------------------------------
|
|
13833
|
-
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
13999
|
+
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
13834
14000
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
13835
14001
|
* ------------------------------------------------------------------------------------------ */
|
|
13836
14002
|
|
|
13837
|
-
const services_1$1 = services
|
|
14003
|
+
const services_1$1 = services;
|
|
13838
14004
|
|
|
13839
14005
|
class ConsoleWindow {
|
|
13840
14006
|
constructor() {
|
|
@@ -14031,7 +14197,7 @@ Object.defineProperty(monacoDiagnosticCollection, "__esModule", {
|
|
|
14031
14197
|
value: true
|
|
14032
14198
|
});
|
|
14033
14199
|
monacoDiagnosticCollection.MonacoModelDiagnostics = monacoDiagnosticCollection.MonacoDiagnosticCollection = void 0;
|
|
14034
|
-
const disposable_1 = disposable$1;
|
|
14200
|
+
const disposable_1$1 = disposable$1;
|
|
14035
14201
|
|
|
14036
14202
|
class MonacoDiagnosticCollection {
|
|
14037
14203
|
constructor(_monaco, name, p2m) {
|
|
@@ -14039,7 +14205,7 @@ class MonacoDiagnosticCollection {
|
|
|
14039
14205
|
this.name = name;
|
|
14040
14206
|
this.p2m = p2m;
|
|
14041
14207
|
this.diagnostics = new Map();
|
|
14042
|
-
this.toDispose = new disposable_1.DisposableCollection();
|
|
14208
|
+
this.toDispose = new disposable_1$1.DisposableCollection();
|
|
14043
14209
|
}
|
|
14044
14210
|
|
|
14045
14211
|
dispose() {
|
|
@@ -14059,7 +14225,7 @@ class MonacoDiagnosticCollection {
|
|
|
14059
14225
|
} else {
|
|
14060
14226
|
const modelDiagnostics = new MonacoModelDiagnostics(this._monaco, uri, diagnostics, this.name, this.p2m);
|
|
14061
14227
|
this.diagnostics.set(uri, modelDiagnostics);
|
|
14062
|
-
this.toDispose.push(disposable_1.Disposable.create(() => {
|
|
14228
|
+
this.toDispose.push(disposable_1$1.Disposable.create(() => {
|
|
14063
14229
|
this.diagnostics.delete(uri);
|
|
14064
14230
|
modelDiagnostics.dispose();
|
|
14065
14231
|
}));
|
|
@@ -14077,7 +14243,7 @@ class MonacoModelDiagnostics {
|
|
|
14077
14243
|
this.p2m = p2m;
|
|
14078
14244
|
this._markers = [];
|
|
14079
14245
|
this._diagnostics = [];
|
|
14080
|
-
this.toDispose = new disposable_1.DisposableCollection();
|
|
14246
|
+
this.toDispose = new disposable_1$1.DisposableCollection();
|
|
14081
14247
|
this.uri = this._monaco.Uri.parse(uri);
|
|
14082
14248
|
this.diagnostics = diagnostics;
|
|
14083
14249
|
this.toDispose.push(this._monaco.editor.onDidCreateModel(model => this.doUpdateModelMarkers(model)));
|
|
@@ -14121,44 +14287,15 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14121
14287
|
|
|
14122
14288
|
(function (exports) {
|
|
14123
14289
|
|
|
14124
|
-
var __awaiter = commonjsGlobal && commonjsGlobal.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
14125
|
-
function adopt(value) {
|
|
14126
|
-
return value instanceof P ? value : new P(function (resolve) {
|
|
14127
|
-
resolve(value);
|
|
14128
|
-
});
|
|
14129
|
-
}
|
|
14130
|
-
|
|
14131
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14132
|
-
function fulfilled(value) {
|
|
14133
|
-
try {
|
|
14134
|
-
step(generator.next(value));
|
|
14135
|
-
} catch (e) {
|
|
14136
|
-
reject(e);
|
|
14137
|
-
}
|
|
14138
|
-
}
|
|
14139
|
-
|
|
14140
|
-
function rejected(value) {
|
|
14141
|
-
try {
|
|
14142
|
-
step(generator["throw"](value));
|
|
14143
|
-
} catch (e) {
|
|
14144
|
-
reject(e);
|
|
14145
|
-
}
|
|
14146
|
-
}
|
|
14147
|
-
|
|
14148
|
-
function step(result) {
|
|
14149
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
14150
|
-
}
|
|
14151
|
-
|
|
14152
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14153
|
-
});
|
|
14154
|
-
};
|
|
14155
|
-
|
|
14156
14290
|
Object.defineProperty(exports, "__esModule", {
|
|
14157
14291
|
value: true
|
|
14158
14292
|
});
|
|
14159
14293
|
exports.MonacoLanguages = exports.testGlob = exports.MonacoModelIdentifier = void 0;
|
|
14160
|
-
const
|
|
14161
|
-
|
|
14294
|
+
const tslib_1 = require$$0;
|
|
14295
|
+
|
|
14296
|
+
const glob_to_regexp_1 = tslib_1.__importDefault(globToRegexp);
|
|
14297
|
+
|
|
14298
|
+
const services_1 = services;
|
|
14162
14299
|
const monaco_diagnostic_collection_1 = monacoDiagnosticCollection;
|
|
14163
14300
|
var MonacoModelIdentifier;
|
|
14164
14301
|
|
|
@@ -14183,7 +14320,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14183
14320
|
})(MonacoModelIdentifier = exports.MonacoModelIdentifier || (exports.MonacoModelIdentifier = {}));
|
|
14184
14321
|
|
|
14185
14322
|
function testGlob(pattern, value) {
|
|
14186
|
-
const regExp =
|
|
14323
|
+
const regExp = (0, glob_to_regexp_1.default)(pattern, {
|
|
14187
14324
|
extended: true,
|
|
14188
14325
|
globstar: true
|
|
14189
14326
|
});
|
|
@@ -14223,14 +14360,14 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14223
14360
|
|
|
14224
14361
|
return {
|
|
14225
14362
|
triggerCharacters,
|
|
14226
|
-
provideCompletionItems: (model, position, context, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14363
|
+
provideCompletionItems: (model, position, context, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14227
14364
|
const wordUntil = model.getWordUntilPosition(position);
|
|
14228
14365
|
const defaultRange = new this._monaco.Range(position.lineNumber, wordUntil.startColumn, position.lineNumber, wordUntil.endColumn);
|
|
14229
14366
|
const params = this.m2p.asCompletionParams(model, position, context);
|
|
14230
14367
|
const result = yield provider.provideCompletionItems(params, token);
|
|
14231
14368
|
return result && this.p2m.asCompletionResult(result, defaultRange);
|
|
14232
14369
|
}),
|
|
14233
|
-
resolveCompletionItem: provider.resolveCompletionItem ? (item, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14370
|
+
resolveCompletionItem: provider.resolveCompletionItem ? (item, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14234
14371
|
const protocolItem = this.m2p.asCompletionItem(item);
|
|
14235
14372
|
const resolvedItem = yield provider.resolveCompletionItem(protocolItem, token);
|
|
14236
14373
|
|
|
@@ -14251,7 +14388,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14251
14388
|
|
|
14252
14389
|
createHoverProvider(provider) {
|
|
14253
14390
|
return {
|
|
14254
|
-
provideHover: (model, position, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14391
|
+
provideHover: (model, position, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14255
14392
|
const params = this.m2p.asTextDocumentPositionParams(model, position);
|
|
14256
14393
|
const hover = yield provider.provideHover(params, token);
|
|
14257
14394
|
return hover && this.p2m.asHover(hover);
|
|
@@ -14277,7 +14414,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14277
14414
|
return {
|
|
14278
14415
|
signatureHelpTriggerCharacters,
|
|
14279
14416
|
signatureHelpRetriggerCharacters: provider.retriggerCharacters,
|
|
14280
|
-
provideSignatureHelp: (model, position, token, context) => __awaiter(this, void 0, void 0, function* () {
|
|
14417
|
+
provideSignatureHelp: (model, position, token, context) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14281
14418
|
const params = this.m2p.asTextDocumentPositionParams(model, position);
|
|
14282
14419
|
const signatureHelp = yield provider.provideSignatureHelp(params, token, this.m2p.asSignatureHelpContext(context));
|
|
14283
14420
|
return signatureHelp && this.p2m.asSignatureHelpResult(signatureHelp);
|
|
@@ -14292,7 +14429,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14292
14429
|
|
|
14293
14430
|
createDefinitionProvider(provider) {
|
|
14294
14431
|
return {
|
|
14295
|
-
provideDefinition: (model, position, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14432
|
+
provideDefinition: (model, position, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14296
14433
|
const params = this.m2p.asTextDocumentPositionParams(model, position);
|
|
14297
14434
|
const result = yield provider.provideDefinition(params, token);
|
|
14298
14435
|
return result && this.p2m.asDefinitionResult(result);
|
|
@@ -14307,7 +14444,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14307
14444
|
|
|
14308
14445
|
createReferenceProvider(provider) {
|
|
14309
14446
|
return {
|
|
14310
|
-
provideReferences: (model, position, context, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14447
|
+
provideReferences: (model, position, context, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14311
14448
|
const params = this.m2p.asReferenceParams(model, position, context);
|
|
14312
14449
|
const result = yield provider.provideReferences(params, token);
|
|
14313
14450
|
return result && this.p2m.asReferences(result);
|
|
@@ -14322,7 +14459,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14322
14459
|
|
|
14323
14460
|
createDocumentHighlightProvider(provider) {
|
|
14324
14461
|
return {
|
|
14325
|
-
provideDocumentHighlights: (model, position, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14462
|
+
provideDocumentHighlights: (model, position, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14326
14463
|
const params = this.m2p.asTextDocumentPositionParams(model, position);
|
|
14327
14464
|
const result = yield provider.provideDocumentHighlights(params, token);
|
|
14328
14465
|
return result && this.p2m.asDocumentHighlights(result);
|
|
@@ -14337,7 +14474,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14337
14474
|
|
|
14338
14475
|
createDocumentSymbolProvider(provider) {
|
|
14339
14476
|
return {
|
|
14340
|
-
provideDocumentSymbols: (model, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14477
|
+
provideDocumentSymbols: (model, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14341
14478
|
const params = this.m2p.asDocumentSymbolParams(model);
|
|
14342
14479
|
const result = yield provider.provideDocumentSymbols(params, token);
|
|
14343
14480
|
return result && this.p2m.asDocumentSymbols(result);
|
|
@@ -14352,12 +14489,12 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14352
14489
|
|
|
14353
14490
|
createCodeActionProvider(provider) {
|
|
14354
14491
|
return {
|
|
14355
|
-
provideCodeActions: (model, range, context, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14492
|
+
provideCodeActions: (model, range, context, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14356
14493
|
const params = this.m2p.asCodeActionParams(model, range, context);
|
|
14357
14494
|
let result = yield provider.provideCodeActions(params, token);
|
|
14358
14495
|
return result && this.p2m.asCodeActionList(result);
|
|
14359
14496
|
}),
|
|
14360
|
-
resolveCodeAction: provider.resolveCodeAction ? (codeAction, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14497
|
+
resolveCodeAction: provider.resolveCodeAction ? (codeAction, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14361
14498
|
const params = this.m2p.asCodeAction(codeAction);
|
|
14362
14499
|
const result = yield provider.resolveCodeAction(params, token);
|
|
14363
14500
|
|
|
@@ -14378,12 +14515,12 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14378
14515
|
|
|
14379
14516
|
createCodeLensProvider(provider) {
|
|
14380
14517
|
return {
|
|
14381
|
-
provideCodeLenses: (model, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14518
|
+
provideCodeLenses: (model, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14382
14519
|
const params = this.m2p.asCodeLensParams(model);
|
|
14383
14520
|
const result = yield provider.provideCodeLenses(params, token);
|
|
14384
14521
|
return result && this.p2m.asCodeLensList(result);
|
|
14385
14522
|
}),
|
|
14386
|
-
resolveCodeLens: provider.resolveCodeLens ? (model, codeLens, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14523
|
+
resolveCodeLens: provider.resolveCodeLens ? (model, codeLens, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14387
14524
|
const protocolCodeLens = this.m2p.asCodeLens(codeLens);
|
|
14388
14525
|
const result = yield provider.resolveCodeLens(protocolCodeLens, token);
|
|
14389
14526
|
|
|
@@ -14404,7 +14541,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14404
14541
|
|
|
14405
14542
|
createDocumentFormattingEditProvider(provider) {
|
|
14406
14543
|
return {
|
|
14407
|
-
provideDocumentFormattingEdits: (model, options, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14544
|
+
provideDocumentFormattingEdits: (model, options, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14408
14545
|
const params = this.m2p.asDocumentFormattingParams(model, options);
|
|
14409
14546
|
const result = yield provider.provideDocumentFormattingEdits(params, token);
|
|
14410
14547
|
return result && this.p2m.asTextEdits(result);
|
|
@@ -14419,7 +14556,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14419
14556
|
|
|
14420
14557
|
createDocumentRangeFormattingEditProvider(provider) {
|
|
14421
14558
|
return {
|
|
14422
|
-
provideDocumentRangeFormattingEdits: (model, range, options, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14559
|
+
provideDocumentRangeFormattingEdits: (model, range, options, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14423
14560
|
const params = this.m2p.asDocumentRangeFormattingParams(model, range, options);
|
|
14424
14561
|
const result = yield provider.provideDocumentRangeFormattingEdits(params, token);
|
|
14425
14562
|
return result && this.p2m.asTextEdits(result);
|
|
@@ -14444,7 +14581,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14444
14581
|
const autoFormatTriggerCharacters = [firstTriggerCharacter].concat(moreTriggerCharacter);
|
|
14445
14582
|
return {
|
|
14446
14583
|
autoFormatTriggerCharacters,
|
|
14447
|
-
provideOnTypeFormattingEdits: (model, position, ch, options, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14584
|
+
provideOnTypeFormattingEdits: (model, position, ch, options, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14448
14585
|
const params = this.m2p.asDocumentOnTypeFormattingParams(model, position, ch, options);
|
|
14449
14586
|
const result = yield provider.provideOnTypeFormattingEdits(params, token);
|
|
14450
14587
|
return result && this.p2m.asTextEdits(result);
|
|
@@ -14459,7 +14596,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14459
14596
|
|
|
14460
14597
|
createRenameProvider(provider) {
|
|
14461
14598
|
return {
|
|
14462
|
-
provideRenameEdits: (model, position, newName, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14599
|
+
provideRenameEdits: (model, position, newName, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14463
14600
|
const params = this.m2p.asRenameParams(model, position, newName);
|
|
14464
14601
|
const result = yield provider.provideRenameEdits(params, token);
|
|
14465
14602
|
return result && this.p2m.asWorkspaceEdit(result);
|
|
@@ -14474,12 +14611,12 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14474
14611
|
|
|
14475
14612
|
createDocumentLinkProvider(provider) {
|
|
14476
14613
|
return {
|
|
14477
|
-
provideLinks: (model, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14614
|
+
provideLinks: (model, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14478
14615
|
const params = this.m2p.asDocumentLinkParams(model);
|
|
14479
14616
|
const result = yield provider.provideDocumentLinks(params, token);
|
|
14480
14617
|
return result && this.p2m.asDocumentLinks(result);
|
|
14481
14618
|
}),
|
|
14482
|
-
resolveLink: (link, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14619
|
+
resolveLink: (link, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14483
14620
|
// resolve the link if the provider supports it
|
|
14484
14621
|
// and the link doesn't have a url set
|
|
14485
14622
|
if (provider.resolveDocumentLink && (link.url === null || link.url === undefined)) {
|
|
@@ -14504,7 +14641,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14504
14641
|
|
|
14505
14642
|
createImplementationProvider(provider) {
|
|
14506
14643
|
return {
|
|
14507
|
-
provideImplementation: (model, position, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14644
|
+
provideImplementation: (model, position, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14508
14645
|
const params = this.m2p.asTextDocumentPositionParams(model, position);
|
|
14509
14646
|
const result = yield provider.provideImplementation(params, token);
|
|
14510
14647
|
return result && this.p2m.asDefinitionResult(result);
|
|
@@ -14519,7 +14656,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14519
14656
|
|
|
14520
14657
|
createTypeDefinitionProvider(provider) {
|
|
14521
14658
|
return {
|
|
14522
|
-
provideTypeDefinition: (model, position, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14659
|
+
provideTypeDefinition: (model, position, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14523
14660
|
const params = this.m2p.asTextDocumentPositionParams(model, position);
|
|
14524
14661
|
const result = yield provider.provideTypeDefinition(params, token);
|
|
14525
14662
|
return result && this.p2m.asDefinitionResult(result);
|
|
@@ -14534,14 +14671,14 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14534
14671
|
|
|
14535
14672
|
createDocumentColorProvider(provider) {
|
|
14536
14673
|
return {
|
|
14537
|
-
provideDocumentColors: (model, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14674
|
+
provideDocumentColors: (model, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14538
14675
|
const textDocument = this.m2p.asTextDocumentIdentifier(model);
|
|
14539
14676
|
const result = yield provider.provideDocumentColors({
|
|
14540
14677
|
textDocument
|
|
14541
14678
|
}, token);
|
|
14542
14679
|
return result && this.p2m.asColorInformations(result);
|
|
14543
14680
|
}),
|
|
14544
|
-
provideColorPresentations: (model, info, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14681
|
+
provideColorPresentations: (model, info, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14545
14682
|
const textDocument = this.m2p.asTextDocumentIdentifier(model);
|
|
14546
14683
|
const range = this.m2p.asRange(info.range);
|
|
14547
14684
|
const result = yield provider.provideColorPresentations({
|
|
@@ -14561,7 +14698,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14561
14698
|
|
|
14562
14699
|
createFoldingRangeProvider(provider) {
|
|
14563
14700
|
return {
|
|
14564
|
-
provideFoldingRanges: (model, context, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14701
|
+
provideFoldingRanges: (model, context, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14565
14702
|
const textDocument = this.m2p.asTextDocumentIdentifier(model);
|
|
14566
14703
|
const result = yield provider.provideFoldingRanges({
|
|
14567
14704
|
textDocument
|
|
@@ -14583,7 +14720,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14583
14720
|
},
|
|
14584
14721
|
|
|
14585
14722
|
onDidChange: provider.onDidChange,
|
|
14586
|
-
provideDocumentSemanticTokens: (model, lastResultId, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14723
|
+
provideDocumentSemanticTokens: (model, lastResultId, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14587
14724
|
const textDocument = this.m2p.asTextDocumentIdentifier(model);
|
|
14588
14725
|
const result = yield provider.provideDocumentSemanticTokens({
|
|
14589
14726
|
textDocument
|
|
@@ -14605,7 +14742,7 @@ monacoDiagnosticCollection.MonacoModelDiagnostics = MonacoModelDiagnostics;
|
|
|
14605
14742
|
return legend;
|
|
14606
14743
|
},
|
|
14607
14744
|
|
|
14608
|
-
provideDocumentRangeSemanticTokens: (model, range, token) => __awaiter(this, void 0, void 0, function* () {
|
|
14745
|
+
provideDocumentRangeSemanticTokens: (model, range, token) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14609
14746
|
const textDocument = this.m2p.asTextDocumentIdentifier(model);
|
|
14610
14747
|
const result = yield provider.provideDocumentRangeSemanticTokens({
|
|
14611
14748
|
textDocument,
|
|
@@ -14651,8 +14788,9 @@ Object.defineProperty(monacoWorkspace, "__esModule", {
|
|
|
14651
14788
|
value: true
|
|
14652
14789
|
});
|
|
14653
14790
|
monacoWorkspace.MonacoWorkspace = void 0;
|
|
14654
|
-
const services_1 = services
|
|
14791
|
+
const services_1 = services;
|
|
14655
14792
|
const vscode_languageserver_textdocument_1 = require$$1$2;
|
|
14793
|
+
const disposable_1 = disposable$1;
|
|
14656
14794
|
|
|
14657
14795
|
class MonacoWorkspace {
|
|
14658
14796
|
constructor(_monaco, p2m, m2p) {
|
|
@@ -14662,7 +14800,9 @@ class MonacoWorkspace {
|
|
|
14662
14800
|
this.p2m = p2m;
|
|
14663
14801
|
this.m2p = m2p;
|
|
14664
14802
|
this._rootUri = _rootUri;
|
|
14803
|
+
this.disposableCollection = new disposable_1.DisposableCollection();
|
|
14665
14804
|
this.documents = new Map();
|
|
14805
|
+
this.documentDisposables = new Map();
|
|
14666
14806
|
this.onDidOpenTextDocumentEmitter = new services_1.Emitter();
|
|
14667
14807
|
this.onDidCloseTextDocumentEmitter = new services_1.Emitter();
|
|
14668
14808
|
this.onDidChangeTextDocumentEmitter = new services_1.Emitter();
|
|
@@ -14671,14 +14811,20 @@ class MonacoWorkspace {
|
|
|
14671
14811
|
this.addModel(model);
|
|
14672
14812
|
}
|
|
14673
14813
|
|
|
14674
|
-
this._monaco.editor.onDidCreateModel(model => this.addModel(model));
|
|
14675
|
-
|
|
14676
|
-
this._monaco.editor.
|
|
14677
|
-
|
|
14678
|
-
this._monaco.editor.onDidChangeModelLanguage(event => {
|
|
14814
|
+
this.disposableCollection.push(this._monaco.editor.onDidCreateModel(model => this.addModel(model)));
|
|
14815
|
+
this.disposableCollection.push(this._monaco.editor.onWillDisposeModel(model => this.removeModel(model)));
|
|
14816
|
+
this.disposableCollection.push(this._monaco.editor.onDidChangeModelLanguage(event => {
|
|
14679
14817
|
this.removeModel(event.model);
|
|
14680
14818
|
this.addModel(event.model);
|
|
14681
|
-
});
|
|
14819
|
+
}));
|
|
14820
|
+
}
|
|
14821
|
+
|
|
14822
|
+
dispose() {
|
|
14823
|
+
this.disposableCollection.dispose();
|
|
14824
|
+
|
|
14825
|
+
for (const model of this._monaco.editor.getModels()) {
|
|
14826
|
+
this.removeModel(model);
|
|
14827
|
+
}
|
|
14682
14828
|
}
|
|
14683
14829
|
|
|
14684
14830
|
get rootUri() {
|
|
@@ -14693,13 +14839,20 @@ class MonacoWorkspace {
|
|
|
14693
14839
|
this.documents.delete(uri);
|
|
14694
14840
|
this.onDidCloseTextDocumentEmitter.fire(document);
|
|
14695
14841
|
}
|
|
14842
|
+
|
|
14843
|
+
const disposable = this.documentDisposables.get(uri);
|
|
14844
|
+
|
|
14845
|
+
if (disposable) {
|
|
14846
|
+
disposable.dispose();
|
|
14847
|
+
this.documentDisposables.delete(uri);
|
|
14848
|
+
}
|
|
14696
14849
|
}
|
|
14697
14850
|
|
|
14698
14851
|
addModel(model) {
|
|
14699
14852
|
const uri = model.uri.toString();
|
|
14700
14853
|
const document = this.setModel(uri, model);
|
|
14701
14854
|
this.onDidOpenTextDocumentEmitter.fire(document);
|
|
14702
|
-
model.onDidChangeContent(event => this.onDidChangeContent(uri, model, event));
|
|
14855
|
+
this.documentDisposables.set(uri, model.onDidChangeContent(event => this.onDidChangeContent(uri, model, event)));
|
|
14703
14856
|
}
|
|
14704
14857
|
|
|
14705
14858
|
onDidChangeContent(uri, model, event) {
|
|
@@ -14807,9 +14960,13 @@ var monacoConverter = {};
|
|
|
14807
14960
|
value: true
|
|
14808
14961
|
});
|
|
14809
14962
|
exports.ProtocolToMonacoConverter = exports.MonacoToProtocolConverter = exports.ProtocolCodeAction = exports.ProtocolIMarkerData = exports.ProtocolCompletionItem = exports.ProtocolCodeLens = exports.ProtocolDocumentLink = void 0;
|
|
14810
|
-
const
|
|
14811
|
-
|
|
14812
|
-
const
|
|
14963
|
+
const tslib_1 = require$$0;
|
|
14964
|
+
|
|
14965
|
+
const ls = tslib_1.__importStar(require$$1$3);
|
|
14966
|
+
|
|
14967
|
+
const Is = tslib_1.__importStar(require$$2);
|
|
14968
|
+
|
|
14969
|
+
const services_1 = services;
|
|
14813
14970
|
var ProtocolDocumentLink;
|
|
14814
14971
|
|
|
14815
14972
|
(function (ProtocolDocumentLink) {
|
|
@@ -16337,7 +16494,8 @@ var monacoConverter = {};
|
|
|
16337
16494
|
const monaco_languages_1 = monacoLanguages;
|
|
16338
16495
|
const monaco_workspace_1 = monacoWorkspace;
|
|
16339
16496
|
const console_window_1 = consoleWindow;
|
|
16340
|
-
const services_1 = services
|
|
16497
|
+
const services_1 = services;
|
|
16498
|
+
const disposable_1 = disposable$1;
|
|
16341
16499
|
|
|
16342
16500
|
(function (MonacoServices) {
|
|
16343
16501
|
function create(_monaco) {
|
|
@@ -16356,9 +16514,11 @@ var monacoConverter = {};
|
|
|
16356
16514
|
|
|
16357
16515
|
function install(_monaco) {
|
|
16358
16516
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
16517
|
+
const disposableCollection = new disposable_1.DisposableCollection();
|
|
16359
16518
|
const services = create(_monaco, options);
|
|
16360
|
-
|
|
16361
|
-
|
|
16519
|
+
disposableCollection.push(services.workspace);
|
|
16520
|
+
disposableCollection.push(services_1.Services.install(services));
|
|
16521
|
+
return disposableCollection;
|
|
16362
16522
|
}
|
|
16363
16523
|
|
|
16364
16524
|
MonacoServices.install = install;
|
|
@@ -16373,56 +16533,34 @@ var monacoConverter = {};
|
|
|
16373
16533
|
|
|
16374
16534
|
(function (exports) {
|
|
16375
16535
|
|
|
16376
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
16377
|
-
if (k2 === undefined) k2 = k;
|
|
16378
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16379
|
-
|
|
16380
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16381
|
-
desc = {
|
|
16382
|
-
enumerable: true,
|
|
16383
|
-
get: function () {
|
|
16384
|
-
return m[k];
|
|
16385
|
-
}
|
|
16386
|
-
};
|
|
16387
|
-
}
|
|
16388
|
-
|
|
16389
|
-
Object.defineProperty(o, k2, desc);
|
|
16390
|
-
} : function (o, m, k, k2) {
|
|
16391
|
-
if (k2 === undefined) k2 = k;
|
|
16392
|
-
o[k2] = m[k];
|
|
16393
|
-
});
|
|
16394
|
-
|
|
16395
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
|
|
16396
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16397
|
-
};
|
|
16398
|
-
|
|
16399
16536
|
Object.defineProperty(exports, "__esModule", {
|
|
16400
16537
|
value: true
|
|
16401
16538
|
});
|
|
16539
|
+
const tslib_1 = require$$0;
|
|
16402
16540
|
/* --------------------------------------------------------------------------------------------
|
|
16403
|
-
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
16541
|
+
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
16404
16542
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
16405
16543
|
* ------------------------------------------------------------------------------------------ */
|
|
16406
16544
|
|
|
16407
|
-
__exportStar(disposable$1, exports);
|
|
16545
|
+
tslib_1.__exportStar(disposable$1, exports);
|
|
16408
16546
|
|
|
16409
|
-
__exportStar(services
|
|
16547
|
+
tslib_1.__exportStar(services, exports);
|
|
16410
16548
|
|
|
16411
|
-
__exportStar(connection, exports);
|
|
16549
|
+
tslib_1.__exportStar(connection, exports);
|
|
16412
16550
|
|
|
16413
|
-
__exportStar(monacoLanguageClient, exports);
|
|
16551
|
+
tslib_1.__exportStar(monacoLanguageClient, exports);
|
|
16414
16552
|
|
|
16415
|
-
__exportStar(monacoCommands, exports);
|
|
16553
|
+
tslib_1.__exportStar(monacoCommands, exports);
|
|
16416
16554
|
|
|
16417
|
-
__exportStar(consoleWindow, exports);
|
|
16555
|
+
tslib_1.__exportStar(consoleWindow, exports);
|
|
16418
16556
|
|
|
16419
|
-
__exportStar(monacoLanguages, exports);
|
|
16557
|
+
tslib_1.__exportStar(monacoLanguages, exports);
|
|
16420
16558
|
|
|
16421
|
-
__exportStar(monacoWorkspace, exports);
|
|
16559
|
+
tslib_1.__exportStar(monacoWorkspace, exports);
|
|
16422
16560
|
|
|
16423
|
-
__exportStar(monacoServices, exports);
|
|
16561
|
+
tslib_1.__exportStar(monacoServices, exports);
|
|
16424
16562
|
|
|
16425
|
-
__exportStar(monacoConverter, exports);
|
|
16563
|
+
tslib_1.__exportStar(monacoConverter, exports);
|
|
16426
16564
|
})(lib);
|
|
16427
16565
|
|
|
16428
16566
|
const asLanguageClientOptionsById = options => options;
|
|
@@ -16441,7 +16579,8 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
16441
16579
|
scheme: 'file',
|
|
16442
16580
|
pattern: '**/*.bash'
|
|
16443
16581
|
}],
|
|
16444
|
-
mutualizable: true
|
|
16582
|
+
mutualizable: true,
|
|
16583
|
+
maxInitializeDuration: 1000
|
|
16445
16584
|
},
|
|
16446
16585
|
c: {
|
|
16447
16586
|
documentSelector: [{
|
|
@@ -17061,6 +17200,13 @@ const simpleConfigurationService = monaco.extra.StandaloneServices.get(monaco.ex
|
|
|
17061
17200
|
class Configuration {
|
|
17062
17201
|
constructor() {
|
|
17063
17202
|
_defineProperty(this, "onDidChangeConfigurationEmitter", new lib.Emitter());
|
|
17203
|
+
|
|
17204
|
+
_defineProperty(this, "disposableCollection", new lib.DisposableCollection());
|
|
17205
|
+
|
|
17206
|
+
this.disposableCollection.push(this.onDidChangeConfigurationEmitter);
|
|
17207
|
+
this.disposableCollection.push(simpleConfigurationService.onDidChangeConfiguration(event => {
|
|
17208
|
+
this.onDidChangeConfigurationEmitter.fire(event);
|
|
17209
|
+
}));
|
|
17064
17210
|
}
|
|
17065
17211
|
|
|
17066
17212
|
getConfiguration(section, resource) {
|
|
@@ -17080,7 +17226,11 @@ class Configuration {
|
|
|
17080
17226
|
}
|
|
17081
17227
|
|
|
17082
17228
|
get onDidChangeConfiguration() {
|
|
17083
|
-
return
|
|
17229
|
+
return this.onDidChangeConfigurationEmitter.event;
|
|
17230
|
+
}
|
|
17231
|
+
|
|
17232
|
+
dispose() {
|
|
17233
|
+
this.disposableCollection.dispose();
|
|
17084
17234
|
}
|
|
17085
17235
|
|
|
17086
17236
|
}
|
|
@@ -17149,6 +17299,13 @@ class CodinGameMonacoWorkspace extends lib.MonacoWorkspace {
|
|
|
17149
17299
|
}
|
|
17150
17300
|
}
|
|
17151
17301
|
|
|
17302
|
+
dispose() {
|
|
17303
|
+
super.dispose();
|
|
17304
|
+
this.configurations.dispose();
|
|
17305
|
+
this.onWillSaveTextDocumentEmitter.dispose();
|
|
17306
|
+
this.onDidSaveTextDocumentEmitter.dispose();
|
|
17307
|
+
}
|
|
17308
|
+
|
|
17152
17309
|
}
|
|
17153
17310
|
|
|
17154
17311
|
function installCommands(services) {
|
|
@@ -17193,26 +17350,21 @@ function autoSaveModels(services) {
|
|
|
17193
17350
|
return disposableCollection;
|
|
17194
17351
|
}
|
|
17195
17352
|
|
|
17196
|
-
let services = null;
|
|
17197
17353
|
let serviceDisposable = null;
|
|
17198
17354
|
let serviceReferenceCount = 0;
|
|
17199
17355
|
|
|
17200
17356
|
function installServices(infrastructure) {
|
|
17201
|
-
if (
|
|
17202
|
-
|
|
17203
|
-
// fix me as soon as https://github.com/TypeFox/monaco-languageclient/pull/330/files is released
|
|
17357
|
+
if (serviceReferenceCount === 0) {
|
|
17358
|
+
const disposableCollection = new lib.DisposableCollection();
|
|
17204
17359
|
const m2p = new lib.MonacoToProtocolConverter(monaco);
|
|
17205
17360
|
const p2m = new lib.ProtocolToMonacoConverter(monaco);
|
|
17206
|
-
services = {
|
|
17361
|
+
const services = {
|
|
17207
17362
|
commands: new lib.MonacoCommands(monaco),
|
|
17208
17363
|
languages: new lib.MonacoLanguages(monaco, p2m, m2p),
|
|
17209
17364
|
workspace: new CodinGameMonacoWorkspace(p2m, m2p, infrastructure.rootUri, infrastructure.workspaceFolders),
|
|
17210
17365
|
window: new WatchableConsoleWindow()
|
|
17211
17366
|
};
|
|
17212
|
-
|
|
17213
|
-
|
|
17214
|
-
if (serviceReferenceCount === 0) {
|
|
17215
|
-
const disposableCollection = new lib.DisposableCollection();
|
|
17367
|
+
disposableCollection.push(services.workspace);
|
|
17216
17368
|
disposableCollection.push(installCommands(services));
|
|
17217
17369
|
disposableCollection.push(lib.Services.install(services));
|
|
17218
17370
|
|
|
@@ -17499,8 +17651,6 @@ class LanguageClientManager {
|
|
|
17499
17651
|
|
|
17500
17652
|
_defineProperty(this, "onErrorEmitter", new lib.Emitter());
|
|
17501
17653
|
|
|
17502
|
-
_defineProperty(this, "onWillCloseEmitter", new lib.Emitter());
|
|
17503
|
-
|
|
17504
17654
|
_defineProperty(this, "onDidCloseEmitter", new lib.Emitter());
|
|
17505
17655
|
|
|
17506
17656
|
_defineProperty(this, "onWillShutdownEmitter", new lib.Emitter());
|
|
@@ -17546,7 +17696,6 @@ class LanguageClientManager {
|
|
|
17546
17696
|
|
|
17547
17697
|
async dispose() {
|
|
17548
17698
|
this.disposed = true;
|
|
17549
|
-
this.onWillCloseEmitter.fire();
|
|
17550
17699
|
|
|
17551
17700
|
try {
|
|
17552
17701
|
if (this.languageClient != null) {
|
|
@@ -17563,10 +17712,6 @@ class LanguageClientManager {
|
|
|
17563
17712
|
return this.onDidChangeStatusEmitter.event;
|
|
17564
17713
|
}
|
|
17565
17714
|
|
|
17566
|
-
get onWillClose() {
|
|
17567
|
-
return this.onWillCloseEmitter.event;
|
|
17568
|
-
}
|
|
17569
|
-
|
|
17570
17715
|
get onDidClose() {
|
|
17571
17716
|
return this.onDidCloseEmitter.event;
|
|
17572
17717
|
}
|
|
@@ -17692,6 +17837,7 @@ class LanguageClientManager {
|
|
|
17692
17837
|
}));
|
|
17693
17838
|
this.languageClient = languageClient;
|
|
17694
17839
|
let readyPromise = null;
|
|
17840
|
+
let fileHandlerRegistration = null;
|
|
17695
17841
|
languageClient.onDidChangeState(async state => {
|
|
17696
17842
|
switch (state.newState) {
|
|
17697
17843
|
case lib.State.Starting:
|
|
@@ -17731,6 +17877,7 @@ class LanguageClientManager {
|
|
|
17731
17877
|
|
|
17732
17878
|
case lib.State.Running:
|
|
17733
17879
|
{
|
|
17880
|
+
fileHandlerRegistration = this.registerFileHandlers();
|
|
17734
17881
|
this.updateStatus('connected');
|
|
17735
17882
|
await readyPromise;
|
|
17736
17883
|
this.updateStatus('ready');
|
|
@@ -17739,6 +17886,10 @@ class LanguageClientManager {
|
|
|
17739
17886
|
|
|
17740
17887
|
case lib.State.Stopped:
|
|
17741
17888
|
{
|
|
17889
|
+
var _fileHandlerRegistrat;
|
|
17890
|
+
|
|
17891
|
+
(_fileHandlerRegistrat = fileHandlerRegistration) === null || _fileHandlerRegistrat === void 0 ? void 0 : _fileHandlerRegistrat.dispose();
|
|
17892
|
+
fileHandlerRegistration = null;
|
|
17742
17893
|
this.updateStatus('closed');
|
|
17743
17894
|
break;
|
|
17744
17895
|
}
|
|
@@ -17761,12 +17912,31 @@ class LanguageClientManager {
|
|
|
17761
17912
|
return this.languageClient.sendRequest(type, params);
|
|
17762
17913
|
}
|
|
17763
17914
|
|
|
17915
|
+
registerFileHandlers() {
|
|
17916
|
+
const disposableCollection = new lib.DisposableCollection();
|
|
17917
|
+
const languageClientManager = this;
|
|
17918
|
+
disposableCollection.push(registerTextModelContentProvider('file', {
|
|
17919
|
+
async provideTextContent(resource) {
|
|
17920
|
+
return await languageClientManager.infrastructure.getFileContent(resource, languageClientManager);
|
|
17921
|
+
}
|
|
17922
|
+
|
|
17923
|
+
}));
|
|
17924
|
+
disposableCollection.push(getServices().workspace.registerSaveDocumentHandler({
|
|
17925
|
+
async saveTextContent(textDocument, reason) {
|
|
17926
|
+
var _languageClientManage, _languageClientManage2;
|
|
17927
|
+
|
|
17928
|
+
await ((_languageClientManage = (_languageClientManage2 = languageClientManager.infrastructure).saveFileContent) === null || _languageClientManage === void 0 ? void 0 : _languageClientManage.call(_languageClientManage2, textDocument, reason, languageClientManager));
|
|
17929
|
+
}
|
|
17930
|
+
|
|
17931
|
+
}));
|
|
17932
|
+
return disposableCollection;
|
|
17933
|
+
}
|
|
17934
|
+
|
|
17764
17935
|
}
|
|
17765
17936
|
/**
|
|
17766
17937
|
* Create a language client manager
|
|
17767
17938
|
* @param id The predefined id of the language client
|
|
17768
17939
|
* @param infrastructure The infrastructure to use
|
|
17769
|
-
* @param parameters the infrastructure parameters
|
|
17770
17940
|
* @returns A language client manager
|
|
17771
17941
|
*/
|
|
17772
17942
|
|
|
@@ -17785,26 +17955,8 @@ function createLanguageClientManager(id, infrastructure) {
|
|
|
17785
17955
|
});
|
|
17786
17956
|
}
|
|
17787
17957
|
|
|
17788
|
-
const disposableCollection = new lib.DisposableCollection();
|
|
17789
17958
|
const serviceDisposable = installServices(infrastructure);
|
|
17790
17959
|
const languageClientManager = new LanguageClientManager(id, languageServerOptions, infrastructure);
|
|
17791
|
-
disposableCollection.push(registerTextModelContentProvider('file', {
|
|
17792
|
-
async provideTextContent(resource) {
|
|
17793
|
-
return await infrastructure.getFileContent(resource, languageClientManager);
|
|
17794
|
-
}
|
|
17795
|
-
|
|
17796
|
-
}));
|
|
17797
|
-
disposableCollection.push(getServices().workspace.registerSaveDocumentHandler({
|
|
17798
|
-
async saveTextContent(textDocument, reason) {
|
|
17799
|
-
var _infrastructure$saveF;
|
|
17800
|
-
|
|
17801
|
-
await ((_infrastructure$saveF = infrastructure.saveFileContent) === null || _infrastructure$saveF === void 0 ? void 0 : _infrastructure$saveF.call(infrastructure, textDocument, reason, languageClientManager));
|
|
17802
|
-
}
|
|
17803
|
-
|
|
17804
|
-
}));
|
|
17805
|
-
languageClientManager.onWillClose(() => {
|
|
17806
|
-
disposableCollection.dispose();
|
|
17807
|
-
});
|
|
17808
17960
|
languageClientManager.onDidClose(() => {
|
|
17809
17961
|
serviceDisposable.dispose();
|
|
17810
17962
|
});
|