@codingame/monaco-languageclient-wrapper 1.0.8 → 1.1.2
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/createLanguageClient.d.ts +2 -2
- package/dist/index.d.ts +3 -2
- package/dist/languageClient.d.ts +8 -14
- package/dist/main.js +636 -327
- package/dist/services/Configuration.d.ts +2 -3
- package/dist/services/WatchableConsoleWindow.d.ts +2 -0
- package/dist/services.d.ts +1 -2
- package/dist/staticOptions.d.ts +9 -0
- package/package.json +21 -21
- package/stats.html +1 -1
package/dist/main.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor/esm/vs/editor/edcore.main';
|
|
2
2
|
import { Uri } from 'monaco-editor/esm/vs/editor/edcore.main';
|
|
3
|
+
import '@codingame/monaco-editor-wrapper/dist/extensionConfigurations';
|
|
3
4
|
import { registerTextModelContentProvider } from '@codingame/monaco-editor-wrapper';
|
|
5
|
+
import swal from 'sweetalert';
|
|
4
6
|
import once from 'once';
|
|
5
7
|
|
|
6
8
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
7
9
|
|
|
8
|
-
function getDefaultExportFromCjs (x) {
|
|
9
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
10
|
function getAugmentedNamespace(n) {
|
|
13
11
|
if (n.__esModule) return n;
|
|
14
12
|
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
@@ -303,14 +301,9 @@ function ownKeys(object, enumerableOnly) {
|
|
|
303
301
|
|
|
304
302
|
if (Object.getOwnPropertySymbols) {
|
|
305
303
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
keys.push.apply(keys, symbols);
|
|
304
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
305
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
306
|
+
})), keys.push.apply(keys, symbols);
|
|
314
307
|
}
|
|
315
308
|
|
|
316
309
|
return keys;
|
|
@@ -318,19 +311,12 @@ function ownKeys(object, enumerableOnly) {
|
|
|
318
311
|
|
|
319
312
|
function _objectSpread2(target) {
|
|
320
313
|
for (var i = 1; i < arguments.length; i++) {
|
|
321
|
-
var source = arguments[i]
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
328
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
329
|
-
} else {
|
|
330
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
331
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
332
|
-
});
|
|
333
|
-
}
|
|
314
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
315
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
316
|
+
_defineProperty(target, key, source[key]);
|
|
317
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
318
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
319
|
+
});
|
|
334
320
|
}
|
|
335
321
|
|
|
336
322
|
return target;
|
|
@@ -1010,7 +996,7 @@ var util$1 = /*#__PURE__*/Object.freeze({
|
|
|
1010
996
|
'default': util
|
|
1011
997
|
});
|
|
1012
998
|
|
|
1013
|
-
var require$$1$
|
|
999
|
+
var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(util$1);
|
|
1014
1000
|
|
|
1015
1001
|
var disposable$1 = {};
|
|
1016
1002
|
|
|
@@ -1249,7 +1235,7 @@ Object.defineProperty(ril, "__esModule", {
|
|
|
1249
1235
|
value: true
|
|
1250
1236
|
});
|
|
1251
1237
|
const ral_1$1 = ral;
|
|
1252
|
-
const util_1 = require$$1$
|
|
1238
|
+
const util_1 = require$$1$2;
|
|
1253
1239
|
const disposable_1$2 = disposable$1;
|
|
1254
1240
|
const messageBuffer_1 = messageBuffer;
|
|
1255
1241
|
|
|
@@ -7960,7 +7946,7 @@ var main$1 = /*#__PURE__*/Object.freeze({
|
|
|
7960
7946
|
get TextDocument () { return TextDocument$1; }
|
|
7961
7947
|
});
|
|
7962
7948
|
|
|
7963
|
-
var require$$1$
|
|
7949
|
+
var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(main$1);
|
|
7964
7950
|
|
|
7965
7951
|
var messages = {};
|
|
7966
7952
|
|
|
@@ -9388,7 +9374,7 @@ connection$3.createProtocolConnection = createProtocolConnection;
|
|
|
9388
9374
|
|
|
9389
9375
|
__exportStar(main$2, exports);
|
|
9390
9376
|
|
|
9391
|
-
__exportStar(require$$1$
|
|
9377
|
+
__exportStar(require$$1$1, exports);
|
|
9392
9378
|
|
|
9393
9379
|
__exportStar(messages, exports);
|
|
9394
9380
|
|
|
@@ -9467,83 +9453,61 @@ connection$3.createProtocolConnection = createProtocolConnection;
|
|
|
9467
9453
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9468
9454
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
9469
9455
|
* ------------------------------------------------------------------------------------------ */
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
if (ar || !(i in from)) {
|
|
9473
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
9474
|
-
ar[i] = from[i];
|
|
9475
|
-
}
|
|
9476
|
-
}
|
|
9477
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9478
|
-
};
|
|
9479
|
-
var FullTextDocument = /** @class */ (function () {
|
|
9480
|
-
function FullTextDocument(uri, languageId, version, content) {
|
|
9456
|
+
class FullTextDocument {
|
|
9457
|
+
constructor(uri, languageId, version, content) {
|
|
9481
9458
|
this._uri = uri;
|
|
9482
9459
|
this._languageId = languageId;
|
|
9483
9460
|
this._version = version;
|
|
9484
9461
|
this._content = content;
|
|
9485
9462
|
this._lineOffsets = undefined;
|
|
9486
9463
|
}
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
},
|
|
9498
|
-
enumerable: false,
|
|
9499
|
-
configurable: true
|
|
9500
|
-
});
|
|
9501
|
-
Object.defineProperty(FullTextDocument.prototype, "version", {
|
|
9502
|
-
get: function () {
|
|
9503
|
-
return this._version;
|
|
9504
|
-
},
|
|
9505
|
-
enumerable: false,
|
|
9506
|
-
configurable: true
|
|
9507
|
-
});
|
|
9508
|
-
FullTextDocument.prototype.getText = function (range) {
|
|
9464
|
+
get uri() {
|
|
9465
|
+
return this._uri;
|
|
9466
|
+
}
|
|
9467
|
+
get languageId() {
|
|
9468
|
+
return this._languageId;
|
|
9469
|
+
}
|
|
9470
|
+
get version() {
|
|
9471
|
+
return this._version;
|
|
9472
|
+
}
|
|
9473
|
+
getText(range) {
|
|
9509
9474
|
if (range) {
|
|
9510
|
-
|
|
9511
|
-
|
|
9475
|
+
const start = this.offsetAt(range.start);
|
|
9476
|
+
const end = this.offsetAt(range.end);
|
|
9512
9477
|
return this._content.substring(start, end);
|
|
9513
9478
|
}
|
|
9514
9479
|
return this._content;
|
|
9515
|
-
}
|
|
9516
|
-
|
|
9517
|
-
for (
|
|
9518
|
-
var change = changes_1[_i];
|
|
9480
|
+
}
|
|
9481
|
+
update(changes, version) {
|
|
9482
|
+
for (let change of changes) {
|
|
9519
9483
|
if (FullTextDocument.isIncremental(change)) {
|
|
9520
9484
|
// makes sure start is before end
|
|
9521
|
-
|
|
9485
|
+
const range = getWellformedRange(change.range);
|
|
9522
9486
|
// update content
|
|
9523
|
-
|
|
9524
|
-
|
|
9487
|
+
const startOffset = this.offsetAt(range.start);
|
|
9488
|
+
const endOffset = this.offsetAt(range.end);
|
|
9525
9489
|
this._content = this._content.substring(0, startOffset) + change.text + this._content.substring(endOffset, this._content.length);
|
|
9526
9490
|
// update the offsets
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9491
|
+
const startLine = Math.max(range.start.line, 0);
|
|
9492
|
+
const endLine = Math.max(range.end.line, 0);
|
|
9493
|
+
let lineOffsets = this._lineOffsets;
|
|
9494
|
+
const addedLineOffsets = computeLineOffsets(change.text, false, startOffset);
|
|
9531
9495
|
if (endLine - startLine === addedLineOffsets.length) {
|
|
9532
|
-
for (
|
|
9496
|
+
for (let i = 0, len = addedLineOffsets.length; i < len; i++) {
|
|
9533
9497
|
lineOffsets[i + startLine + 1] = addedLineOffsets[i];
|
|
9534
9498
|
}
|
|
9535
9499
|
}
|
|
9536
9500
|
else {
|
|
9537
9501
|
if (addedLineOffsets.length < 10000) {
|
|
9538
|
-
lineOffsets.splice
|
|
9502
|
+
lineOffsets.splice(startLine + 1, endLine - startLine, ...addedLineOffsets);
|
|
9539
9503
|
}
|
|
9540
9504
|
else { // avoid too many arguments for splice
|
|
9541
9505
|
this._lineOffsets = lineOffsets = lineOffsets.slice(0, startLine + 1).concat(addedLineOffsets, lineOffsets.slice(endLine + 1));
|
|
9542
9506
|
}
|
|
9543
9507
|
}
|
|
9544
|
-
|
|
9508
|
+
const diff = change.text.length - (endOffset - startOffset);
|
|
9545
9509
|
if (diff !== 0) {
|
|
9546
|
-
for (
|
|
9510
|
+
for (let i = startLine + 1 + addedLineOffsets.length, len = lineOffsets.length; i < len; i++) {
|
|
9547
9511
|
lineOffsets[i] = lineOffsets[i] + diff;
|
|
9548
9512
|
}
|
|
9549
9513
|
}
|
|
@@ -9557,22 +9521,22 @@ var FullTextDocument = /** @class */ (function () {
|
|
|
9557
9521
|
}
|
|
9558
9522
|
}
|
|
9559
9523
|
this._version = version;
|
|
9560
|
-
}
|
|
9561
|
-
|
|
9524
|
+
}
|
|
9525
|
+
getLineOffsets() {
|
|
9562
9526
|
if (this._lineOffsets === undefined) {
|
|
9563
9527
|
this._lineOffsets = computeLineOffsets(this._content, true);
|
|
9564
9528
|
}
|
|
9565
9529
|
return this._lineOffsets;
|
|
9566
|
-
}
|
|
9567
|
-
|
|
9530
|
+
}
|
|
9531
|
+
positionAt(offset) {
|
|
9568
9532
|
offset = Math.max(Math.min(offset, this._content.length), 0);
|
|
9569
|
-
|
|
9570
|
-
|
|
9533
|
+
let lineOffsets = this.getLineOffsets();
|
|
9534
|
+
let low = 0, high = lineOffsets.length;
|
|
9571
9535
|
if (high === 0) {
|
|
9572
9536
|
return { line: 0, character: offset };
|
|
9573
9537
|
}
|
|
9574
9538
|
while (low < high) {
|
|
9575
|
-
|
|
9539
|
+
let mid = Math.floor((low + high) / 2);
|
|
9576
9540
|
if (lineOffsets[mid] > offset) {
|
|
9577
9541
|
high = mid;
|
|
9578
9542
|
}
|
|
@@ -9582,41 +9546,36 @@ var FullTextDocument = /** @class */ (function () {
|
|
|
9582
9546
|
}
|
|
9583
9547
|
// low is the least x for which the line offset is larger than the current offset
|
|
9584
9548
|
// or array.length if no line offset is larger than the current offset
|
|
9585
|
-
|
|
9586
|
-
return { line
|
|
9587
|
-
}
|
|
9588
|
-
|
|
9589
|
-
|
|
9549
|
+
let line = low - 1;
|
|
9550
|
+
return { line, character: offset - lineOffsets[line] };
|
|
9551
|
+
}
|
|
9552
|
+
offsetAt(position) {
|
|
9553
|
+
let lineOffsets = this.getLineOffsets();
|
|
9590
9554
|
if (position.line >= lineOffsets.length) {
|
|
9591
9555
|
return this._content.length;
|
|
9592
9556
|
}
|
|
9593
9557
|
else if (position.line < 0) {
|
|
9594
9558
|
return 0;
|
|
9595
9559
|
}
|
|
9596
|
-
|
|
9597
|
-
|
|
9560
|
+
let lineOffset = lineOffsets[position.line];
|
|
9561
|
+
let nextLineOffset = (position.line + 1 < lineOffsets.length) ? lineOffsets[position.line + 1] : this._content.length;
|
|
9598
9562
|
return Math.max(Math.min(lineOffset + position.character, nextLineOffset), lineOffset);
|
|
9599
|
-
}
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
configurable: true
|
|
9606
|
-
});
|
|
9607
|
-
FullTextDocument.isIncremental = function (event) {
|
|
9608
|
-
var candidate = event;
|
|
9563
|
+
}
|
|
9564
|
+
get lineCount() {
|
|
9565
|
+
return this.getLineOffsets().length;
|
|
9566
|
+
}
|
|
9567
|
+
static isIncremental(event) {
|
|
9568
|
+
let candidate = event;
|
|
9609
9569
|
return candidate !== undefined && candidate !== null &&
|
|
9610
9570
|
typeof candidate.text === 'string' && candidate.range !== undefined &&
|
|
9611
9571
|
(candidate.rangeLength === undefined || typeof candidate.rangeLength === 'number');
|
|
9612
|
-
}
|
|
9613
|
-
|
|
9614
|
-
|
|
9572
|
+
}
|
|
9573
|
+
static isFull(event) {
|
|
9574
|
+
let candidate = event;
|
|
9615
9575
|
return candidate !== undefined && candidate !== null &&
|
|
9616
9576
|
typeof candidate.text === 'string' && candidate.range === undefined && candidate.rangeLength === undefined;
|
|
9617
|
-
}
|
|
9618
|
-
|
|
9619
|
-
}());
|
|
9577
|
+
}
|
|
9578
|
+
}
|
|
9620
9579
|
var TextDocument;
|
|
9621
9580
|
(function (TextDocument) {
|
|
9622
9581
|
/**
|
|
@@ -9651,19 +9610,18 @@ var TextDocument;
|
|
|
9651
9610
|
}
|
|
9652
9611
|
TextDocument.update = update;
|
|
9653
9612
|
function applyEdits(document, edits) {
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9613
|
+
let text = document.getText();
|
|
9614
|
+
let sortedEdits = mergeSort(edits.map(getWellformedEdit), (a, b) => {
|
|
9615
|
+
let diff = a.range.start.line - b.range.start.line;
|
|
9657
9616
|
if (diff === 0) {
|
|
9658
9617
|
return a.range.start.character - b.range.start.character;
|
|
9659
9618
|
}
|
|
9660
9619
|
return diff;
|
|
9661
9620
|
});
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
for (
|
|
9665
|
-
|
|
9666
|
-
var startOffset = document.offsetAt(e.range.start);
|
|
9621
|
+
let lastModifiedOffset = 0;
|
|
9622
|
+
const spans = [];
|
|
9623
|
+
for (const e of sortedEdits) {
|
|
9624
|
+
let startOffset = document.offsetAt(e.range.start);
|
|
9667
9625
|
if (startOffset < lastModifiedOffset) {
|
|
9668
9626
|
throw new Error('Overlapping edit');
|
|
9669
9627
|
}
|
|
@@ -9685,16 +9643,16 @@ function mergeSort(data, compare) {
|
|
|
9685
9643
|
// sorted
|
|
9686
9644
|
return data;
|
|
9687
9645
|
}
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9646
|
+
const p = (data.length / 2) | 0;
|
|
9647
|
+
const left = data.slice(0, p);
|
|
9648
|
+
const right = data.slice(p);
|
|
9691
9649
|
mergeSort(left, compare);
|
|
9692
9650
|
mergeSort(right, compare);
|
|
9693
|
-
|
|
9694
|
-
|
|
9695
|
-
|
|
9651
|
+
let leftIdx = 0;
|
|
9652
|
+
let rightIdx = 0;
|
|
9653
|
+
let i = 0;
|
|
9696
9654
|
while (leftIdx < left.length && rightIdx < right.length) {
|
|
9697
|
-
|
|
9655
|
+
let ret = compare(left[leftIdx], right[rightIdx]);
|
|
9698
9656
|
if (ret <= 0) {
|
|
9699
9657
|
// smaller_equal -> take left to preserve order
|
|
9700
9658
|
data[i++] = left[leftIdx++];
|
|
@@ -9712,11 +9670,10 @@ function mergeSort(data, compare) {
|
|
|
9712
9670
|
}
|
|
9713
9671
|
return data;
|
|
9714
9672
|
}
|
|
9715
|
-
function computeLineOffsets(text, isAtLineStart, textOffset) {
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
var ch = text.charCodeAt(i);
|
|
9673
|
+
function computeLineOffsets(text, isAtLineStart, textOffset = 0) {
|
|
9674
|
+
const result = isAtLineStart ? [textOffset] : [];
|
|
9675
|
+
for (let i = 0; i < text.length; i++) {
|
|
9676
|
+
let ch = text.charCodeAt(i);
|
|
9720
9677
|
if (ch === 13 /* CarriageReturn */ || ch === 10 /* LineFeed */) {
|
|
9721
9678
|
if (ch === 13 /* CarriageReturn */ && i + 1 < text.length && text.charCodeAt(i + 1) === 10 /* LineFeed */) {
|
|
9722
9679
|
i++;
|
|
@@ -9727,17 +9684,17 @@ function computeLineOffsets(text, isAtLineStart, textOffset) {
|
|
|
9727
9684
|
return result;
|
|
9728
9685
|
}
|
|
9729
9686
|
function getWellformedRange(range) {
|
|
9730
|
-
|
|
9731
|
-
|
|
9687
|
+
const start = range.start;
|
|
9688
|
+
const end = range.end;
|
|
9732
9689
|
if (start.line > end.line || (start.line === end.line && start.character > end.character)) {
|
|
9733
9690
|
return { start: end, end: start };
|
|
9734
9691
|
}
|
|
9735
9692
|
return range;
|
|
9736
9693
|
}
|
|
9737
9694
|
function getWellformedEdit(textEdit) {
|
|
9738
|
-
|
|
9695
|
+
const range = getWellformedRange(textEdit.range);
|
|
9739
9696
|
if (range !== textEdit.range) {
|
|
9740
|
-
return { newText: textEdit.newText, range
|
|
9697
|
+
return { newText: textEdit.newText, range };
|
|
9741
9698
|
}
|
|
9742
9699
|
return textEdit;
|
|
9743
9700
|
}
|
|
@@ -9747,7 +9704,7 @@ var main = /*#__PURE__*/Object.freeze({
|
|
|
9747
9704
|
get TextDocument () { return TextDocument; }
|
|
9748
9705
|
});
|
|
9749
9706
|
|
|
9750
|
-
var require$$1
|
|
9707
|
+
var require$$1 = /*@__PURE__*/getAugmentedNamespace(main);
|
|
9751
9708
|
|
|
9752
9709
|
/* --------------------------------------------------------------------------------------------
|
|
9753
9710
|
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
@@ -9766,9 +9723,9 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
9766
9723
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9767
9724
|
};
|
|
9768
9725
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9769
|
-
exports.ConfigurationTarget = exports.DocumentIdentifier = exports.VsCodeDiagnosticSeverity = exports.SignatureHelpTriggerKind = exports.isDocumentSelector = exports.Services = exports.TextDocument = exports.Emitter = exports.Event = exports.CancellationToken = exports.Disposable = void 0;
|
|
9726
|
+
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;
|
|
9770
9727
|
const vscode_languageserver_protocol_1 = main$3;
|
|
9771
|
-
const vscode_languageserver_textdocument_1 = require$$1
|
|
9728
|
+
const vscode_languageserver_textdocument_1 = require$$1;
|
|
9772
9729
|
Object.defineProperty(exports, "TextDocument", { enumerable: true, get: function () { return vscode_languageserver_textdocument_1.TextDocument; } });
|
|
9773
9730
|
const vscode_jsonrpc_1 = main$2;
|
|
9774
9731
|
Object.defineProperty(exports, "Disposable", { enumerable: true, get: function () { return vscode_jsonrpc_1.Disposable; } });
|
|
@@ -9813,6 +9770,11 @@ exports.isDocumentSelector = isDocumentSelector;
|
|
|
9813
9770
|
VsCodeDiagnosticSeverity[VsCodeDiagnosticSeverity["Information"] = 2] = "Information";
|
|
9814
9771
|
VsCodeDiagnosticSeverity[VsCodeDiagnosticSeverity["Hint"] = 3] = "Hint";
|
|
9815
9772
|
})(exports.VsCodeDiagnosticSeverity || (exports.VsCodeDiagnosticSeverity = {}));
|
|
9773
|
+
(function (ProgressLocation) {
|
|
9774
|
+
ProgressLocation[ProgressLocation["SourceControl"] = 1] = "SourceControl";
|
|
9775
|
+
ProgressLocation[ProgressLocation["Window"] = 10] = "Window";
|
|
9776
|
+
ProgressLocation[ProgressLocation["Notification"] = 15] = "Notification";
|
|
9777
|
+
})(exports.ProgressLocation || (exports.ProgressLocation = {}));
|
|
9816
9778
|
(function (DocumentIdentifier) {
|
|
9817
9779
|
function is(arg) {
|
|
9818
9780
|
return !!arg && ('uri' in arg) && ('languageId' in arg);
|
|
@@ -9868,9 +9830,18 @@ var connection$2 = {};
|
|
|
9868
9830
|
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
9869
9831
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
9870
9832
|
* ------------------------------------------------------------------------------------------ */
|
|
9833
|
+
var __awaiter$2 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9834
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9835
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9836
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9837
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9838
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9839
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9840
|
+
});
|
|
9841
|
+
};
|
|
9871
9842
|
Object.defineProperty(connection$2, "__esModule", { value: true });
|
|
9872
9843
|
connection$2.createConnection = void 0;
|
|
9873
|
-
const vscode_languageserver_protocol_1$
|
|
9844
|
+
const vscode_languageserver_protocol_1$f = main$3;
|
|
9874
9845
|
const Is$4 = is$1;
|
|
9875
9846
|
function createConnection(connection, errorHandler, closeHandler) {
|
|
9876
9847
|
connection.onError((data) => { errorHandler(data[0], data[1], data[2]); });
|
|
@@ -9879,22 +9850,24 @@ function createConnection(connection, errorHandler, closeHandler) {
|
|
|
9879
9850
|
listen: () => connection.listen(),
|
|
9880
9851
|
sendRequest: (type, ...params) => connection.sendRequest(Is$4.string(type) ? type : type.method, ...params),
|
|
9881
9852
|
onRequest: (type, handler) => connection.onRequest(Is$4.string(type) ? type : type.method, handler),
|
|
9882
|
-
sendNotification: (type, params) => connection.sendNotification(Is$4.string(type) ? type : type.method, params),
|
|
9853
|
+
sendNotification: (type, params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(Is$4.string(type) ? type : type.method, params); }),
|
|
9883
9854
|
onNotification: (type, handler) => connection.onNotification(Is$4.string(type) ? type : type.method, handler),
|
|
9855
|
+
onProgress: (type, token, handler) => connection.onProgress(type, token, handler),
|
|
9856
|
+
sendProgress: (type, token, value) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendProgress(type, token, value); }),
|
|
9884
9857
|
trace: (value, tracer, sendNotification = false) => connection.trace(value, tracer, sendNotification),
|
|
9885
|
-
initialize: (params) => connection.sendRequest(vscode_languageserver_protocol_1$
|
|
9886
|
-
shutdown: () => connection.sendRequest(vscode_languageserver_protocol_1$
|
|
9887
|
-
exit: () => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9888
|
-
onLogMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1$
|
|
9889
|
-
onShowMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1$
|
|
9890
|
-
onTelemetry: (handler) => connection.onNotification(vscode_languageserver_protocol_1$
|
|
9891
|
-
didChangeConfiguration: (params) => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9892
|
-
didChangeWatchedFiles: (params) => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9893
|
-
didOpenTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9894
|
-
didChangeTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9895
|
-
didCloseTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9896
|
-
didSaveTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9897
|
-
onDiagnostics: (handler) => connection.onNotification(vscode_languageserver_protocol_1$
|
|
9858
|
+
initialize: (params) => connection.sendRequest(vscode_languageserver_protocol_1$f.InitializeRequest.type, params),
|
|
9859
|
+
shutdown: () => connection.sendRequest(vscode_languageserver_protocol_1$f.ShutdownRequest.type, undefined),
|
|
9860
|
+
exit: () => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.ExitNotification.type); }),
|
|
9861
|
+
onLogMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1$f.LogMessageNotification.type, handler),
|
|
9862
|
+
onShowMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1$f.ShowMessageNotification.type, handler),
|
|
9863
|
+
onTelemetry: (handler) => connection.onNotification(vscode_languageserver_protocol_1$f.TelemetryEventNotification.type, handler),
|
|
9864
|
+
didChangeConfiguration: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidChangeConfigurationNotification.type, params); }),
|
|
9865
|
+
didChangeWatchedFiles: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidChangeWatchedFilesNotification.type, params); }),
|
|
9866
|
+
didOpenTextDocument: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidOpenTextDocumentNotification.type, params); }),
|
|
9867
|
+
didChangeTextDocument: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidChangeTextDocumentNotification.type, params); }),
|
|
9868
|
+
didCloseTextDocument: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidCloseTextDocumentNotification.type, params); }),
|
|
9869
|
+
didSaveTextDocument: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidSaveTextDocumentNotification.type, params); }),
|
|
9870
|
+
onDiagnostics: (handler) => connection.onNotification(vscode_languageserver_protocol_1$f.PublishDiagnosticsNotification.type, handler),
|
|
9898
9871
|
dispose: () => connection.dispose(),
|
|
9899
9872
|
end: () => connection.end()
|
|
9900
9873
|
};
|
|
@@ -9907,7 +9880,7 @@ var client = {};
|
|
|
9907
9880
|
|
|
9908
9881
|
var vscodeApi = {};
|
|
9909
9882
|
|
|
9910
|
-
var LIB;LIB=(()=>{var t={470:t=>{function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function r(t,e){for(var r,n="",o=0,i=-1,a=0,h=0;h<=t.length;++h){if(h<t.length)r=t.charCodeAt(h);else {if(47===r)break;r=47;}if(47===r){if(i===h-1||1===a);else if(i!==h-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",o=0):o=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),i=h,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=h,a=0;continue}e&&(n.length>0?n+="/..":n="..",o=2);}else n.length>0?n+="/"+t.slice(i+1,h):n=t.slice(i+1,h),o=h-i-1;i=h,a=0;}else 46===r&&-1!==a?++a:a=-1;}return n}var n={resolve:function(){for(var t,n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===t&&(t=process.cwd()),a=t),e(a),0!==a.length&&(n=a+"/"+n,o=47===a.charCodeAt(0));}return n=r(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(t){if(e(t),0===t.length)return ".";var n=47===t.charCodeAt(0),o=47===t.charCodeAt(t.length-1);return 0!==(t=r(t,!n)).length||n||(t="."),t.length>0&&o&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return ".";for(var t,r=0;r<arguments.length;++r){var o=arguments[r];e(o),o.length>0&&(void 0===t?t=o:t+="/"+o);}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r)return "";if((t=n.resolve(t))===(r=n.resolve(r)))return "";for(var o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var i=t.length,a=i-o,h=1;h<r.length&&47===r.charCodeAt(h);++h);for(var s=r.length-h,f=a<s?a:s,u=-1,c=0;c<=f;++c){if(c===f){if(s>f){if(47===r.charCodeAt(h+c))return r.slice(h+c+1);if(0===c)return r.slice(h+c)}else a>f&&(47===t.charCodeAt(o+c)?u=c:0===c&&(u=0));break}var l=t.charCodeAt(o+c);if(l!==r.charCodeAt(h+c))break;47===l&&(u=c);}var p="";for(c=o+u+1;c<=i;++c)c!==i&&47!==t.charCodeAt(c)||(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(h+u):(h+=u,47===r.charCodeAt(h)&&++h,r.slice(h))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return ".";for(var r=t.charCodeAt(0),n=47===r,o=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(r=t.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return -1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');e(t);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return "";var h=r.length-1,s=-1;for(n=t.length-1;n>=0;--n){var f=t.charCodeAt(n);if(47===f){if(!a){o=n+1;break}}else -1===s&&(a=!1,s=n+1),h>=0&&(f===r.charCodeAt(h)?-1==--h&&(i=n):(h=-1,i=s));}return o===i?i=s:-1===i&&(i=t.length),t.slice(o,i)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){o=n+1;break}}else -1===i&&(a=!1,i=n+1);return -1===i?"":t.slice(o,i)},extname:function(t){e(t);for(var r=-1,n=0,o=-1,i=!0,a=0,h=t.length-1;h>=0;--h){var s=t.charCodeAt(h);if(47!==s)-1===o&&(i=!1,o=h+1),46===s?-1===r?r=h:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=h+1;break}}return -1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":t.slice(r,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+"/"+n:n}(0,t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var n,o=t.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,h=0,s=-1,f=!0,u=t.length-1,c=0;u>=n;--u)if(47!==(o=t.charCodeAt(u)))-1===s&&(f=!1,s=u+1),46===o?-1===a?a=u:1!==c&&(c=1):-1!==a&&(c=-1);else if(!f){h=u+1;break}return -1===a||-1===s||0===c||1===c&&a===s-1&&a===h+1?-1!==s&&(r.base=r.name=0===h&&i?t.slice(1,s):t.slice(h,s)):(0===h&&i?(r.name=t.slice(1,a),r.base=t.slice(1,s)):(r.name=t.slice(h,a),r.base=t.slice(h,s)),r.ext=t.slice(a,s)),h>0?r.dir=t.slice(0,h-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,t.exports=n;},447:(t,e,r)=>{var n;if(r.r(e),r.d(e,{URI:()=>g,Utils:()=>O}),"object"==typeof process)n="win32"===process.platform;else if("object"==typeof navigator){var o=navigator.userAgent;n=o.indexOf("Windows")>=0;}var i,a,h=(i=function(t,e){return (i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);})(t,e)},function(t,e){function r(){this.constructor=t;}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r);}),s=/^\w[\w\d+.-]*$/,f=/^\//,u=/^\/\//,c="",l="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=function(){function t(t,e,r,n,o,i){void 0===i&&(i=!1),"object"==typeof t?(this.scheme=t.scheme||c,this.authority=t.authority||c,this.path=t.path||c,this.query=t.query||c,this.fragment=t.fragment||c):(this.scheme=function(t,e){return t||e?t:"file"}(t,i),this.authority=e||c,this.path=function(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==l&&(e=l+e):e=l;}return e}(this.scheme,r||c),this.query=n||c,this.fragment=o||c,function(t,e){if(!t.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!s.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path)if(t.authority){if(!f.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(u.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,i));}return t.isUri=function(e){return e instanceof t||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(t.prototype,"fsPath",{get:function(){return C(this,!1)},enumerable:!1,configurable:!0}),t.prototype.with=function(t){if(!t)return this;var e=t.scheme,r=t.authority,n=t.path,o=t.query,i=t.fragment;return void 0===e?e=this.scheme:null===e&&(e=c),void 0===r?r=this.authority:null===r&&(r=c),void 0===n?n=this.path:null===n&&(n=c),void 0===o?o=this.query:null===o&&(o=c),void 0===i?i=this.fragment:null===i&&(i=c),e===this.scheme&&r===this.authority&&n===this.path&&o===this.query&&i===this.fragment?this:new v(e,r,n,o,i)},t.parse=function(t,e){void 0===e&&(e=!1);var r=p.exec(t);return r?new v(r[2]||c,x(r[4]||c),x(r[5]||c),x(r[7]||c),x(r[9]||c),e):new v(c,c,c,c,c)},t.file=function(t){var e=c;if(n&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){var r=t.indexOf(l,2);-1===r?(e=t.substring(2),t=l):(e=t.substring(2,r),t=t.substring(r)||l);}return new v("file",e,t,c,c)},t.from=function(t){return new v(t.scheme,t.authority,t.path,t.query,t.fragment)},t.prototype.toString=function(t){return void 0===t&&(t=!1),A(this,t)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var r=new v(e);return r._formatted=e.external,r._fsPath=e._sep===d?e.fsPath:null,r}return e},t}(),d=n?1:void 0,v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}return h(e,t),Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=C(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),e.prototype.toString=function(t){return void 0===t&&(t=!1),t?A(this,!0):(this._formatted||(this._formatted=A(this,!1)),this._formatted)},e.prototype.toJSON=function(){var t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=d),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t},e}(g),m=((a={})[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a);function y(t,e){for(var r=void 0,n=-1,o=0;o<t.length;o++){var i=t.charCodeAt(o);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||e&&47===i)-1!==n&&(r+=encodeURIComponent(t.substring(n,o)),n=-1),void 0!==r&&(r+=t.charAt(o));else {void 0===r&&(r=t.substr(0,o));var a=m[i];void 0!==a?(-1!==n&&(r+=encodeURIComponent(t.substring(n,o)),n=-1),r+=a):-1===n&&(n=o);}}return -1!==n&&(r+=encodeURIComponent(t.substring(n))),void 0!==r?r:t}function b(t){for(var e=void 0,r=0;r<t.length;r++){var n=t.charCodeAt(r);35===n||63===n?(void 0===e&&(e=t.substr(0,r)),e+=m[n]):void 0!==e&&(e+=t[r]);}return void 0!==e?e:t}function C(t,e){var r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?"//"+t.authority+t.path:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?e?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,n&&(r=r.replace(/\//g,"\\")),r}function A(t,e){var r=e?b:y,n="",o=t.scheme,i=t.authority,a=t.path,h=t.query,s=t.fragment;if(o&&(n+=o,n+=":"),(i||"file"===o)&&(n+=l,n+=l),i){var f=i.indexOf("@");if(-1!==f){var u=i.substr(0,f);i=i.substr(f+1),-1===(f=u.indexOf(":"))?n+=r(u,!1):(n+=r(u.substr(0,f),!1),n+=":",n+=r(u.substr(f+1),!1)),n+="@";}-1===(f=(i=i.toLowerCase()).indexOf(":"))?n+=r(i,!1):(n+=r(i.substr(0,f),!1),n+=i.substr(f));}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2))(c=a.charCodeAt(1))>=65&&c<=90&&(a="/"+String.fromCharCode(c+32)+":"+a.substr(3));else if(a.length>=2&&58===a.charCodeAt(1)){var c;(c=a.charCodeAt(0))>=65&&c<=90&&(a=String.fromCharCode(c+32)+":"+a.substr(2));}n+=r(a,!0);}return h&&(n+="?",n+=r(h,!1)),s&&(n+="#",n+=e?s:y(s,!1)),n}function w(t){try{return decodeURIComponent(t)}catch(e){return t.length>3?t.substr(0,3)+w(t.substr(3)):t}}var _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(t){return t.match(_)?t.replace(_,(function(t){return w(t)})):t}var O,P=r(470),j=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],a=0,h=i.length;a<h;a++,o++)n[o]=i[a];return n},U=P.posix||P;!function(t){t.joinPath=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return t.with({path:U.join.apply(U,j([t.path],e))})},t.resolvePath=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=t.path||"/";return t.with({path:U.resolve.apply(U,j([n],e))})},t.dirname=function(t){var e=U.dirname(t.path);return 1===e.length&&46===e.charCodeAt(0)?t:t.with({path:e})},t.basename=function(t){return U.basename(t.path)},t.extname=function(t){return U.extname(t.path)};}(O||(O={}));}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}return r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]});},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},r(447)})();const{URI,Utils}=LIB;
|
|
9883
|
+
var LIB;LIB=(()=>{var t={470:t=>{function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function r(t,e){for(var r,n="",o=0,i=-1,a=0,h=0;h<=t.length;++h){if(h<t.length)r=t.charCodeAt(h);else {if(47===r)break;r=47;}if(47===r){if(i===h-1||1===a);else if(i!==h-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",o=0):o=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),i=h,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=h,a=0;continue}e&&(n.length>0?n+="/..":n="..",o=2);}else n.length>0?n+="/"+t.slice(i+1,h):n=t.slice(i+1,h),o=h-i-1;i=h,a=0;}else 46===r&&-1!==a?++a:a=-1;}return n}var n={resolve:function(){for(var t,n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===t&&(t=process.cwd()),a=t),e(a),0!==a.length&&(n=a+"/"+n,o=47===a.charCodeAt(0));}return n=r(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(t){if(e(t),0===t.length)return ".";var n=47===t.charCodeAt(0),o=47===t.charCodeAt(t.length-1);return 0!==(t=r(t,!n)).length||n||(t="."),t.length>0&&o&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return ".";for(var t,r=0;r<arguments.length;++r){var o=arguments[r];e(o),o.length>0&&(void 0===t?t=o:t+="/"+o);}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r)return "";if((t=n.resolve(t))===(r=n.resolve(r)))return "";for(var o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var i=t.length,a=i-o,h=1;h<r.length&&47===r.charCodeAt(h);++h);for(var s=r.length-h,c=a<s?a:s,f=-1,u=0;u<=c;++u){if(u===c){if(s>c){if(47===r.charCodeAt(h+u))return r.slice(h+u+1);if(0===u)return r.slice(h+u)}else a>c&&(47===t.charCodeAt(o+u)?f=u:0===u&&(f=0));break}var l=t.charCodeAt(o+u);if(l!==r.charCodeAt(h+u))break;47===l&&(f=u);}var p="";for(u=o+f+1;u<=i;++u)u!==i&&47!==t.charCodeAt(u)||(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(h+f):(h+=f,47===r.charCodeAt(h)&&++h,r.slice(h))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return ".";for(var r=t.charCodeAt(0),n=47===r,o=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(r=t.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return -1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');e(t);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return "";var h=r.length-1,s=-1;for(n=t.length-1;n>=0;--n){var c=t.charCodeAt(n);if(47===c){if(!a){o=n+1;break}}else -1===s&&(a=!1,s=n+1),h>=0&&(c===r.charCodeAt(h)?-1==--h&&(i=n):(h=-1,i=s));}return o===i?i=s:-1===i&&(i=t.length),t.slice(o,i)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){o=n+1;break}}else -1===i&&(a=!1,i=n+1);return -1===i?"":t.slice(o,i)},extname:function(t){e(t);for(var r=-1,n=0,o=-1,i=!0,a=0,h=t.length-1;h>=0;--h){var s=t.charCodeAt(h);if(47!==s)-1===o&&(i=!1,o=h+1),46===s?-1===r?r=h:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=h+1;break}}return -1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":t.slice(r,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+"/"+n:n}(0,t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var n,o=t.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,h=0,s=-1,c=!0,f=t.length-1,u=0;f>=n;--f)if(47!==(o=t.charCodeAt(f)))-1===s&&(c=!1,s=f+1),46===o?-1===a?a=f:1!==u&&(u=1):-1!==a&&(u=-1);else if(!c){h=f+1;break}return -1===a||-1===s||0===u||1===u&&a===s-1&&a===h+1?-1!==s&&(r.base=r.name=0===h&&i?t.slice(1,s):t.slice(h,s)):(0===h&&i?(r.name=t.slice(1,a),r.base=t.slice(1,s)):(r.name=t.slice(h,a),r.base=t.slice(h,s)),r.ext=t.slice(a,s)),h>0?r.dir=t.slice(0,h-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,t.exports=n;},447:(t,e,r)=>{var n;if(r.r(e),r.d(e,{URI:()=>d,Utils:()=>P}),"object"==typeof process)n="win32"===process.platform;else if("object"==typeof navigator){var o=navigator.userAgent;n=o.indexOf("Windows")>=0;}var i,a,h=(i=function(t,e){return (i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t;}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r);}),s=/^\w[\w\d+.-]*$/,c=/^\//,f=/^\/\//;function u(t,e){if(!t.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(t.authority,'", path: "').concat(t.path,'", query: "').concat(t.query,'", fragment: "').concat(t.fragment,'"}'));if(t.scheme&&!s.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path)if(t.authority){if(!c.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(f.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}var l="",p="/",g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,d=function(){function t(t,e,r,n,o,i){void 0===i&&(i=!1),"object"==typeof t?(this.scheme=t.scheme||l,this.authority=t.authority||l,this.path=t.path||l,this.query=t.query||l,this.fragment=t.fragment||l):(this.scheme=function(t,e){return t||e?t:"file"}(t,i),this.authority=e||l,this.path=function(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==p&&(e=p+e):e=p;}return e}(this.scheme,r||l),this.query=n||l,this.fragment=o||l,u(this,i));}return t.isUri=function(e){return e instanceof t||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(t.prototype,"fsPath",{get:function(){return A(this,!1)},enumerable:!1,configurable:!0}),t.prototype.with=function(t){if(!t)return this;var e=t.scheme,r=t.authority,n=t.path,o=t.query,i=t.fragment;return void 0===e?e=this.scheme:null===e&&(e=l),void 0===r?r=this.authority:null===r&&(r=l),void 0===n?n=this.path:null===n&&(n=l),void 0===o?o=this.query:null===o&&(o=l),void 0===i?i=this.fragment:null===i&&(i=l),e===this.scheme&&r===this.authority&&n===this.path&&o===this.query&&i===this.fragment?this:new y(e,r,n,o,i)},t.parse=function(t,e){void 0===e&&(e=!1);var r=g.exec(t);return r?new y(r[2]||l,O(r[4]||l),O(r[5]||l),O(r[7]||l),O(r[9]||l),e):new y(l,l,l,l,l)},t.file=function(t){var e=l;if(n&&(t=t.replace(/\\/g,p)),t[0]===p&&t[1]===p){var r=t.indexOf(p,2);-1===r?(e=t.substring(2),t=p):(e=t.substring(2,r),t=t.substring(r)||p);}return new y("file",e,t,l,l)},t.from=function(t){var e=new y(t.scheme,t.authority,t.path,t.query,t.fragment);return u(e,!0),e},t.prototype.toString=function(t){return void 0===t&&(t=!1),w(this,t)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var r=new y(e);return r._formatted=e.external,r._fsPath=e._sep===v?e.fsPath:null,r}return e},t}(),v=n?1:void 0,y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}return h(e,t),Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=A(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),e.prototype.toString=function(t){return void 0===t&&(t=!1),t?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)},e.prototype.toJSON=function(){var t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=v),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t},e}(d),m=((a={})[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a);function b(t,e){for(var r=void 0,n=-1,o=0;o<t.length;o++){var i=t.charCodeAt(o);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||e&&47===i)-1!==n&&(r+=encodeURIComponent(t.substring(n,o)),n=-1),void 0!==r&&(r+=t.charAt(o));else {void 0===r&&(r=t.substr(0,o));var a=m[i];void 0!==a?(-1!==n&&(r+=encodeURIComponent(t.substring(n,o)),n=-1),r+=a):-1===n&&(n=o);}}return -1!==n&&(r+=encodeURIComponent(t.substring(n))),void 0!==r?r:t}function C(t){for(var e=void 0,r=0;r<t.length;r++){var n=t.charCodeAt(r);35===n||63===n?(void 0===e&&(e=t.substr(0,r)),e+=m[n]):void 0!==e&&(e+=t[r]);}return void 0!==e?e:t}function A(t,e){var r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?"//".concat(t.authority).concat(t.path):47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?e?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,n&&(r=r.replace(/\//g,"\\")),r}function w(t,e){var r=e?C:b,n="",o=t.scheme,i=t.authority,a=t.path,h=t.query,s=t.fragment;if(o&&(n+=o,n+=":"),(i||"file"===o)&&(n+=p,n+=p),i){var c=i.indexOf("@");if(-1!==c){var f=i.substr(0,c);i=i.substr(c+1),-1===(c=f.indexOf(":"))?n+=r(f,!1):(n+=r(f.substr(0,c),!1),n+=":",n+=r(f.substr(c+1),!1)),n+="@";}-1===(c=(i=i.toLowerCase()).indexOf(":"))?n+=r(i,!1):(n+=r(i.substr(0,c),!1),n+=i.substr(c));}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2))(u=a.charCodeAt(1))>=65&&u<=90&&(a="/".concat(String.fromCharCode(u+32),":").concat(a.substr(3)));else if(a.length>=2&&58===a.charCodeAt(1)){var u;(u=a.charCodeAt(0))>=65&&u<=90&&(a="".concat(String.fromCharCode(u+32),":").concat(a.substr(2)));}n+=r(a,!0);}return h&&(n+="?",n+=r(h,!1)),s&&(n+="#",n+=e?s:b(s,!1)),n}function x(t){try{return decodeURIComponent(t)}catch(e){return t.length>3?t.substr(0,3)+x(t.substr(3)):t}}var _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(t){return t.match(_)?t.replace(_,(function(t){return x(t)})):t}var P,j=r(470),U=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},I=j.posix||j;!function(t){t.joinPath=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return t.with({path:I.join.apply(I,U([t.path],e,!1))})},t.resolvePath=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=t.path||"/";return t.with({path:I.resolve.apply(I,U([n],e,!1))})},t.dirname=function(t){var e=I.dirname(t.path);return 1===e.length&&46===e.charCodeAt(0)?t:t.with({path:e})},t.basename=function(t){return I.basename(t.path)},t.extname=function(t){return I.extname(t.path)};}(P||(P={}));}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}return r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]});},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},r(447)})();const{URI,Utils}=LIB;
|
|
9911
9884
|
|
|
9912
9885
|
var esm = /*#__PURE__*/Object.freeze({
|
|
9913
9886
|
__proto__: null,
|
|
@@ -9915,7 +9888,7 @@ var esm = /*#__PURE__*/Object.freeze({
|
|
|
9915
9888
|
Utils: Utils
|
|
9916
9889
|
});
|
|
9917
9890
|
|
|
9918
|
-
var require$$
|
|
9891
|
+
var require$$0 = /*@__PURE__*/getAugmentedNamespace(esm);
|
|
9919
9892
|
|
|
9920
9893
|
/* --------------------------------------------------------------------------------------------
|
|
9921
9894
|
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
@@ -9932,12 +9905,11 @@ var __awaiter$1 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
9932
9905
|
};
|
|
9933
9906
|
Object.defineProperty(vscodeApi, "__esModule", { value: true });
|
|
9934
9907
|
vscodeApi.createVSCodeApi = void 0;
|
|
9935
|
-
const
|
|
9936
|
-
const vscode_uri_1 = require$$1;
|
|
9908
|
+
const vscode_uri_1 = require$$0;
|
|
9937
9909
|
const disposable_1$1 = disposable$2;
|
|
9938
9910
|
const services_1$3 = services$1;
|
|
9939
9911
|
const ServicesModule = services$1;
|
|
9940
|
-
const vscode_languageserver_protocol_1$
|
|
9912
|
+
const vscode_languageserver_protocol_1$e = main$3;
|
|
9941
9913
|
function createVSCodeApi(servicesProvider) {
|
|
9942
9914
|
const unsupported = () => { throw new Error('unsupported'); };
|
|
9943
9915
|
const Uri = class VSCodeUri extends vscode_uri_1.URI {
|
|
@@ -9987,7 +9959,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
9987
9959
|
CodeActionKind.SourceOrganizeImports = CodeActionKind.Source.append('organizeImports');
|
|
9988
9960
|
CodeActionKind.SourceFixAll = CodeActionKind.Source.append('fixAll');
|
|
9989
9961
|
class Diagnostic {
|
|
9990
|
-
constructor(range, message, severity = vscode_languageserver_protocol_1$
|
|
9962
|
+
constructor(range, message, severity = vscode_languageserver_protocol_1$e.DiagnosticSeverity.Error) {
|
|
9991
9963
|
this.range = range;
|
|
9992
9964
|
this.message = message;
|
|
9993
9965
|
this.severity = severity;
|
|
@@ -10283,7 +10255,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10283
10255
|
}
|
|
10284
10256
|
const languages = {
|
|
10285
10257
|
match(selector, document) {
|
|
10286
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10258
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10287
10259
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10288
10260
|
}
|
|
10289
10261
|
if (!services_1$3.DocumentIdentifier.is(document)) {
|
|
@@ -10304,7 +10276,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10304
10276
|
return new ApiDiagnosticCollection(name);
|
|
10305
10277
|
},
|
|
10306
10278
|
registerCompletionItemProvider(selector, provider, ...triggerCharacters) {
|
|
10307
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10279
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10308
10280
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10309
10281
|
}
|
|
10310
10282
|
const { languages } = servicesProvider();
|
|
@@ -10324,7 +10296,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10324
10296
|
}, ...triggerCharacters);
|
|
10325
10297
|
},
|
|
10326
10298
|
registerCodeActionsProvider(selector, provider) {
|
|
10327
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10299
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10328
10300
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10329
10301
|
}
|
|
10330
10302
|
const { languages } = servicesProvider();
|
|
@@ -10341,7 +10313,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10341
10313
|
});
|
|
10342
10314
|
},
|
|
10343
10315
|
registerCodeLensProvider(selector, provider) {
|
|
10344
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10316
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10345
10317
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10346
10318
|
}
|
|
10347
10319
|
const { languages } = servicesProvider();
|
|
@@ -10359,7 +10331,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10359
10331
|
});
|
|
10360
10332
|
},
|
|
10361
10333
|
registerDefinitionProvider(selector, provider) {
|
|
10362
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10334
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10363
10335
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10364
10336
|
}
|
|
10365
10337
|
const { languages } = servicesProvider();
|
|
@@ -10373,7 +10345,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10373
10345
|
});
|
|
10374
10346
|
},
|
|
10375
10347
|
registerImplementationProvider(selector, provider) {
|
|
10376
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10348
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10377
10349
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10378
10350
|
}
|
|
10379
10351
|
const { languages } = servicesProvider();
|
|
@@ -10387,7 +10359,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10387
10359
|
});
|
|
10388
10360
|
},
|
|
10389
10361
|
registerTypeDefinitionProvider(selector, provider) {
|
|
10390
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10362
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10391
10363
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10392
10364
|
}
|
|
10393
10365
|
const { languages } = servicesProvider();
|
|
@@ -10401,7 +10373,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10401
10373
|
});
|
|
10402
10374
|
},
|
|
10403
10375
|
registerDeclarationProvider(selector, provider) {
|
|
10404
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10376
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10405
10377
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10406
10378
|
}
|
|
10407
10379
|
const { languages } = servicesProvider();
|
|
@@ -10415,7 +10387,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10415
10387
|
});
|
|
10416
10388
|
},
|
|
10417
10389
|
registerHoverProvider(selector, provider) {
|
|
10418
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10390
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10419
10391
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10420
10392
|
}
|
|
10421
10393
|
const { languages } = servicesProvider();
|
|
@@ -10429,7 +10401,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10429
10401
|
return disposable_1$1.Disposable.create(() => { });
|
|
10430
10402
|
},
|
|
10431
10403
|
registerDocumentHighlightProvider(selector, provider) {
|
|
10432
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10404
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10433
10405
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10434
10406
|
}
|
|
10435
10407
|
const { languages } = servicesProvider();
|
|
@@ -10443,7 +10415,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10443
10415
|
});
|
|
10444
10416
|
},
|
|
10445
10417
|
registerDocumentSymbolProvider(selector, provider) {
|
|
10446
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10418
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10447
10419
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10448
10420
|
}
|
|
10449
10421
|
const { languages } = servicesProvider();
|
|
@@ -10468,7 +10440,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10468
10440
|
});
|
|
10469
10441
|
},
|
|
10470
10442
|
registerReferenceProvider(selector, provider) {
|
|
10471
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10443
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10472
10444
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10473
10445
|
}
|
|
10474
10446
|
const { languages } = servicesProvider();
|
|
@@ -10482,7 +10454,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10482
10454
|
});
|
|
10483
10455
|
},
|
|
10484
10456
|
registerRenameProvider(selector, provider) {
|
|
10485
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10457
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10486
10458
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10487
10459
|
}
|
|
10488
10460
|
const { languages } = servicesProvider();
|
|
@@ -10496,7 +10468,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10496
10468
|
});
|
|
10497
10469
|
},
|
|
10498
10470
|
registerDocumentFormattingEditProvider(selector, provider) {
|
|
10499
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10471
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10500
10472
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10501
10473
|
}
|
|
10502
10474
|
const { languages } = servicesProvider();
|
|
@@ -10510,7 +10482,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10510
10482
|
});
|
|
10511
10483
|
},
|
|
10512
10484
|
registerDocumentRangeFormattingEditProvider(selector, provider) {
|
|
10513
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10485
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10514
10486
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10515
10487
|
}
|
|
10516
10488
|
const { languages } = servicesProvider();
|
|
@@ -10524,7 +10496,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10524
10496
|
});
|
|
10525
10497
|
},
|
|
10526
10498
|
registerOnTypeFormattingEditProvider(selector, provider, firstTriggerCharacter, ...moreTriggerCharacter) {
|
|
10527
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10499
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10528
10500
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10529
10501
|
}
|
|
10530
10502
|
const { languages } = servicesProvider();
|
|
@@ -10538,7 +10510,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10538
10510
|
}, firstTriggerCharacter, ...moreTriggerCharacter);
|
|
10539
10511
|
},
|
|
10540
10512
|
registerSignatureHelpProvider(selector, provider, firstItem, ...remaining) {
|
|
10541
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10513
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10542
10514
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10543
10515
|
}
|
|
10544
10516
|
const { languages } = servicesProvider();
|
|
@@ -10563,7 +10535,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10563
10535
|
});
|
|
10564
10536
|
},
|
|
10565
10537
|
registerDocumentLinkProvider(selector, provider) {
|
|
10566
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10538
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10567
10539
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10568
10540
|
}
|
|
10569
10541
|
const { languages } = servicesProvider();
|
|
@@ -10581,7 +10553,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10581
10553
|
});
|
|
10582
10554
|
},
|
|
10583
10555
|
registerColorProvider(selector, provider) {
|
|
10584
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10556
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10585
10557
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10586
10558
|
}
|
|
10587
10559
|
const { languages } = servicesProvider();
|
|
@@ -10601,7 +10573,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10601
10573
|
});
|
|
10602
10574
|
},
|
|
10603
10575
|
registerFoldingRangeProvider(selector, provider) {
|
|
10604
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10576
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10605
10577
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10606
10578
|
}
|
|
10607
10579
|
const { languages } = servicesProvider();
|
|
@@ -10615,7 +10587,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10615
10587
|
});
|
|
10616
10588
|
},
|
|
10617
10589
|
registerSelectionRangeProvider(selector, provider) {
|
|
10618
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10590
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10619
10591
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10620
10592
|
}
|
|
10621
10593
|
const { languages } = servicesProvider();
|
|
@@ -10630,7 +10602,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10630
10602
|
},
|
|
10631
10603
|
registerEvaluatableExpressionProvider: unsupported,
|
|
10632
10604
|
registerDocumentSemanticTokensProvider(selector, provider, legend) {
|
|
10633
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10605
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10634
10606
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10635
10607
|
}
|
|
10636
10608
|
const { languages } = servicesProvider();
|
|
@@ -10638,6 +10610,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10638
10610
|
return disposable_1$1.Disposable.create(() => { });
|
|
10639
10611
|
}
|
|
10640
10612
|
return languages.registerDocumentSemanticTokensProvider(selector, {
|
|
10613
|
+
onDidChange: provider.onDidChangeSemanticTokens,
|
|
10641
10614
|
provideDocumentSemanticTokens({ textDocument }, token) {
|
|
10642
10615
|
return provider.provideDocumentSemanticTokens(textDocument, token);
|
|
10643
10616
|
},
|
|
@@ -10647,7 +10620,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10647
10620
|
}, legend);
|
|
10648
10621
|
},
|
|
10649
10622
|
registerDocumentRangeSemanticTokensProvider(selector, provider, legend) {
|
|
10650
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10623
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10651
10624
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10652
10625
|
}
|
|
10653
10626
|
const { languages } = servicesProvider();
|
|
@@ -10710,7 +10683,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10710
10683
|
if (window && window.withProgress) {
|
|
10711
10684
|
return window.withProgress(options, task);
|
|
10712
10685
|
}
|
|
10713
|
-
return task({ report: () => { } }, new
|
|
10686
|
+
return task({ report: () => { } }, new vscode_languageserver_protocol_1$e.CancellationTokenSource().token);
|
|
10714
10687
|
},
|
|
10715
10688
|
showTextDocument: unsupported,
|
|
10716
10689
|
createTextEditorDecorationType: unsupported,
|
|
@@ -10837,7 +10810,9 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10837
10810
|
Disposable: CodeDisposable,
|
|
10838
10811
|
SignatureHelpTriggerKind: services_1$3.SignatureHelpTriggerKind,
|
|
10839
10812
|
DiagnosticSeverity: ServicesModule.DiagnosticSeverity,
|
|
10840
|
-
EventEmitter: ServicesModule.Emitter
|
|
10813
|
+
EventEmitter: ServicesModule.Emitter,
|
|
10814
|
+
CancellationTokenSource: vscode_languageserver_protocol_1$e.CancellationTokenSource,
|
|
10815
|
+
ProgressLocation: ServicesModule.ProgressLocation
|
|
10841
10816
|
};
|
|
10842
10817
|
return partialApi;
|
|
10843
10818
|
}
|
|
@@ -10849,7 +10824,7 @@ vscodeApi.createVSCodeApi = createVSCodeApi;
|
|
|
10849
10824
|
* ------------------------------------------------------------------------------------------ */
|
|
10850
10825
|
const vscode_api_1 = vscodeApi;
|
|
10851
10826
|
const services_1$2 = services$1;
|
|
10852
|
-
var vscodeCompatibility = vscode_api_1.createVSCodeApi(services_1$2.Services.get);
|
|
10827
|
+
var vscodeCompatibility = (0, vscode_api_1.createVSCodeApi)(services_1$2.Services.get);
|
|
10853
10828
|
|
|
10854
10829
|
var configuration = {};
|
|
10855
10830
|
|
|
@@ -10864,7 +10839,7 @@ Object.defineProperty(configuration, "__esModule", {
|
|
|
10864
10839
|
});
|
|
10865
10840
|
configuration.toJSONObject = configuration.ConfigurationFeature = void 0;
|
|
10866
10841
|
const vscode_1$8 = vscodeCompatibility;
|
|
10867
|
-
const vscode_languageserver_protocol_1$
|
|
10842
|
+
const vscode_languageserver_protocol_1$d = main$3;
|
|
10868
10843
|
|
|
10869
10844
|
class ConfigurationFeature {
|
|
10870
10845
|
constructor(_client) {
|
|
@@ -10878,7 +10853,7 @@ class ConfigurationFeature {
|
|
|
10878
10853
|
|
|
10879
10854
|
initialize() {
|
|
10880
10855
|
let client = this._client;
|
|
10881
|
-
client.onRequest(vscode_languageserver_protocol_1$
|
|
10856
|
+
client.onRequest(vscode_languageserver_protocol_1$d.ConfigurationRequest.type, (params, token) => {
|
|
10882
10857
|
let configuration = params => {
|
|
10883
10858
|
let result = [];
|
|
10884
10859
|
|
|
@@ -11209,7 +11184,7 @@ const protocolDocumentLink_1$1 = protocolDocumentLink;
|
|
|
11209
11184
|
const protocolCodeAction_1$1 = protocolCodeAction;
|
|
11210
11185
|
const protocolDiagnostic_1$1 = protocolDiagnostic;
|
|
11211
11186
|
const protocolCallHierarchyItem_1$1 = protocolCallHierarchyItem;
|
|
11212
|
-
const vscode_languageserver_protocol_1$
|
|
11187
|
+
const vscode_languageserver_protocol_1$c = main$3;
|
|
11213
11188
|
var InsertReplaceRange;
|
|
11214
11189
|
|
|
11215
11190
|
(function (InsertReplaceRange) {
|
|
@@ -11798,7 +11773,7 @@ function createConverter$1(uriConverter) {
|
|
|
11798
11773
|
}
|
|
11799
11774
|
|
|
11800
11775
|
if (result.insertTextMode === undefined && item.keepWhitespace === true) {
|
|
11801
|
-
result.insertTextMode = vscode_languageserver_protocol_1$
|
|
11776
|
+
result.insertTextMode = vscode_languageserver_protocol_1$c.InsertTextMode.adjustIndentation;
|
|
11802
11777
|
}
|
|
11803
11778
|
|
|
11804
11779
|
return result;
|
|
@@ -12122,7 +12097,7 @@ const protocolDocumentLink_1 = protocolDocumentLink;
|
|
|
12122
12097
|
const protocolCodeAction_1 = protocolCodeAction;
|
|
12123
12098
|
const protocolDiagnostic_1 = protocolDiagnostic;
|
|
12124
12099
|
const protocolCallHierarchyItem_1 = protocolCallHierarchyItem;
|
|
12125
|
-
const vscode_languageserver_protocol_1$
|
|
12100
|
+
const vscode_languageserver_protocol_1$b = main$3;
|
|
12126
12101
|
var CodeBlock;
|
|
12127
12102
|
|
|
12128
12103
|
(function (CodeBlock) {
|
|
@@ -12463,7 +12438,7 @@ function createConverter(uriConverter, trustMarkdown) {
|
|
|
12463
12438
|
if (item.insertTextMode !== undefined) {
|
|
12464
12439
|
result.insertTextMode = item.insertTextMode;
|
|
12465
12440
|
|
|
12466
|
-
if (item.insertTextMode === vscode_languageserver_protocol_1$
|
|
12441
|
+
if (item.insertTextMode === vscode_languageserver_protocol_1$b.InsertTextMode.asIs) {
|
|
12467
12442
|
result.keepWhitespace = true;
|
|
12468
12443
|
}
|
|
12469
12444
|
}
|
|
@@ -12956,7 +12931,7 @@ function createConverter(uriConverter, trustMarkdown) {
|
|
|
12956
12931
|
const uri = _uriConverter(change.textDocument.uri);
|
|
12957
12932
|
|
|
12958
12933
|
for (const edit of change.edits) {
|
|
12959
|
-
if (vscode_languageserver_protocol_1$
|
|
12934
|
+
if (vscode_languageserver_protocol_1$b.AnnotatedTextEdit.is(edit)) {
|
|
12960
12935
|
result.replace(uri, asRange(edit.range), edit.newText, asMetadata(edit.annotationId));
|
|
12961
12936
|
} else {
|
|
12962
12937
|
result.replace(uri, asRange(edit.range), edit.newText);
|
|
@@ -13261,7 +13236,7 @@ Object.defineProperty(async, "__esModule", {
|
|
|
13261
13236
|
value: true
|
|
13262
13237
|
});
|
|
13263
13238
|
async.Delayer = void 0;
|
|
13264
|
-
const vscode_languageserver_protocol_1$
|
|
13239
|
+
const vscode_languageserver_protocol_1$a = main$3;
|
|
13265
13240
|
|
|
13266
13241
|
class Delayer {
|
|
13267
13242
|
constructor(defaultDelay) {
|
|
@@ -13293,7 +13268,7 @@ class Delayer {
|
|
|
13293
13268
|
}
|
|
13294
13269
|
|
|
13295
13270
|
if (delay >= 0 || this.timeout === void 0) {
|
|
13296
|
-
this.timeout = vscode_languageserver_protocol_1$
|
|
13271
|
+
this.timeout = vscode_languageserver_protocol_1$a.RAL().timer.setTimeout(() => {
|
|
13297
13272
|
this.timeout = undefined;
|
|
13298
13273
|
this.onSuccess(undefined);
|
|
13299
13274
|
}, delay >= 0 ? delay : this.defaultDelay);
|
|
@@ -13326,7 +13301,7 @@ class Delayer {
|
|
|
13326
13301
|
|
|
13327
13302
|
cancelTimeout() {
|
|
13328
13303
|
if (this.timeout !== void 0) {
|
|
13329
|
-
vscode_languageserver_protocol_1$
|
|
13304
|
+
vscode_languageserver_protocol_1$a.RAL().timer.clearTimeout(this.timeout);
|
|
13330
13305
|
this.timeout = undefined;
|
|
13331
13306
|
}
|
|
13332
13307
|
}
|
|
@@ -13432,7 +13407,7 @@ Object.defineProperty(progressPart, "__esModule", {
|
|
|
13432
13407
|
});
|
|
13433
13408
|
progressPart.ProgressPart = void 0;
|
|
13434
13409
|
const vscode_1$7 = vscodeCompatibility;
|
|
13435
|
-
const vscode_languageserver_protocol_1$
|
|
13410
|
+
const vscode_languageserver_protocol_1$9 = main$3;
|
|
13436
13411
|
const Is$1 = is;
|
|
13437
13412
|
|
|
13438
13413
|
class ProgressPart {
|
|
@@ -13440,7 +13415,7 @@ class ProgressPart {
|
|
|
13440
13415
|
this._client = _client;
|
|
13441
13416
|
this._token = _token;
|
|
13442
13417
|
this._reported = 0;
|
|
13443
|
-
this._disposable = this._client.onProgress(vscode_languageserver_protocol_1$
|
|
13418
|
+
this._disposable = this._client.onProgress(vscode_languageserver_protocol_1$9.WorkDoneProgress.type, this._token, value => {
|
|
13444
13419
|
switch (value.kind) {
|
|
13445
13420
|
case 'begin':
|
|
13446
13421
|
this.begin(value);
|
|
@@ -13470,7 +13445,7 @@ class ProgressPart {
|
|
|
13470
13445
|
this._cancellationToken = cancellationToken;
|
|
13471
13446
|
|
|
13472
13447
|
this._cancellationToken.onCancellationRequested(() => {
|
|
13473
|
-
this._client.sendNotification(vscode_languageserver_protocol_1$
|
|
13448
|
+
this._client.sendNotification(vscode_languageserver_protocol_1$9.WorkDoneProgressCancelNotification.type, {
|
|
13474
13449
|
token: this._token
|
|
13475
13450
|
});
|
|
13476
13451
|
});
|
|
@@ -16798,10 +16773,10 @@ Object.defineProperty(typeDefinition, "__esModule", {
|
|
|
16798
16773
|
});
|
|
16799
16774
|
typeDefinition.TypeDefinitionFeature = void 0;
|
|
16800
16775
|
const vscode_1$6 = vscodeCompatibility;
|
|
16801
|
-
const vscode_languageserver_protocol_1$
|
|
16776
|
+
const vscode_languageserver_protocol_1$8 = main$3;
|
|
16802
16777
|
const client_1$6 = client;
|
|
16803
16778
|
|
|
16804
|
-
function ensure$
|
|
16779
|
+
function ensure$7(target, key) {
|
|
16805
16780
|
if (target[key] === void 0) {
|
|
16806
16781
|
target[key] = {};
|
|
16807
16782
|
}
|
|
@@ -16811,12 +16786,12 @@ function ensure$6(target, key) {
|
|
|
16811
16786
|
|
|
16812
16787
|
class TypeDefinitionFeature extends client_1$6.TextDocumentFeature {
|
|
16813
16788
|
constructor(client) {
|
|
16814
|
-
super(client, vscode_languageserver_protocol_1$
|
|
16789
|
+
super(client, vscode_languageserver_protocol_1$8.TypeDefinitionRequest.type);
|
|
16815
16790
|
}
|
|
16816
16791
|
|
|
16817
16792
|
fillClientCapabilities(capabilities) {
|
|
16818
|
-
ensure$
|
|
16819
|
-
let typeDefinitionSupport = ensure$
|
|
16793
|
+
ensure$7(ensure$7(capabilities, 'textDocument'), 'typeDefinition').dynamicRegistration = true;
|
|
16794
|
+
let typeDefinitionSupport = ensure$7(ensure$7(capabilities, 'textDocument'), 'typeDefinition');
|
|
16820
16795
|
typeDefinitionSupport.dynamicRegistration = true;
|
|
16821
16796
|
typeDefinitionSupport.linkSupport = true;
|
|
16822
16797
|
}
|
|
@@ -16840,8 +16815,8 @@ class TypeDefinitionFeature extends client_1$6.TextDocumentFeature {
|
|
|
16840
16815
|
const client = this._client;
|
|
16841
16816
|
|
|
16842
16817
|
const provideTypeDefinition = (document, position, token) => {
|
|
16843
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
16844
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
16818
|
+
return client.sendRequest(vscode_languageserver_protocol_1$8.TypeDefinitionRequest.type, client.code2ProtocolConverter.asTextDocumentPositionParams(document, position), token).then(client.protocol2CodeConverter.asDefinitionResult, error => {
|
|
16819
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$8.TypeDefinitionRequest.type, error, null);
|
|
16845
16820
|
});
|
|
16846
16821
|
};
|
|
16847
16822
|
|
|
@@ -16869,10 +16844,10 @@ Object.defineProperty(implementation, "__esModule", {
|
|
|
16869
16844
|
});
|
|
16870
16845
|
implementation.ImplementationFeature = void 0;
|
|
16871
16846
|
const vscode_1$5 = vscodeCompatibility;
|
|
16872
|
-
const vscode_languageserver_protocol_1$
|
|
16847
|
+
const vscode_languageserver_protocol_1$7 = main$3;
|
|
16873
16848
|
const client_1$5 = client;
|
|
16874
16849
|
|
|
16875
|
-
function ensure$
|
|
16850
|
+
function ensure$6(target, key) {
|
|
16876
16851
|
if (target[key] === void 0) {
|
|
16877
16852
|
target[key] = {};
|
|
16878
16853
|
}
|
|
@@ -16882,11 +16857,11 @@ function ensure$5(target, key) {
|
|
|
16882
16857
|
|
|
16883
16858
|
class ImplementationFeature extends client_1$5.TextDocumentFeature {
|
|
16884
16859
|
constructor(client) {
|
|
16885
|
-
super(client, vscode_languageserver_protocol_1$
|
|
16860
|
+
super(client, vscode_languageserver_protocol_1$7.ImplementationRequest.type);
|
|
16886
16861
|
}
|
|
16887
16862
|
|
|
16888
16863
|
fillClientCapabilities(capabilities) {
|
|
16889
|
-
let implementationSupport = ensure$
|
|
16864
|
+
let implementationSupport = ensure$6(ensure$6(capabilities, 'textDocument'), 'implementation');
|
|
16890
16865
|
implementationSupport.dynamicRegistration = true;
|
|
16891
16866
|
implementationSupport.linkSupport = true;
|
|
16892
16867
|
}
|
|
@@ -16910,8 +16885,8 @@ class ImplementationFeature extends client_1$5.TextDocumentFeature {
|
|
|
16910
16885
|
const client = this._client;
|
|
16911
16886
|
|
|
16912
16887
|
const provideImplementation = (document, position, token) => {
|
|
16913
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
16914
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
16888
|
+
return client.sendRequest(vscode_languageserver_protocol_1$7.ImplementationRequest.type, client.code2ProtocolConverter.asTextDocumentPositionParams(document, position), token).then(client.protocol2CodeConverter.asDefinitionResult, error => {
|
|
16889
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$7.ImplementationRequest.type, error, null);
|
|
16915
16890
|
});
|
|
16916
16891
|
};
|
|
16917
16892
|
|
|
@@ -16939,10 +16914,10 @@ Object.defineProperty(colorProvider, "__esModule", {
|
|
|
16939
16914
|
});
|
|
16940
16915
|
colorProvider.ColorProviderFeature = void 0;
|
|
16941
16916
|
const vscode_1$4 = vscodeCompatibility;
|
|
16942
|
-
const vscode_languageserver_protocol_1$
|
|
16917
|
+
const vscode_languageserver_protocol_1$6 = main$3;
|
|
16943
16918
|
const client_1$4 = client;
|
|
16944
16919
|
|
|
16945
|
-
function ensure$
|
|
16920
|
+
function ensure$5(target, key) {
|
|
16946
16921
|
if (target[key] === void 0) {
|
|
16947
16922
|
target[key] = {};
|
|
16948
16923
|
}
|
|
@@ -16952,11 +16927,11 @@ function ensure$4(target, key) {
|
|
|
16952
16927
|
|
|
16953
16928
|
class ColorProviderFeature extends client_1$4.TextDocumentFeature {
|
|
16954
16929
|
constructor(client) {
|
|
16955
|
-
super(client, vscode_languageserver_protocol_1$
|
|
16930
|
+
super(client, vscode_languageserver_protocol_1$6.DocumentColorRequest.type);
|
|
16956
16931
|
}
|
|
16957
16932
|
|
|
16958
16933
|
fillClientCapabilities(capabilities) {
|
|
16959
|
-
ensure$
|
|
16934
|
+
ensure$5(ensure$5(capabilities, 'textDocument'), 'colorProvider').dynamicRegistration = true;
|
|
16960
16935
|
}
|
|
16961
16936
|
|
|
16962
16937
|
initialize(capabilities, documentSelector) {
|
|
@@ -16983,8 +16958,8 @@ class ColorProviderFeature extends client_1$4.TextDocumentFeature {
|
|
|
16983
16958
|
textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(context.document),
|
|
16984
16959
|
range: client.code2ProtocolConverter.asRange(context.range)
|
|
16985
16960
|
};
|
|
16986
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
16987
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
16961
|
+
return client.sendRequest(vscode_languageserver_protocol_1$6.ColorPresentationRequest.type, requestParams, token).then(this.asColorPresentations.bind(this), error => {
|
|
16962
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$6.ColorPresentationRequest.type, error, null);
|
|
16988
16963
|
});
|
|
16989
16964
|
};
|
|
16990
16965
|
|
|
@@ -16998,8 +16973,8 @@ class ColorProviderFeature extends client_1$4.TextDocumentFeature {
|
|
|
16998
16973
|
const requestParams = {
|
|
16999
16974
|
textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document)
|
|
17000
16975
|
};
|
|
17001
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
17002
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
16976
|
+
return client.sendRequest(vscode_languageserver_protocol_1$6.DocumentColorRequest.type, requestParams, token).then(this.asColorInformations.bind(this), error => {
|
|
16977
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$6.ColorPresentationRequest.type, error, null);
|
|
17003
16978
|
});
|
|
17004
16979
|
};
|
|
17005
16980
|
|
|
@@ -17055,7 +17030,7 @@ Object.defineProperty(workspaceFolders, "__esModule", {
|
|
|
17055
17030
|
workspaceFolders.WorkspaceFoldersFeature = workspaceFolders.arrayDiff = void 0;
|
|
17056
17031
|
const UUID = uuid;
|
|
17057
17032
|
const vscode_1$3 = vscodeCompatibility;
|
|
17058
|
-
const vscode_languageserver_protocol_1$
|
|
17033
|
+
const vscode_languageserver_protocol_1$5 = main$3;
|
|
17059
17034
|
|
|
17060
17035
|
function access(target, key) {
|
|
17061
17036
|
if (target === void 0) {
|
|
@@ -17078,7 +17053,7 @@ class WorkspaceFoldersFeature {
|
|
|
17078
17053
|
}
|
|
17079
17054
|
|
|
17080
17055
|
get registrationType() {
|
|
17081
|
-
return vscode_languageserver_protocol_1$
|
|
17056
|
+
return vscode_languageserver_protocol_1$5.DidChangeWorkspaceFoldersNotification.type;
|
|
17082
17057
|
}
|
|
17083
17058
|
|
|
17084
17059
|
fillInitializeParams(params) {
|
|
@@ -17103,7 +17078,7 @@ class WorkspaceFoldersFeature {
|
|
|
17103
17078
|
|
|
17104
17079
|
initialize(capabilities) {
|
|
17105
17080
|
const client = this._client;
|
|
17106
|
-
client.onRequest(vscode_languageserver_protocol_1$
|
|
17081
|
+
client.onRequest(vscode_languageserver_protocol_1$5.WorkspaceFoldersRequest.type, token => {
|
|
17107
17082
|
const workspaceFolders = () => {
|
|
17108
17083
|
const folders = vscode_1$3.workspace.workspaceFolders;
|
|
17109
17084
|
|
|
@@ -17160,7 +17135,7 @@ class WorkspaceFoldersFeature {
|
|
|
17160
17135
|
}
|
|
17161
17136
|
};
|
|
17162
17137
|
|
|
17163
|
-
this._client.sendNotification(vscode_languageserver_protocol_1$
|
|
17138
|
+
this._client.sendNotification(vscode_languageserver_protocol_1$5.DidChangeWorkspaceFoldersNotification.type, params);
|
|
17164
17139
|
}
|
|
17165
17140
|
|
|
17166
17141
|
register(data) {
|
|
@@ -17228,10 +17203,10 @@ Object.defineProperty(foldingRange, "__esModule", {
|
|
|
17228
17203
|
});
|
|
17229
17204
|
foldingRange.FoldingRangeFeature = void 0;
|
|
17230
17205
|
const vscode_1$2 = vscodeCompatibility;
|
|
17231
|
-
const vscode_languageserver_protocol_1$
|
|
17206
|
+
const vscode_languageserver_protocol_1$4 = main$3;
|
|
17232
17207
|
const client_1$3 = client;
|
|
17233
17208
|
|
|
17234
|
-
function ensure$
|
|
17209
|
+
function ensure$4(target, key) {
|
|
17235
17210
|
if (target[key] === void 0) {
|
|
17236
17211
|
target[key] = {};
|
|
17237
17212
|
}
|
|
@@ -17241,11 +17216,11 @@ function ensure$3(target, key) {
|
|
|
17241
17216
|
|
|
17242
17217
|
class FoldingRangeFeature extends client_1$3.TextDocumentFeature {
|
|
17243
17218
|
constructor(client) {
|
|
17244
|
-
super(client, vscode_languageserver_protocol_1$
|
|
17219
|
+
super(client, vscode_languageserver_protocol_1$4.FoldingRangeRequest.type);
|
|
17245
17220
|
}
|
|
17246
17221
|
|
|
17247
17222
|
fillClientCapabilities(capabilities) {
|
|
17248
|
-
let capability = ensure$
|
|
17223
|
+
let capability = ensure$4(ensure$4(capabilities, 'textDocument'), 'foldingRange');
|
|
17249
17224
|
capability.dynamicRegistration = true;
|
|
17250
17225
|
capability.rangeLimit = 5000;
|
|
17251
17226
|
capability.lineFoldingOnly = true;
|
|
@@ -17273,8 +17248,8 @@ class FoldingRangeFeature extends client_1$3.TextDocumentFeature {
|
|
|
17273
17248
|
const requestParams = {
|
|
17274
17249
|
textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document)
|
|
17275
17250
|
};
|
|
17276
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
17277
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
17251
|
+
return client.sendRequest(vscode_languageserver_protocol_1$4.FoldingRangeRequest.type, requestParams, token).then(FoldingRangeFeature.asFoldingRanges, error => {
|
|
17252
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$4.FoldingRangeRequest.type, error, null);
|
|
17278
17253
|
});
|
|
17279
17254
|
};
|
|
17280
17255
|
|
|
@@ -17288,13 +17263,13 @@ class FoldingRangeFeature extends client_1$3.TextDocumentFeature {
|
|
|
17288
17263
|
static asFoldingRangeKind(kind) {
|
|
17289
17264
|
if (kind) {
|
|
17290
17265
|
switch (kind) {
|
|
17291
|
-
case vscode_languageserver_protocol_1$
|
|
17266
|
+
case vscode_languageserver_protocol_1$4.FoldingRangeKind.Comment:
|
|
17292
17267
|
return vscode_1$2.FoldingRangeKind.Comment;
|
|
17293
17268
|
|
|
17294
|
-
case vscode_languageserver_protocol_1$
|
|
17269
|
+
case vscode_languageserver_protocol_1$4.FoldingRangeKind.Imports:
|
|
17295
17270
|
return vscode_1$2.FoldingRangeKind.Imports;
|
|
17296
17271
|
|
|
17297
|
-
case vscode_languageserver_protocol_1$
|
|
17272
|
+
case vscode_languageserver_protocol_1$4.FoldingRangeKind.Region:
|
|
17298
17273
|
return vscode_1$2.FoldingRangeKind.Region;
|
|
17299
17274
|
}
|
|
17300
17275
|
}
|
|
@@ -17329,10 +17304,10 @@ Object.defineProperty(callHierarchy, "__esModule", {
|
|
|
17329
17304
|
});
|
|
17330
17305
|
callHierarchy.CallHierarchyFeature = void 0;
|
|
17331
17306
|
const vscode_1$1 = vscodeCompatibility;
|
|
17332
|
-
const vscode_languageserver_protocol_1$
|
|
17307
|
+
const vscode_languageserver_protocol_1$3 = main$3;
|
|
17333
17308
|
const client_1$2 = client;
|
|
17334
17309
|
|
|
17335
|
-
function ensure$
|
|
17310
|
+
function ensure$3(target, key) {
|
|
17336
17311
|
if (target[key] === void 0) {
|
|
17337
17312
|
target[key] = {};
|
|
17338
17313
|
}
|
|
@@ -17352,10 +17327,10 @@ class CallHierarchyProvider {
|
|
|
17352
17327
|
|
|
17353
17328
|
const prepareCallHierarchy = (document, position, token) => {
|
|
17354
17329
|
const params = client.code2ProtocolConverter.asTextDocumentPositionParams(document, position);
|
|
17355
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
17330
|
+
return client.sendRequest(vscode_languageserver_protocol_1$3.CallHierarchyPrepareRequest.type, params, token).then(result => {
|
|
17356
17331
|
return client.protocol2CodeConverter.asCallHierarchyItems(result);
|
|
17357
17332
|
}, error => {
|
|
17358
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
17333
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$3.CallHierarchyPrepareRequest.type, error, null);
|
|
17359
17334
|
});
|
|
17360
17335
|
};
|
|
17361
17336
|
|
|
@@ -17370,10 +17345,10 @@ class CallHierarchyProvider {
|
|
|
17370
17345
|
const params = {
|
|
17371
17346
|
item: client.code2ProtocolConverter.asCallHierarchyItem(item)
|
|
17372
17347
|
};
|
|
17373
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
17348
|
+
return client.sendRequest(vscode_languageserver_protocol_1$3.CallHierarchyIncomingCallsRequest.type, params, token).then(result => {
|
|
17374
17349
|
return client.protocol2CodeConverter.asCallHierarchyIncomingCalls(result);
|
|
17375
17350
|
}, error => {
|
|
17376
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
17351
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$3.CallHierarchyIncomingCallsRequest.type, error, null);
|
|
17377
17352
|
});
|
|
17378
17353
|
};
|
|
17379
17354
|
|
|
@@ -17388,10 +17363,10 @@ class CallHierarchyProvider {
|
|
|
17388
17363
|
const params = {
|
|
17389
17364
|
item: client.code2ProtocolConverter.asCallHierarchyItem(item)
|
|
17390
17365
|
};
|
|
17391
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
17366
|
+
return client.sendRequest(vscode_languageserver_protocol_1$3.CallHierarchyOutgoingCallsRequest.type, params, token).then(result => {
|
|
17392
17367
|
return client.protocol2CodeConverter.asCallHierarchyOutgoingCalls(result);
|
|
17393
17368
|
}, error => {
|
|
17394
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
17369
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$3.CallHierarchyOutgoingCallsRequest.type, error, null);
|
|
17395
17370
|
});
|
|
17396
17371
|
};
|
|
17397
17372
|
|
|
@@ -17402,12 +17377,12 @@ class CallHierarchyProvider {
|
|
|
17402
17377
|
|
|
17403
17378
|
class CallHierarchyFeature extends client_1$2.TextDocumentFeature {
|
|
17404
17379
|
constructor(client) {
|
|
17405
|
-
super(client, vscode_languageserver_protocol_1$
|
|
17380
|
+
super(client, vscode_languageserver_protocol_1$3.CallHierarchyPrepareRequest.type);
|
|
17406
17381
|
}
|
|
17407
17382
|
|
|
17408
17383
|
fillClientCapabilities(cap) {
|
|
17409
17384
|
const capabilities = cap;
|
|
17410
|
-
const capability = ensure$
|
|
17385
|
+
const capability = ensure$3(ensure$3(capabilities, 'textDocument'), 'callHierarchy');
|
|
17411
17386
|
capability.dynamicRegistration = true;
|
|
17412
17387
|
}
|
|
17413
17388
|
|
|
@@ -17434,6 +17409,65 @@ class CallHierarchyFeature extends client_1$2.TextDocumentFeature {
|
|
|
17434
17409
|
|
|
17435
17410
|
callHierarchy.CallHierarchyFeature = CallHierarchyFeature;
|
|
17436
17411
|
|
|
17412
|
+
var progress = {};
|
|
17413
|
+
|
|
17414
|
+
/* --------------------------------------------------------------------------------------------
|
|
17415
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
17416
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
17417
|
+
* ------------------------------------------------------------------------------------------ */
|
|
17418
|
+
|
|
17419
|
+
|
|
17420
|
+
Object.defineProperty(progress, "__esModule", {
|
|
17421
|
+
value: true
|
|
17422
|
+
});
|
|
17423
|
+
progress.ProgressFeature = void 0;
|
|
17424
|
+
const vscode_languageserver_protocol_1$2 = main$3;
|
|
17425
|
+
const progressPart_1 = progressPart;
|
|
17426
|
+
|
|
17427
|
+
function ensure$2(target, key) {
|
|
17428
|
+
if (target[key] === void 0) {
|
|
17429
|
+
target[key] = Object.create(null);
|
|
17430
|
+
}
|
|
17431
|
+
|
|
17432
|
+
return target[key];
|
|
17433
|
+
}
|
|
17434
|
+
|
|
17435
|
+
class ProgressFeature {
|
|
17436
|
+
constructor(_client) {
|
|
17437
|
+
this._client = _client;
|
|
17438
|
+
this.activeParts = new Set();
|
|
17439
|
+
}
|
|
17440
|
+
|
|
17441
|
+
fillClientCapabilities(capabilities) {
|
|
17442
|
+
ensure$2(capabilities, 'window').workDoneProgress = true;
|
|
17443
|
+
}
|
|
17444
|
+
|
|
17445
|
+
initialize() {
|
|
17446
|
+
const client = this._client;
|
|
17447
|
+
|
|
17448
|
+
const deleteHandler = part => {
|
|
17449
|
+
this.activeParts.delete(part);
|
|
17450
|
+
};
|
|
17451
|
+
|
|
17452
|
+
const createHandler = params => {
|
|
17453
|
+
this.activeParts.add(new progressPart_1.ProgressPart(this._client, params.token, deleteHandler));
|
|
17454
|
+
};
|
|
17455
|
+
|
|
17456
|
+
client.onRequest(vscode_languageserver_protocol_1$2.WorkDoneProgressCreateRequest.type, createHandler);
|
|
17457
|
+
}
|
|
17458
|
+
|
|
17459
|
+
dispose() {
|
|
17460
|
+
for (const part of this.activeParts) {
|
|
17461
|
+
part.done();
|
|
17462
|
+
}
|
|
17463
|
+
|
|
17464
|
+
this.activeParts.clear();
|
|
17465
|
+
}
|
|
17466
|
+
|
|
17467
|
+
}
|
|
17468
|
+
|
|
17469
|
+
progress.ProgressFeature = ProgressFeature;
|
|
17470
|
+
|
|
17437
17471
|
var semanticTokens = {};
|
|
17438
17472
|
|
|
17439
17473
|
/* --------------------------------------------------------------------------------------------
|
|
@@ -17685,6 +17719,7 @@ const colorProvider_1 = colorProvider;
|
|
|
17685
17719
|
const workspaceFolders_1 = workspaceFolders;
|
|
17686
17720
|
const foldingRange_1 = foldingRange;
|
|
17687
17721
|
const callHierarchy_1 = callHierarchy;
|
|
17722
|
+
const progress_1 = progress;
|
|
17688
17723
|
const semanticTokens_1 = semanticTokens;
|
|
17689
17724
|
const declaration_1 = declaration;
|
|
17690
17725
|
__exportStar(client, exports);
|
|
@@ -17752,6 +17787,7 @@ class MonacoLanguageClient extends client_1.BaseLanguageClient {
|
|
|
17752
17787
|
this.registerFeature(new declaration_1.DeclarationFeature(this));
|
|
17753
17788
|
this.registerFeature(new semanticTokens_1.SemanticTokensFeature(this));
|
|
17754
17789
|
this.registerFeature(new callHierarchy_1.CallHierarchyFeature(this));
|
|
17790
|
+
this.registerFeature(new progress_1.ProgressFeature(this));
|
|
17755
17791
|
const features = this['_features'];
|
|
17756
17792
|
for (const feature of features) {
|
|
17757
17793
|
if (feature instanceof colorProvider_1.ColorProviderFeature) {
|
|
@@ -18540,6 +18576,7 @@ class MonacoLanguages {
|
|
|
18540
18576
|
getLegend() {
|
|
18541
18577
|
return legend;
|
|
18542
18578
|
},
|
|
18579
|
+
onDidChange: provider.onDidChange,
|
|
18543
18580
|
provideDocumentSemanticTokens: (model, lastResultId, token) => __awaiter(this, void 0, void 0, function* () {
|
|
18544
18581
|
if (!this.matchModel(selector, MonacoModelIdentifier.fromModel(model))) {
|
|
18545
18582
|
return undefined;
|
|
@@ -18608,6 +18645,9 @@ class MonacoLanguages {
|
|
|
18608
18645
|
else {
|
|
18609
18646
|
languages.add(this.matchLanguageByFilter(selector));
|
|
18610
18647
|
}
|
|
18648
|
+
if (languages.has('*')) {
|
|
18649
|
+
return new Set(['*']);
|
|
18650
|
+
}
|
|
18611
18651
|
return languages;
|
|
18612
18652
|
}
|
|
18613
18653
|
matchLanguageByFilter(selector) {
|
|
@@ -18629,7 +18669,7 @@ var monacoWorkspace = {};
|
|
|
18629
18669
|
Object.defineProperty(monacoWorkspace, "__esModule", { value: true });
|
|
18630
18670
|
monacoWorkspace.MonacoWorkspace = void 0;
|
|
18631
18671
|
const services_1 = services$1;
|
|
18632
|
-
const vscode_languageserver_textdocument_1 = require$$1
|
|
18672
|
+
const vscode_languageserver_textdocument_1 = require$$1;
|
|
18633
18673
|
class MonacoWorkspace {
|
|
18634
18674
|
constructor(_monaco, p2m, m2p, _rootUri = null) {
|
|
18635
18675
|
this._monaco = _monaco;
|
|
@@ -19989,14 +20029,6 @@ delay$2.exports.default = delay;
|
|
|
19989
20029
|
|
|
19990
20030
|
var delay$1 = delay$2.exports;
|
|
19991
20031
|
|
|
19992
|
-
var sweetalert_min = {exports: {}};
|
|
19993
|
-
|
|
19994
|
-
(function (module, exports) {
|
|
19995
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o});},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o="swal-button";e.CLASS_NAMES={MODAL:"swal-modal",OVERLAY:"swal-overlay",SHOW_MODAL:"swal-overlay--show-modal",MODAL_TITLE:"swal-title",MODAL_TEXT:"swal-text",ICON:"swal-icon",ICON_CUSTOM:"swal-icon--custom",CONTENT:"swal-content",FOOTER:"swal-footer",BUTTON_CONTAINER:"swal-button-container",BUTTON:o,CONFIRM_BUTTON:o+"--confirm",CANCEL_BUTTON:o+"--cancel",DANGER_BUTTON:o+"--danger",BUTTON_LOADING:o+"--loading",BUTTON_LOADER:o+"__loader"},e.default=e.CLASS_NAMES;},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getNode=function(t){var e="."+t;return document.querySelector(e)},e.stringToNode=function(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.firstChild},e.insertAfter=function(t,e){var n=e.nextSibling;e.parentNode.insertBefore(t,n);},e.removeNode=function(t){t.parentElement.removeChild(t);},e.throwErr=function(t){throw t=t.replace(/ +(?= )/g,""),"SweetAlert: "+(t=t.trim())},e.isPlainObject=function(t){if("[object Object]"!==Object.prototype.toString.call(t))return !1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype},e.ordinalSuffixOf=function(t){var e=t%10,n=t%100;return 1===e&&11!==n?t+"st":2===e&&12!==n?t+"nd":3===e&&13!==n?t+"rd":t+"th"};},function(t,e,n){function o(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);}Object.defineProperty(e,"__esModule",{value:!0}),o(n(25));var r=n(26);e.overlayMarkup=r.default,o(n(27)),o(n(28)),o(n(29));var i=n(0),a=i.default.MODAL_TITLE,s=i.default.MODAL_TEXT,c=i.default.ICON,l=i.default.FOOTER;e.iconMarkup='\n <div class="'+c+'"></div>',e.titleMarkup='\n <div class="'+a+'"></div>\n',e.textMarkup='\n <div class="'+s+'"></div>',e.footerMarkup='\n <div class="'+l+'"></div>\n';},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1);e.CONFIRM_KEY="confirm",e.CANCEL_KEY="cancel";var r={visible:!0,text:null,value:null,className:"",closeModal:!0},i=Object.assign({},r,{visible:!1,text:"Cancel",value:null}),a=Object.assign({},r,{text:"OK",value:!0});e.defaultButtonList={cancel:i,confirm:a};var s=function(t){switch(t){case e.CONFIRM_KEY:return a;case e.CANCEL_KEY:return i;default:var n=t.charAt(0).toUpperCase()+t.slice(1);return Object.assign({},r,{text:n,value:t})}},c=function(t,e){var n=s(t);return !0===e?Object.assign({},n,{visible:!0}):"string"==typeof e?Object.assign({},n,{visible:!0,text:e}):o.isPlainObject(e)?Object.assign({visible:!0},n,e):Object.assign({},n,{visible:!1})},l=function(t){for(var e={},n=0,o=Object.keys(t);n<o.length;n++){var r=o[n],a=t[r],s=c(r,a);e[r]=s;}return e.cancel||(e.cancel=i),e},u=function(t){var n={};switch(t.length){case 1:n[e.CANCEL_KEY]=Object.assign({},i,{visible:!1});break;case 2:n[e.CANCEL_KEY]=c(e.CANCEL_KEY,t[0]),n[e.CONFIRM_KEY]=c(e.CONFIRM_KEY,t[1]);break;default:o.throwErr("Invalid number of 'buttons' in array ("+t.length+").\n If you want more than 2 buttons, you need to use an object!");}return n};e.getButtonListOpts=function(t){var n=e.defaultButtonList;return "string"==typeof t?n[e.CONFIRM_KEY]=c(e.CONFIRM_KEY,t):Array.isArray(t)?n=u(t):o.isPlainObject(t)?n=l(t):!0===t?n=u([!0,!0]):!1===t?n=u([!1,!1]):void 0===t&&(n=e.defaultButtonList),n};},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(2),i=n(0),a=i.default.MODAL,s=i.default.OVERLAY,c=n(30),l=n(31),u=n(32),f=n(33);e.injectElIntoModal=function(t){var e=o.getNode(a),n=o.stringToNode(t);return e.appendChild(n),n};var d=function(t){t.className=a,t.textContent="";},p=function(t,e){d(t);var n=e.className;n&&t.classList.add(n);};e.initModalContent=function(t){var e=o.getNode(a);p(e,t),c.default(t.icon),l.initTitle(t.title),l.initText(t.text),f.default(t.content),u.default(t.buttons,t.dangerMode);};var m=function(){var t=o.getNode(s),e=o.stringToNode(r.modalMarkup);t.appendChild(e);};e.default=m;},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r={isOpen:!1,promise:null,actions:{},timer:null},i=Object.assign({},r);e.resetState=function(){i=Object.assign({},r);},e.setActionValue=function(t){if("string"==typeof t)return a(o.CONFIRM_KEY,t);for(var e in t)a(e,t[e]);};var a=function(t,e){i.actions[t]||(i.actions[t]={}),Object.assign(i.actions[t],{value:e});};e.setActionOptionsFor=function(t,e){var n=(void 0===e?{}:e).closeModal,o=void 0===n||n;Object.assign(i.actions[t],{closeModal:o});},e.default=i;},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(3),i=n(0),a=i.default.OVERLAY,s=i.default.SHOW_MODAL,c=i.default.BUTTON,l=i.default.BUTTON_LOADING,u=n(5);e.openModal=function(){o.getNode(a).classList.add(s),u.default.isOpen=!0;};var f=function(){o.getNode(a).classList.remove(s),u.default.isOpen=!1;};e.onAction=function(t){void 0===t&&(t=r.CANCEL_KEY);var e=u.default.actions[t],n=e.value;if(!1===e.closeModal){var i=c+"--"+t;o.getNode(i).classList.add(l);}else f();u.default.promise.resolve(n);},e.getState=function(){var t=Object.assign({},u.default);return delete t.promise,delete t.timer,t},e.stopLoading=function(){for(var t=document.querySelectorAll("."+c),e=0;e<t.length;e++){t[e].classList.remove(l);}};},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this");}catch(t){"object"==typeof window&&(n=window);}t.exports=n;},function(t,e,n){(function(e){t.exports=e.sweetAlert=n(9);}).call(e,n(7));},function(t,e,n){(function(e){t.exports=e.swal=n(10);}).call(e,n(7));},function(t,e,n){"undefined"!=typeof window&&n(11),n(16);var o=n(23).default;t.exports=o;},function(t,e,n){var o=n(12);"string"==typeof o&&(o=[[t.i,o,""]]);var r={insertAt:"top"};r.transform=void 0;n(14)(o,r);o.locals&&(t.exports=o.locals);},function(t,e,n){e=t.exports=n(13)(void 0),e.push([t.i,'.swal-icon--error{border-color:#f27474;-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}.swal-icon--error__x-mark{position:relative;display:block;-webkit-animation:animateXMark .5s;animation:animateXMark .5s}.swal-icon--error__line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal-icon--error__line--left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal-icon--error__line--right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.swal-icon--warning{border-color:#f8bb86;-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}.swal-icon--warning__body{width:5px;height:47px;top:10px;border-radius:2px;margin-left:-2px}.swal-icon--warning__body,.swal-icon--warning__dot{position:absolute;left:50%;background-color:#f8bb86}.swal-icon--warning__dot{width:7px;height:7px;border-radius:50%;margin-left:-4px;bottom:-11px}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.swal-icon--success{border-color:#a5dc86}.swal-icon--success:after,.swal-icon--success:before{content:"";border-radius:50%;position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal-icon--success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal-icon--success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px;-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}.swal-icon--success__ring{width:80px;height:80px;border:4px solid hsla(98,55%,69%,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal-icon--success__hide-corners{width:5px;height:90px;background-color:#fff;padding:1px;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal-icon--success__line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal-icon--success__line--tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.swal-icon--success__line--long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}.swal-icon--info{border-color:#c9dae1}.swal-icon--info:before{width:5px;height:29px;bottom:17px;border-radius:2px;margin-left:-2px}.swal-icon--info:after,.swal-icon--info:before{content:"";position:absolute;left:50%;background-color:#c9dae1}.swal-icon--info:after{width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px}.swal-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.swal-icon:first-child{margin-top:32px}.swal-icon--custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.swal-icon img{max-width:100%;max-height:100%}.swal-title{color:rgba(0,0,0,.65);font-weight:600;text-transform:none;position:relative;display:block;padding:13px 16px;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.swal-title:first-child{margin-top:26px}.swal-title:not(:first-child){padding-bottom:0}.swal-title:not(:last-child){margin-bottom:13px}.swal-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:left;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:rgba(0,0,0,.64);max-width:calc(100% - 20px);overflow-wrap:break-word;box-sizing:border-box}.swal-text:first-child{margin-top:45px}.swal-text:last-child{margin-bottom:45px}.swal-footer{text-align:right;padding-top:13px;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.swal-button-container{margin:5px;display:inline-block;position:relative}.swal-button{background-color:#7cd1f9;color:#fff;border:none;box-shadow:none;border-radius:5px;font-weight:600;font-size:14px;padding:10px 24px;margin:0;cursor:pointer}.swal-button:not([disabled]):hover{background-color:#78cbf2}.swal-button:active{background-color:#70bce0}.swal-button:focus{outline:none;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(43,114,165,.29)}.swal-button[disabled]{opacity:.5;cursor:default}.swal-button::-moz-focus-inner{border:0}.swal-button--cancel{color:#555;background-color:#efefef}.swal-button--cancel:not([disabled]):hover{background-color:#e8e8e8}.swal-button--cancel:active{background-color:#d7d7d7}.swal-button--cancel:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(116,136,150,.29)}.swal-button--danger{background-color:#e64942}.swal-button--danger:not([disabled]):hover{background-color:#df4740}.swal-button--danger:active{background-color:#cf423b}.swal-button--danger:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(165,43,43,.29)}.swal-content{padding:0 20px;margin-top:20px;font-size:medium}.swal-content:last-child{margin-bottom:20px}.swal-content__input,.swal-content__textarea{-webkit-appearance:none;background-color:#fff;border:none;font-size:14px;display:block;box-sizing:border-box;width:100%;border:1px solid rgba(0,0,0,.14);padding:10px 13px;border-radius:2px;transition:border-color .2s}.swal-content__input:focus,.swal-content__textarea:focus{outline:none;border-color:#6db8ff}.swal-content__textarea{resize:vertical}.swal-button--loading{color:transparent}.swal-button--loading~.swal-button__loader{opacity:1}.swal-button__loader{position:absolute;height:auto;width:43px;z-index:2;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);text-align:center;pointer-events:none;opacity:0}.swal-button__loader div{display:inline-block;float:none;vertical-align:baseline;width:9px;height:9px;padding:0;border:none;margin:2px;opacity:.4;border-radius:7px;background-color:hsla(0,0%,100%,.9);transition:background .2s;-webkit-animation:swal-loading-anim 1s infinite;animation:swal-loading-anim 1s infinite}.swal-button__loader div:nth-child(3n+2){-webkit-animation-delay:.15s;animation-delay:.15s}.swal-button__loader div:nth-child(3n+3){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}.swal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center;font-size:0;overflow-y:auto;background-color:rgba(0,0,0,.4);z-index:10000;pointer-events:none;opacity:0;transition:opacity .3s}.swal-overlay:before{content:" ";display:inline-block;vertical-align:middle;height:100%}.swal-overlay--show-modal{opacity:1;pointer-events:auto}.swal-overlay--show-modal .swal-modal{opacity:1;pointer-events:auto;box-sizing:border-box;-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s;will-change:transform}.swal-modal{width:478px;opacity:0;pointer-events:none;background-color:#fff;text-align:center;border-radius:5px;position:static;margin:20px auto;display:inline-block;vertical-align:middle;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;z-index:10001;transition:opacity .2s,-webkit-transform .3s;transition:transform .3s,opacity .2s;transition:transform .3s,opacity .2s,-webkit-transform .3s}@media (max-width:500px){.swal-modal{width:calc(100% - 20px)}}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}',""]);},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=o(r);return [n].concat(r.sources.map(function(t){return "/*# sourceURL="+r.sourceRoot+t+" */"})).concat([i]).join("\n")}return [n].join("\n")}function o(t){return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o=n(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0);}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a));}},e};},function(t,e,n){function o(t,e){for(var n=0;n<t.length;n++){var o=t[n],r=m[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(u(o.parts[i],e));}else {for(var a=[],i=0;i<o.parts.length;i++)a.push(u(o.parts[i],e));m[o.id]={id:o.id,refs:1,parts:a};}}}function r(t,e){for(var n=[],o={},r=0;r<t.length;r++){var i=t[r],a=e.base?i[0]+e.base:i[0],s=i[1],c=i[2],l=i[3],u={css:s,media:c,sourceMap:l};o[a]?o[a].parts.push(u):n.push(o[a]={id:a,parts:[u]});}return n}function i(t,e){var n=v(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=w[w.length-1];if("top"===t.insertAt)o?o.nextSibling?n.insertBefore(e,o.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),w.push(e);else {if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e);}}function a(t){if(null===t.parentNode)return !1;t.parentNode.removeChild(t);var e=w.indexOf(t);e>=0&&w.splice(e,1);}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",l(e,t.attrs),i(t,e),e}function c(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",l(e,t.attrs),i(t,e),e}function l(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n]);});}function u(t,e){var n,o,r,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i;}if(e.singleton){var l=h++;n=g||(g=s(e)),o=f.bind(null,n,l,!1),r=f.bind(null,n,l,!0);}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(e),o=p.bind(null,n,e),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href);}):(n=s(e),o=d.bind(null,n),r=function(){a(n);});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e);}else r();}}function f(t,e,n,o){var r=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=x(e,r);else {var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i);}}function d(t,e){var n=e.css,o=e.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=n;else {for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n));}}function p(t,e,n){var o=n.css,r=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||i)&&(o=y(o)),r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([o],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s);}var m={},b=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),v=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),g=null,h=0,w=[],y=n(15);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=b()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=r(t,e);return o(n,e),function(t){for(var i=[],a=0;a<n.length;a++){var s=n[a],c=m[s.id];c.refs--,i.push(c);}if(t){o(r(t,e),e);}for(var a=0;a<i.length;a++){var c=i[a];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete m[c.id];}}}};var x=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,o=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r))return t;var i;return i=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:o+r.replace(/^\.\//,""),"url("+JSON.stringify(i)+")"})};},function(t,e,n){var o=n(17);"undefined"==typeof window||window.Promise||(window.Promise=o),n(21),String.prototype.includes||(String.prototype.includes=function(t,e){return "number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),o=n.length>>>0;if(0===o)return !1;for(var r=0|e,i=Math.max(r>=0?r:o-Math.abs(r),0);i<o;){if(function(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}(n[i],t))return !0;i++;}return !1}}),"undefined"!=typeof window&&function(t){t.forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this);}});});}([Element.prototype,CharacterData.prototype,DocumentType.prototype]);},function(t,e,n){(function(e){!function(n){function o(){}function r(t,e){return function(){t.apply(e,arguments);}}function i(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(t,this);}function a(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,i._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?s:c)(e.promise,t._value);var o;try{o=n(t._value);}catch(t){return void c(e.promise,t)}s(e.promise,o);});}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void f(r(n,e),t)}t._state=1,t._value=e,l(t);}catch(e){c(t,e);}}function c(t,e){t._state=2,t._value=e,l(t);}function l(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value);});for(var e=0,n=t._deferreds.length;e<n;e++)a(t,t._deferreds[e]);t._deferreds=null;}function u(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n;}function f(t,e){var n=!1;try{t(function(t){n||(n=!0,s(e,t));},function(t){n||(n=!0,c(e,t));});}catch(t){if(n)return;n=!0,c(e,t);}}var d=setTimeout;i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var n=new this.constructor(o);return a(this,new u(t,e,n)),n},i.all=function(t){var e=Array.prototype.slice.call(t);return new i(function(t,n){function o(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){o(i,t);},n)}e[i]=a,0==--r&&t(e);}catch(t){n(t);}}if(0===e.length)return t([]);for(var r=e.length,i=0;i<e.length;i++)o(i,e[i]);})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t);})},i.reject=function(t){return new i(function(e,n){n(t);})},i.race=function(t){return new i(function(e,n){for(var o=0,r=t.length;o<r;o++)t[o].then(e,n);})},i._immediateFn="function"==typeof e&&function(t){e(t);}||function(t){d(t,0);},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t);},i._setImmediateFn=function(t){i._immediateFn=t;},i._setUnhandledRejectionFn=function(t){i._unhandledRejectionFn=t;},void 0!==t&&t.exports?t.exports=i:n.Promise||(n.Promise=i);}(this);}).call(e,n(18).setImmediate);},function(t,e,n){function o(t,e){this._id=t,this._clearFn=e;}var r=Function.prototype.apply;e.setTimeout=function(){return new o(r.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close();},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id);},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e;},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1;},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout();},e));},n(19),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate;},function(t,e,n){(function(t,e){!function(t,n){function o(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return l[c]=o,s(c),c++}function r(t){delete l[t];}function i(t){var e=t.callback,o=t.args;switch(o.length){case 0:e();break;case 1:e(o[0]);break;case 2:e(o[0],o[1]);break;case 3:e(o[0],o[1],o[2]);break;default:e.apply(n,o);}}function a(t){if(u)setTimeout(a,0,t);else {var e=l[t];if(e){u=!0;try{i(e);}finally{r(t),u=!1;}}}}if(!t.setImmediate){var s,c=1,l={},u=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(t);});};}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1;},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length));};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*");};}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data);},s=function(e){t.port2.postMessage(e);};}():f&&"onreadystatechange"in f.createElement("script")?function(){var t=f.documentElement;s=function(e){var n=f.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null;},t.appendChild(n);};}():function(){s=function(t){setTimeout(a,0,t);};}(),d.setImmediate=o,d.clearImmediate=r;}}("undefined"==typeof self?void 0===t?this:t:self);}).call(e,n(7),n(20));},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){b&&p&&(b=!1,p.length?m=p.concat(m):v=-1,m.length&&s());}function s(){if(!b){var t=r(a);b=!0;for(var e=m.length;e;){for(p=m,m=[];++v<e;)p&&p[v].run();v=-1,e=m.length;}p=null,b=!1,i(t);}}function c(t,e){this.fun=t,this.array=e;}function l(){}var u,f,d=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n;}catch(t){u=n;}try{f="function"==typeof clearTimeout?clearTimeout:o;}catch(t){f=o;}}();var p,m=[],b=!1,v=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];m.push(new c(t,e)),1!==m.length||b||r(s);},c.prototype.run=function(){this.fun.apply(null,this.array);},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(t){return []},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return "/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0};},function(t,e,n){n(22).polyfill();},function(t,e,n){function o(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=1;o<arguments.length;o++){var r=arguments[o];if(void 0!==r&&null!==r)for(var i=Object.keys(Object(r)),a=0,s=i.length;a<s;a++){var c=i[a],l=Object.getOwnPropertyDescriptor(r,c);void 0!==l&&l.enumerable&&(n[c]=r[c]);}}return n}function r(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:o});}t.exports={assign:o,polyfill:r};},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(24),r=n(6),i=n(5),a=n(36),s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if("undefined"!=typeof window){var n=a.getOpts.apply(void 0,t);return new Promise(function(t,e){i.default.promise={resolve:t,reject:e},o.default(n),setTimeout(function(){r.openModal();});})}};s.close=r.onAction,s.getState=r.getState,s.setActionValue=i.setActionValue,s.stopLoading=r.stopLoading,s.setDefaults=a.setDefaults,e.default=s;},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=r.default.MODAL,a=n(4),s=n(34),c=n(35),l=n(1);e.init=function(t){o.getNode(i)||(document.body||l.throwErr("You can only use SweetAlert AFTER the DOM has loaded!"),s.default(),a.default()),a.initModalContent(t),c.default(t);},e.default=e.init;},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=o.default.MODAL;e.modalMarkup='\n <div class="'+r+'" role="dialog" aria-modal="true"></div>',e.default=e.modalMarkup;},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=o.default.OVERLAY,i='<div \n class="'+r+'"\n tabIndex="-1">\n </div>';e.default=i;},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=o.default.ICON;e.errorIconMarkup=function(){var t=r+"--error",e=t+"__line";return '\n <div class="'+t+'__x-mark">\n <span class="'+e+" "+e+'--left"></span>\n <span class="'+e+" "+e+'--right"></span>\n </div>\n '},e.warningIconMarkup=function(){var t=r+"--warning";return '\n <span class="'+t+'__body">\n <span class="'+t+'__dot"></span>\n </span>\n '},e.successIconMarkup=function(){var t=r+"--success";return '\n <span class="'+t+"__line "+t+'__line--long"></span>\n <span class="'+t+"__line "+t+'__line--tip"></span>\n\n <div class="'+t+'__ring"></div>\n <div class="'+t+'__hide-corners"></div>\n '};},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=o.default.CONTENT;e.contentMarkup='\n <div class="'+r+'">\n\n </div>\n';},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=o.default.BUTTON_CONTAINER,i=o.default.BUTTON,a=o.default.BUTTON_LOADER;e.buttonMarkup='\n <div class="'+r+'">\n\n <button\n class="'+i+'"\n ></button>\n\n <div class="'+a+'">\n <div></div>\n <div></div>\n <div></div>\n </div>\n\n </div>\n';},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),r=n(2),i=n(0),a=i.default.ICON,s=i.default.ICON_CUSTOM,c=["error","warning","success","info"],l={error:r.errorIconMarkup(),warning:r.warningIconMarkup(),success:r.successIconMarkup()},u=function(t,e){var n=a+"--"+t;e.classList.add(n);var o=l[t];o&&(e.innerHTML=o);},f=function(t,e){e.classList.add(s);var n=document.createElement("img");n.src=t,e.appendChild(n);},d=function(t){if(t){var e=o.injectElIntoModal(r.iconMarkup);c.includes(t)?u(t,e):f(t,e);}};e.default=d;},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(4),i=function(t){navigator.userAgent.includes("AppleWebKit")&&(t.style.display="none",t.offsetHeight,t.style.display="");};e.initTitle=function(t){if(t){var e=r.injectElIntoModal(o.titleMarkup);e.textContent=t,i(e);}},e.initText=function(t){if(t){var e=document.createDocumentFragment();t.split("\n").forEach(function(t,n,o){e.appendChild(document.createTextNode(t)),n<o.length-1&&e.appendChild(document.createElement("br"));});var n=r.injectElIntoModal(o.textMarkup);n.appendChild(e),i(n);}};},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(4),i=n(0),a=i.default.BUTTON,s=i.default.DANGER_BUTTON,c=n(3),l=n(2),u=n(6),f=n(5),d=function(t,e,n){var r=e.text,i=e.value,d=e.className,p=e.closeModal,m=o.stringToNode(l.buttonMarkup),b=m.querySelector("."+a),v=a+"--"+t;if(b.classList.add(v),d){(Array.isArray(d)?d:d.split(" ")).filter(function(t){return t.length>0}).forEach(function(t){b.classList.add(t);});}n&&t===c.CONFIRM_KEY&&b.classList.add(s),b.textContent=r;var g={};return g[t]=i,f.setActionValue(g),f.setActionOptionsFor(t,{closeModal:p}),b.addEventListener("click",function(){return u.onAction(t)}),m},p=function(t,e){var n=r.injectElIntoModal(l.footerMarkup);for(var o in t){var i=t[o],a=d(o,i,e);i.visible&&n.appendChild(a);}0===n.children.length&&n.remove();};e.default=p;},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(4),i=n(2),a=n(5),s=n(6),c=n(0),l=c.default.CONTENT,u=function(t){t.addEventListener("input",function(t){var e=t.target,n=e.value;a.setActionValue(n);}),t.addEventListener("keyup",function(t){if("Enter"===t.key)return s.onAction(o.CONFIRM_KEY)}),setTimeout(function(){t.focus(),a.setActionValue("");},0);},f=function(t,e,n){var o=document.createElement(e),r=l+"__"+e;o.classList.add(r);for(var i in n){var a=n[i];o[i]=a;}"input"===e&&u(o),t.appendChild(o);},d=function(t){if(t){var e=r.injectElIntoModal(i.contentMarkup),n=t.element,o=t.attributes;"string"==typeof n?f(e,n,o):e.appendChild(n);}};e.default=d;},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(2),i=function(){var t=o.stringToNode(r.overlayMarkup);document.body.appendChild(t);};e.default=i;},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),r=n(6),i=n(1),a=n(3),s=n(0),c=s.default.MODAL,l=s.default.BUTTON,u=s.default.OVERLAY,f=function(t){t.preventDefault(),v();},d=function(t){t.preventDefault(),g();},p=function(t){if(o.default.isOpen)switch(t.key){case"Escape":return r.onAction(a.CANCEL_KEY)}},m=function(t){if(o.default.isOpen)switch(t.key){case"Tab":return f(t)}},b=function(t){if(o.default.isOpen)return "Tab"===t.key&&t.shiftKey?d(t):void 0},v=function(){var t=i.getNode(l);t&&(t.tabIndex=0,t.focus());},g=function(){var t=i.getNode(c),e=t.querySelectorAll("."+l),n=e.length-1,o=e[n];o&&o.focus();},h=function(t){t[t.length-1].addEventListener("keydown",m);},w=function(t){t[0].addEventListener("keydown",b);},y=function(){var t=i.getNode(c),e=t.querySelectorAll("."+l);e.length&&(h(e),w(e));},x=function(t){if(i.getNode(u)===t.target)return r.onAction(a.CANCEL_KEY)},_=function(t){var e=i.getNode(u);e.removeEventListener("click",x),t&&e.addEventListener("click",x);},k=function(t){o.default.timer&&clearTimeout(o.default.timer),t&&(o.default.timer=window.setTimeout(function(){return r.onAction(a.CANCEL_KEY)},t));},O=function(t){t.closeOnEsc?document.addEventListener("keyup",p):document.removeEventListener("keyup",p),t.dangerMode?v():g(),y(),_(t.closeOnClickOutside),k(t.timer);};e.default=O;},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(3),i=n(37),a=n(38),s={title:null,text:null,icon:null,buttons:r.defaultButtonList,content:null,className:null,closeOnClickOutside:!0,closeOnEsc:!0,dangerMode:!1,timer:null},c=Object.assign({},s);e.setDefaults=function(t){c=Object.assign({},s,t);};var l=function(t){var e=t&&t.button,n=t&&t.buttons;return void 0!==e&&void 0!==n&&o.throwErr("Cannot set both 'button' and 'buttons' options!"),void 0!==e?{confirm:e}:n},u=function(t){return o.ordinalSuffixOf(t+1)},f=function(t,e){o.throwErr(u(e)+" argument ('"+t+"') is invalid");},d=function(t,e){var n=t+1,r=e[n];o.isPlainObject(r)||void 0===r||o.throwErr("Expected "+u(n)+" argument ('"+r+"') to be a plain object");},p=function(t,e){var n=t+1,r=e[n];void 0!==r&&o.throwErr("Unexpected "+u(n)+" argument ("+r+")");},m=function(t,e,n,r){var i=typeof e,a="string"===i,s=e instanceof Element;if(a){if(0===n)return {text:e};if(1===n)return {text:e,title:r[0]};if(2===n)return d(n,r),{icon:e};f(e,n);}else {if(s&&0===n)return d(n,r),{content:e};if(o.isPlainObject(e))return p(n,r),e;f(e,n);}};e.getOpts=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n={};t.forEach(function(e,o){var r=m(0,e,o,t);Object.assign(n,r);});var o=l(n);n.buttons=r.getButtonListOpts(o),delete n.button,n.content=i.getContentOpts(n.content);var u=Object.assign({},s,c,n);return Object.keys(u).forEach(function(t){a.DEPRECATED_OPTS[t]&&a.logDeprecation(t);}),u};},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r={element:"input",attributes:{placeholder:""}};e.getContentOpts=function(t){var e={};return o.isPlainObject(t)?Object.assign(e,t):t instanceof Element?{element:t}:"input"===t?r:null};},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.logDeprecation=function(t){var n=e.DEPRECATED_OPTS[t],o=n.onlyRename,r=n.replacement,i=n.subOption,a=n.link,s=o?"renamed":"deprecated",c='SweetAlert warning: "'+t+'" option has been '+s+".";if(r){c+=" Please use"+(i?' "'+i+'" in ':" ")+'"'+r+'" instead.';}var l="https://sweetalert.js.org";c+=a?" More details: "+l+a:" More details: "+l+"/guides/#upgrading-from-1x",console.warn(c);},e.DEPRECATED_OPTS={type:{replacement:"icon",link:"/docs/#icon"},imageUrl:{replacement:"icon",link:"/docs/#icon"},customClass:{replacement:"className",onlyRename:!0,link:"/docs/#classname"},imageSize:{},showCancelButton:{replacement:"buttons",link:"/docs/#buttons"},showConfirmButton:{replacement:"button",link:"/docs/#button"},confirmButtonText:{replacement:"button",link:"/docs/#button"},confirmButtonColor:{},cancelButtonText:{replacement:"buttons",link:"/docs/#buttons"},closeOnConfirm:{replacement:"button",subOption:"closeModal",link:"/docs/#button"},closeOnCancel:{replacement:"buttons",subOption:"closeModal",link:"/docs/#buttons"},showLoaderOnConfirm:{replacement:"buttons"},animation:{},inputType:{replacement:"content",link:"/docs/#content"},inputValue:{replacement:"content",link:"/docs/#content"},inputPlaceholder:{replacement:"content",link:"/docs/#content"},html:{replacement:"content",link:"/docs/#content"},allowEscapeKey:{replacement:"closeOnEsc",onlyRename:!0,link:"/docs/#closeonesc"},allowClickOutside:{replacement:"closeOnClickOutside",onlyRename:!0,link:"/docs/#closeonclickoutside"}};}])});
|
|
19996
|
-
}(sweetalert_min));
|
|
19997
|
-
|
|
19998
|
-
var swal = /*@__PURE__*/getDefaultExportFromCjs(sweetalert_min.exports);
|
|
19999
|
-
|
|
20000
20032
|
class WatchableOutputChannel {
|
|
20001
20033
|
constructor(name) {
|
|
20002
20034
|
_defineProperty(this, "logs", '');
|
|
@@ -20042,6 +20074,20 @@ class WatchableConsoleWindow {
|
|
|
20042
20074
|
_defineProperty(this, "onDidChangeChannelsEmitter", new lib$1.Emitter());
|
|
20043
20075
|
|
|
20044
20076
|
_defineProperty(this, "channels", new Map());
|
|
20077
|
+
|
|
20078
|
+
_defineProperty(this, "withProgress", async (options, task) => {
|
|
20079
|
+
console.info('[LSP]', 'Starting task with progress:', options.location, options.title);
|
|
20080
|
+
|
|
20081
|
+
try {
|
|
20082
|
+
return await task({
|
|
20083
|
+
report: params => {
|
|
20084
|
+
console.info('[LSP]', "Task progress: ".concat(params.increment, "%:"), params.message);
|
|
20085
|
+
}
|
|
20086
|
+
}, new lib$1.CancellationTokenSource().token);
|
|
20087
|
+
} finally {
|
|
20088
|
+
console.info('[LSP]', 'Task completed:', options.title);
|
|
20089
|
+
}
|
|
20090
|
+
});
|
|
20045
20091
|
}
|
|
20046
20092
|
|
|
20047
20093
|
async showMessage(type, message) {
|
|
@@ -20145,32 +20191,31 @@ class MemoryWorkspaceConfiguration {
|
|
|
20145
20191
|
|
|
20146
20192
|
}
|
|
20147
20193
|
|
|
20194
|
+
const simpleConfigurationService = monaco.editor.StaticServices.configurationService.get();
|
|
20195
|
+
|
|
20148
20196
|
class Configuration {
|
|
20149
20197
|
constructor() {
|
|
20150
20198
|
_defineProperty(this, "onDidChangeConfigurationEmitter", new lib$1.Emitter());
|
|
20151
|
-
|
|
20152
|
-
_defineProperty(this, "configurations", {});
|
|
20153
20199
|
}
|
|
20154
20200
|
|
|
20155
|
-
getConfiguration(section) {
|
|
20156
|
-
return new MemoryWorkspaceConfiguration(
|
|
20201
|
+
getConfiguration(section, resource) {
|
|
20202
|
+
return new MemoryWorkspaceConfiguration(this.getValue(section, resource));
|
|
20157
20203
|
}
|
|
20158
20204
|
|
|
20159
|
-
|
|
20160
|
-
|
|
20161
|
-
|
|
20162
|
-
});
|
|
20163
|
-
const event = {
|
|
20164
|
-
affectsConfiguration(eventSection) {
|
|
20165
|
-
return section === eventSection;
|
|
20166
|
-
}
|
|
20167
|
-
|
|
20205
|
+
getValue(section, resource) {
|
|
20206
|
+
const override = {
|
|
20207
|
+
resource: resource != null ? monaco.Uri.parse(resource) : null
|
|
20168
20208
|
};
|
|
20169
|
-
|
|
20209
|
+
|
|
20210
|
+
if (section == null) {
|
|
20211
|
+
return simpleConfigurationService.getValue(override);
|
|
20212
|
+
}
|
|
20213
|
+
|
|
20214
|
+
return simpleConfigurationService.getValue(section, override);
|
|
20170
20215
|
}
|
|
20171
20216
|
|
|
20172
20217
|
get onDidChangeConfiguration() {
|
|
20173
|
-
return
|
|
20218
|
+
return simpleConfigurationService.onDidChangeConfiguration;
|
|
20174
20219
|
}
|
|
20175
20220
|
|
|
20176
20221
|
}
|
|
@@ -20295,10 +20340,6 @@ function installServices() {
|
|
|
20295
20340
|
}
|
|
20296
20341
|
}
|
|
20297
20342
|
|
|
20298
|
-
function updateConfiguration(section, value) {
|
|
20299
|
-
services.workspace.configurations.update(section, value);
|
|
20300
|
-
}
|
|
20301
|
-
|
|
20302
20343
|
var lib = {};
|
|
20303
20344
|
|
|
20304
20345
|
var disposable = {};
|
|
@@ -20719,18 +20760,32 @@ async function openConnection(url, errorHandler, closeHandler) {
|
|
|
20719
20760
|
args[_key] = arguments[_key];
|
|
20720
20761
|
}
|
|
20721
20762
|
|
|
20722
|
-
connection.onRequest(args[0], function () {
|
|
20763
|
+
return connection.onRequest(args[0], function () {
|
|
20723
20764
|
// Hack for https://github.com/OmniSharp/omnisharp-roslyn/issues/2119
|
|
20724
20765
|
if (args[0].method === lib$1.RegistrationRequest.type.method) {
|
|
20725
20766
|
const registrationParams = arguments.length <= 0 ? undefined : arguments[0];
|
|
20726
20767
|
registrationParams.registrations = registrationParams.registrations.filter(registration => {
|
|
20727
|
-
|
|
20768
|
+
const alreadyExisting = existingRegistrations.has(registration.id);
|
|
20769
|
+
|
|
20770
|
+
if (alreadyExisting) {
|
|
20771
|
+
console.warn('Registration already existing', registration.id, registration.method);
|
|
20772
|
+
}
|
|
20773
|
+
|
|
20774
|
+
return !alreadyExisting;
|
|
20728
20775
|
});
|
|
20729
20776
|
registrationParams.registrations.forEach(registration => {
|
|
20730
20777
|
existingRegistrations.add(registration.id);
|
|
20731
20778
|
});
|
|
20732
20779
|
}
|
|
20733
20780
|
|
|
20781
|
+
if (args[0].method === lib$1.UnregistrationRequest.type.method) {
|
|
20782
|
+
const unregistrationParams = arguments.length <= 0 ? undefined : arguments[0];
|
|
20783
|
+
|
|
20784
|
+
for (const unregistration of unregistrationParams.unregisterations) {
|
|
20785
|
+
existingRegistrations.delete(unregistration.id);
|
|
20786
|
+
}
|
|
20787
|
+
}
|
|
20788
|
+
|
|
20734
20789
|
return args[1](...arguments);
|
|
20735
20790
|
});
|
|
20736
20791
|
},
|
|
@@ -20752,7 +20807,7 @@ async function openConnection(url, errorHandler, closeHandler) {
|
|
|
20752
20807
|
// The shutdown should NEVER fail or the connection is not closed and the lsp client is not properly cleaned
|
|
20753
20808
|
// see https://github.com/microsoft/vscode-languageserver-node/blob/master/client/src/client.ts#L3103
|
|
20754
20809
|
try {
|
|
20755
|
-
connection.exit();
|
|
20810
|
+
await connection.exit();
|
|
20756
20811
|
} catch (error) {
|
|
20757
20812
|
console.warn('[LSP]', 'Error while shutdown lsp', error);
|
|
20758
20813
|
}
|
|
@@ -20771,24 +20826,18 @@ async function openConnection(url, errorHandler, closeHandler) {
|
|
|
20771
20826
|
const RETRY_DELAY = 3000;
|
|
20772
20827
|
|
|
20773
20828
|
class CGLSPConnectionProvider {
|
|
20774
|
-
constructor(
|
|
20775
|
-
|
|
20776
|
-
|
|
20777
|
-
|
|
20778
|
-
|
|
20779
|
-
_defineProperty(this, "libraryUrls", void 0);
|
|
20780
|
-
|
|
20781
|
-
_defineProperty(this, "getSecurityToken", void 0);
|
|
20782
|
-
|
|
20783
|
-
this.serverUrl = serverUrl;
|
|
20784
|
-
this.language = language;
|
|
20829
|
+
constructor(serverAddress, id, sessionId, libraryUrls, getSecurityToken) {
|
|
20830
|
+
this.serverAddress = serverAddress;
|
|
20831
|
+
this.id = id;
|
|
20832
|
+
this.sessionId = sessionId;
|
|
20785
20833
|
this.libraryUrls = libraryUrls;
|
|
20786
20834
|
this.getSecurityToken = getSecurityToken;
|
|
20787
20835
|
}
|
|
20788
20836
|
|
|
20789
20837
|
async get(errorHandler, closeHandler) {
|
|
20790
20838
|
try {
|
|
20791
|
-
const
|
|
20839
|
+
const path = this.sessionId != null ? "run/".concat(this.sessionId, "/").concat(this.id) : "run/".concat(this.id);
|
|
20840
|
+
const url = new URL(path, this.serverAddress);
|
|
20792
20841
|
this.libraryUrls.forEach(libraryUrl => url.searchParams.append('libraryUrl', libraryUrl));
|
|
20793
20842
|
url.searchParams.append('token', await this.getSecurityToken());
|
|
20794
20843
|
return await openConnection(url, errorHandler, closeHandler);
|
|
@@ -20801,39 +20850,274 @@ class CGLSPConnectionProvider {
|
|
|
20801
20850
|
|
|
20802
20851
|
}
|
|
20803
20852
|
|
|
20804
|
-
function createLanguageClient(_ref,
|
|
20853
|
+
function createLanguageClient(id, sessionId, _ref, languageServerAddress, getSecurityToken, libraryUrls, errorHandler, middleware) {
|
|
20805
20854
|
let {
|
|
20806
20855
|
documentSelector,
|
|
20807
|
-
|
|
20808
|
-
configurationSection,
|
|
20856
|
+
synchronize,
|
|
20809
20857
|
initializationOptions
|
|
20810
20858
|
} = _ref;
|
|
20811
20859
|
const client = new lib$1.MonacoLanguageClient({
|
|
20812
|
-
id: "".concat(
|
|
20813
|
-
name: "CodinGame ".concat(
|
|
20860
|
+
id: "".concat(id, "-languageclient"),
|
|
20861
|
+
name: "CodinGame ".concat(id, " Language Client"),
|
|
20814
20862
|
clientOptions: {
|
|
20815
20863
|
// use a language id as a document selector
|
|
20816
20864
|
documentSelector,
|
|
20817
20865
|
// disable the default error handler
|
|
20818
20866
|
errorHandler,
|
|
20819
20867
|
middleware,
|
|
20820
|
-
synchronize
|
|
20821
|
-
configurationSection
|
|
20822
|
-
},
|
|
20868
|
+
synchronize,
|
|
20823
20869
|
initializationOptions
|
|
20824
20870
|
},
|
|
20825
|
-
connectionProvider: new CGLSPConnectionProvider(
|
|
20871
|
+
connectionProvider: new CGLSPConnectionProvider(languageServerAddress, id, sessionId, libraryUrls, getSecurityToken)
|
|
20826
20872
|
});
|
|
20827
20873
|
client.registerProposedFeatures();
|
|
20828
|
-
registerExtensionFeatures(client,
|
|
20874
|
+
registerExtensionFeatures(client, id);
|
|
20829
20875
|
return client;
|
|
20830
20876
|
}
|
|
20831
20877
|
|
|
20878
|
+
const staticOptions = {
|
|
20879
|
+
angular: {
|
|
20880
|
+
documentSelector: [{
|
|
20881
|
+
scheme: 'file',
|
|
20882
|
+
pattern: '**/*.ts'
|
|
20883
|
+
}]
|
|
20884
|
+
},
|
|
20885
|
+
bash: {
|
|
20886
|
+
documentSelector: [{
|
|
20887
|
+
scheme: 'file',
|
|
20888
|
+
pattern: '**/*.bash'
|
|
20889
|
+
}]
|
|
20890
|
+
},
|
|
20891
|
+
c: {
|
|
20892
|
+
documentSelector: [{
|
|
20893
|
+
scheme: 'file',
|
|
20894
|
+
language: 'c'
|
|
20895
|
+
}]
|
|
20896
|
+
},
|
|
20897
|
+
csharp: {
|
|
20898
|
+
documentSelector: [{
|
|
20899
|
+
language: 'csharp'
|
|
20900
|
+
}]
|
|
20901
|
+
},
|
|
20902
|
+
cpp: {
|
|
20903
|
+
documentSelector: [{
|
|
20904
|
+
scheme: 'file',
|
|
20905
|
+
language: 'cpp'
|
|
20906
|
+
}, {
|
|
20907
|
+
scheme: 'file',
|
|
20908
|
+
language: 'cuda-cpp'
|
|
20909
|
+
}]
|
|
20910
|
+
},
|
|
20911
|
+
clojure: {
|
|
20912
|
+
documentSelector: [{
|
|
20913
|
+
scheme: 'file',
|
|
20914
|
+
pattern: '**/*.clj',
|
|
20915
|
+
language: 'clojure'
|
|
20916
|
+
}]
|
|
20917
|
+
},
|
|
20918
|
+
cobol: {
|
|
20919
|
+
documentSelector: ['COBOL'],
|
|
20920
|
+
synchronize: {
|
|
20921
|
+
configurationSection: 'cobol-lsp'
|
|
20922
|
+
}
|
|
20923
|
+
},
|
|
20924
|
+
dart: {
|
|
20925
|
+
documentSelector: [{
|
|
20926
|
+
scheme: 'file',
|
|
20927
|
+
pattern: '**/*.dart',
|
|
20928
|
+
language: 'dart'
|
|
20929
|
+
}]
|
|
20930
|
+
},
|
|
20931
|
+
go: {
|
|
20932
|
+
documentSelector: [{
|
|
20933
|
+
language: 'go',
|
|
20934
|
+
scheme: 'file'
|
|
20935
|
+
}, {
|
|
20936
|
+
language: 'go.mod',
|
|
20937
|
+
scheme: 'file'
|
|
20938
|
+
}, {
|
|
20939
|
+
language: 'go.sum',
|
|
20940
|
+
scheme: 'file'
|
|
20941
|
+
}, {
|
|
20942
|
+
language: 'go.work',
|
|
20943
|
+
scheme: 'file'
|
|
20944
|
+
}, {
|
|
20945
|
+
language: 'tmpl',
|
|
20946
|
+
scheme: 'file'
|
|
20947
|
+
}],
|
|
20948
|
+
initializationOptions: {
|
|
20949
|
+
lintTool: 'golint',
|
|
20950
|
+
diagnosticsEnabled: true,
|
|
20951
|
+
gocodeCompletionEnabled: true
|
|
20952
|
+
}
|
|
20953
|
+
},
|
|
20954
|
+
groovy: {
|
|
20955
|
+
documentSelector: [{
|
|
20956
|
+
scheme: 'file',
|
|
20957
|
+
language: 'groovy'
|
|
20958
|
+
}],
|
|
20959
|
+
synchronize: {
|
|
20960
|
+
configurationSection: 'groovy'
|
|
20961
|
+
}
|
|
20962
|
+
},
|
|
20963
|
+
java: {
|
|
20964
|
+
documentSelector: [{
|
|
20965
|
+
scheme: 'file',
|
|
20966
|
+
language: 'java'
|
|
20967
|
+
}, {
|
|
20968
|
+
scheme: 'jdt',
|
|
20969
|
+
language: 'java'
|
|
20970
|
+
}, {
|
|
20971
|
+
scheme: 'untitled',
|
|
20972
|
+
language: 'java'
|
|
20973
|
+
}],
|
|
20974
|
+
synchronize: {
|
|
20975
|
+
configurationSection: ['java', 'editor.insertSpaces', 'editor.tabSize']
|
|
20976
|
+
}
|
|
20977
|
+
},
|
|
20978
|
+
javascript: {
|
|
20979
|
+
documentSelector: [{
|
|
20980
|
+
pattern: '**/*.{js}',
|
|
20981
|
+
language: 'javascript'
|
|
20982
|
+
}, {
|
|
20983
|
+
pattern: '**/**.{js,jsx}',
|
|
20984
|
+
language: 'javascript'
|
|
20985
|
+
}]
|
|
20986
|
+
},
|
|
20987
|
+
kotlin: {
|
|
20988
|
+
// https://github.com/fwcd/vscode-kotlin/blob/db5916080868a6a8e064c60d49624926c2fa61bd/src/languageSetup.ts#L104
|
|
20989
|
+
documentSelector: [{
|
|
20990
|
+
language: 'kotlin',
|
|
20991
|
+
scheme: 'file'
|
|
20992
|
+
}, {
|
|
20993
|
+
language: 'kotlin',
|
|
20994
|
+
scheme: 'kls'
|
|
20995
|
+
}],
|
|
20996
|
+
synchronize: {
|
|
20997
|
+
configurationSection: 'kotlin'
|
|
20998
|
+
}
|
|
20999
|
+
},
|
|
21000
|
+
lua: {
|
|
21001
|
+
documentSelector: [{
|
|
21002
|
+
scheme: 'file',
|
|
21003
|
+
language: 'lua'
|
|
21004
|
+
}],
|
|
21005
|
+
synchronize: {
|
|
21006
|
+
configurationSection: 'Lua'
|
|
21007
|
+
}
|
|
21008
|
+
},
|
|
21009
|
+
'php-serenata': {
|
|
21010
|
+
// https://gitlab.com/Serenata/visual-studio-code-client/-/blob/master/src/extension.ts#L120
|
|
21011
|
+
documentSelector: [{
|
|
21012
|
+
pattern: '**/*.php',
|
|
21013
|
+
scheme: 'file'
|
|
21014
|
+
}],
|
|
21015
|
+
synchronize: {
|
|
21016
|
+
configurationSection: 'serenata'
|
|
21017
|
+
},
|
|
21018
|
+
initializationOptions: {
|
|
21019
|
+
configuration: {
|
|
21020
|
+
uris: ['file:///tmp/project'],
|
|
21021
|
+
phpVersion: 7.3,
|
|
21022
|
+
fileExtensions: ['php'],
|
|
21023
|
+
indexDatabaseUri: 'file:///tmp/index.sqlite',
|
|
21024
|
+
excludedPathExpressions: ['file:///opt/serenata']
|
|
21025
|
+
}
|
|
21026
|
+
}
|
|
21027
|
+
},
|
|
21028
|
+
php: {
|
|
21029
|
+
documentSelector: [{
|
|
21030
|
+
pattern: '**/*.php',
|
|
21031
|
+
language: 'php'
|
|
21032
|
+
}]
|
|
21033
|
+
},
|
|
21034
|
+
python: {
|
|
21035
|
+
documentSelector: [{
|
|
21036
|
+
language: 'python'
|
|
21037
|
+
}],
|
|
21038
|
+
synchronize: {
|
|
21039
|
+
configurationSection: 'python'
|
|
21040
|
+
}
|
|
21041
|
+
},
|
|
21042
|
+
r: {
|
|
21043
|
+
// https://github.com/REditorSupport/vscode-R/blob/96ed4740101d8cd82f908b415df1dd205b4be824/src/languageService.ts#L186
|
|
21044
|
+
documentSelector: [{
|
|
21045
|
+
scheme: 'file',
|
|
21046
|
+
language: 'r'
|
|
21047
|
+
}, {
|
|
21048
|
+
scheme: 'file',
|
|
21049
|
+
language: 'rmd'
|
|
21050
|
+
}],
|
|
21051
|
+
synchronize: {
|
|
21052
|
+
configurationSection: 'r.lsp'
|
|
21053
|
+
}
|
|
21054
|
+
},
|
|
21055
|
+
react: {
|
|
21056
|
+
documentSelector: [{
|
|
21057
|
+
pattern: '**/*.{js,jsx}',
|
|
21058
|
+
language: 'javascript'
|
|
21059
|
+
}],
|
|
21060
|
+
synchronize: {}
|
|
21061
|
+
},
|
|
21062
|
+
ruby: {
|
|
21063
|
+
// https://github.com/rubyide/vscode-ruby/blob/8ba0e01956865a3dbd932279a3d42f7183bcf73a/packages/vscode-ruby-client/src/client.ts#L30
|
|
21064
|
+
documentSelector: [{
|
|
21065
|
+
scheme: 'file',
|
|
21066
|
+
language: 'ruby'
|
|
21067
|
+
}, {
|
|
21068
|
+
scheme: 'untitled',
|
|
21069
|
+
language: 'ruby'
|
|
21070
|
+
}]
|
|
21071
|
+
},
|
|
21072
|
+
rust: {
|
|
21073
|
+
// https://github.com/rust-lang/vscode-rust/blob/b1ae67b06640ffab6e1ebb72e07364b4477dfbf1/rust-analyzer/editors/code/src/client.ts#L42
|
|
21074
|
+
documentSelector: [{
|
|
21075
|
+
scheme: 'file',
|
|
21076
|
+
language: 'rust'
|
|
21077
|
+
}]
|
|
21078
|
+
},
|
|
21079
|
+
scala: {
|
|
21080
|
+
documentSelector: [{
|
|
21081
|
+
scheme: 'file',
|
|
21082
|
+
language: 'scala'
|
|
21083
|
+
}],
|
|
21084
|
+
synchronize: {
|
|
21085
|
+
configurationSection: 'metals'
|
|
21086
|
+
}
|
|
21087
|
+
},
|
|
21088
|
+
sql: {
|
|
21089
|
+
documentSelector: [{
|
|
21090
|
+
language: 'sql'
|
|
21091
|
+
}]
|
|
21092
|
+
},
|
|
21093
|
+
swift: {
|
|
21094
|
+
// https://github.com/apple/sourcekit-lsp/blob/59b5e68f7f8408b5bc44bd47f71ef1afdc63e7a6/Editors/vscode/src/extension.ts#L22
|
|
21095
|
+
documentSelector: ['swift', 'cpp', 'c', 'objective-c', 'objective-cpp'],
|
|
21096
|
+
synchronize: {}
|
|
21097
|
+
},
|
|
21098
|
+
typescript: {
|
|
21099
|
+
documentSelector: [{
|
|
21100
|
+
pattern: '**/*.{ts}',
|
|
21101
|
+
language: 'typescript'
|
|
21102
|
+
}],
|
|
21103
|
+
synchronize: {}
|
|
21104
|
+
},
|
|
21105
|
+
vue: {
|
|
21106
|
+
documentSelector: [{
|
|
21107
|
+
pattern: '**/*.js',
|
|
21108
|
+
language: 'javascript'
|
|
21109
|
+
}],
|
|
21110
|
+
synchronize: {}
|
|
21111
|
+
}
|
|
21112
|
+
};
|
|
21113
|
+
|
|
20832
21114
|
class LanguageClientManager {
|
|
20833
|
-
constructor(
|
|
20834
|
-
this.
|
|
21115
|
+
constructor(id, sessionId, languageServerAddress, getSecurityToken, languageServerOptions, libraryUrls) {
|
|
21116
|
+
this.id = id;
|
|
21117
|
+
this.sessionId = sessionId;
|
|
21118
|
+
this.languageServerAddress = languageServerAddress;
|
|
20835
21119
|
this.getSecurityToken = getSecurityToken;
|
|
20836
|
-
this.
|
|
21120
|
+
this.languageServerOptions = languageServerOptions;
|
|
20837
21121
|
this.libraryUrls = libraryUrls;
|
|
20838
21122
|
|
|
20839
21123
|
_defineProperty(this, "languageClient", void 0);
|
|
@@ -20846,8 +21130,6 @@ class LanguageClientManager {
|
|
|
20846
21130
|
|
|
20847
21131
|
_defineProperty(this, "currentStatus", void 0);
|
|
20848
21132
|
|
|
20849
|
-
_defineProperty(this, "configuration", void 0);
|
|
20850
|
-
|
|
20851
21133
|
_defineProperty(this, "handleClose", () => {
|
|
20852
21134
|
if (this.isDisposed()) {
|
|
20853
21135
|
return lib$1.CloseAction.DoNotRestart;
|
|
@@ -20864,8 +21146,6 @@ class LanguageClientManager {
|
|
|
20864
21146
|
});
|
|
20865
21147
|
return lib$1.ErrorAction.Continue;
|
|
20866
21148
|
});
|
|
20867
|
-
|
|
20868
|
-
this.configuration = languageServerConfig.configuration;
|
|
20869
21149
|
}
|
|
20870
21150
|
|
|
20871
21151
|
updateStatus(status) {
|
|
@@ -20910,41 +21190,64 @@ class LanguageClientManager {
|
|
|
20910
21190
|
}
|
|
20911
21191
|
|
|
20912
21192
|
isModelManaged(document) {
|
|
20913
|
-
|
|
21193
|
+
if (this.languageServerOptions.documentSelector == null) {
|
|
21194
|
+
return false;
|
|
21195
|
+
}
|
|
21196
|
+
|
|
21197
|
+
return lib$1.Services.get().languages.match(this.languageServerOptions.documentSelector, document);
|
|
20914
21198
|
}
|
|
20915
21199
|
|
|
20916
21200
|
isDisposed() {
|
|
20917
21201
|
return this.languageClient == null;
|
|
20918
21202
|
}
|
|
20919
21203
|
|
|
20920
|
-
updateConfiguration(configuration) {
|
|
20921
|
-
const {
|
|
20922
|
-
configurationSection
|
|
20923
|
-
} = this.languageServerConfig;
|
|
20924
|
-
this.configuration = configuration;
|
|
20925
|
-
|
|
20926
|
-
if (configurationSection != null && this.languageClient != null) {
|
|
20927
|
-
updateConfiguration(configurationSection, configuration);
|
|
20928
|
-
}
|
|
20929
|
-
}
|
|
20930
|
-
|
|
20931
21204
|
start() {
|
|
20932
|
-
const
|
|
20933
|
-
const languageClient = createLanguageClient(this.
|
|
21205
|
+
const onServerResponse = new lib$1.Emitter();
|
|
21206
|
+
const languageClient = createLanguageClient(this.id, this.sessionId, this.languageServerOptions, this.languageServerAddress, this.getSecurityToken, this.libraryUrls, {
|
|
20934
21207
|
error: this.handleError,
|
|
20935
21208
|
closed: this.handleClose
|
|
20936
21209
|
}, {
|
|
20937
21210
|
handleDiagnostics: (uri, diagnostics, next) => {
|
|
20938
21211
|
next(uri, diagnostics);
|
|
20939
|
-
|
|
21212
|
+
onServerResponse.fire();
|
|
21213
|
+
},
|
|
21214
|
+
provideCodeActions: async (document, range, context, token, next) => {
|
|
21215
|
+
try {
|
|
21216
|
+
return await next(document, range, context, token);
|
|
21217
|
+
} finally {
|
|
21218
|
+
onServerResponse.fire();
|
|
21219
|
+
}
|
|
21220
|
+
},
|
|
21221
|
+
provideDocumentRangeSemanticTokens: async (document, range, token, next) => {
|
|
21222
|
+
try {
|
|
21223
|
+
return await next(document, range, token);
|
|
21224
|
+
} finally {
|
|
21225
|
+
onServerResponse.fire();
|
|
21226
|
+
}
|
|
21227
|
+
},
|
|
21228
|
+
provideDocumentSemanticTokens: async (document, token, next) => {
|
|
21229
|
+
try {
|
|
21230
|
+
return await next(document, token);
|
|
21231
|
+
} finally {
|
|
21232
|
+
onServerResponse.fire();
|
|
21233
|
+
}
|
|
21234
|
+
},
|
|
21235
|
+
handleWorkDoneProgress: async (token, params, next) => {
|
|
21236
|
+
next(token, params);
|
|
21237
|
+
|
|
21238
|
+
if (params.kind === 'end') {
|
|
21239
|
+
onServerResponse.fire();
|
|
21240
|
+
}
|
|
21241
|
+
},
|
|
21242
|
+
provideHover: async (document, position, token, next) => {
|
|
21243
|
+
try {
|
|
21244
|
+
return await next(document, position, token);
|
|
21245
|
+
} finally {
|
|
21246
|
+
onServerResponse.fire();
|
|
21247
|
+
}
|
|
20940
21248
|
}
|
|
20941
21249
|
});
|
|
20942
21250
|
this.languageClient = languageClient;
|
|
20943
|
-
|
|
20944
|
-
if (this.configuration != null) {
|
|
20945
|
-
this.updateConfiguration(this.configuration);
|
|
20946
|
-
}
|
|
20947
|
-
|
|
20948
21251
|
let readyPromise = null;
|
|
20949
21252
|
languageClient.onDidChangeState(async state => {
|
|
20950
21253
|
switch (state.newState) {
|
|
@@ -20957,7 +21260,7 @@ class LanguageClientManager {
|
|
|
20957
21260
|
readyPromise = languageClient.onReady().then(async () => {
|
|
20958
21261
|
let disposable = null;
|
|
20959
21262
|
await Promise.race([new Promise(resolve => {
|
|
20960
|
-
disposable =
|
|
21263
|
+
disposable = onServerResponse.event(resolve);
|
|
20961
21264
|
}), delay$1(15000)]);
|
|
20962
21265
|
disposable.dispose();
|
|
20963
21266
|
}, error => {
|
|
@@ -21004,14 +21307,20 @@ class LanguageClientManager {
|
|
|
21004
21307
|
}
|
|
21005
21308
|
const languageClientManagerByLanguageId = {};
|
|
21006
21309
|
|
|
21007
|
-
function createLanguageClientManager(
|
|
21008
|
-
if (languageClientManagerByLanguageId[
|
|
21009
|
-
throw new Error("Language client for language ".concat(
|
|
21310
|
+
function createLanguageClientManager(id, sessionId, languageServerAddress, getSecurityToken, libraryUrls) {
|
|
21311
|
+
if (languageClientManagerByLanguageId[id] != null) {
|
|
21312
|
+
throw new Error("Language client for language ".concat(id, " already started"));
|
|
21313
|
+
}
|
|
21314
|
+
|
|
21315
|
+
const languageServerOptions = staticOptions[id];
|
|
21316
|
+
|
|
21317
|
+
if (languageServerOptions == null) {
|
|
21318
|
+
throw new Error("Unknown ".concat(id, " language server"));
|
|
21010
21319
|
}
|
|
21011
21320
|
|
|
21012
21321
|
installServices();
|
|
21013
|
-
const languageClientManager = new LanguageClientManager(
|
|
21014
|
-
languageClientManagerByLanguageId[
|
|
21322
|
+
const languageClientManager = new LanguageClientManager(id, sessionId, languageServerAddress, getSecurityToken, languageServerOptions, libraryUrls);
|
|
21323
|
+
languageClientManagerByLanguageId[id] = languageClientManager;
|
|
21015
21324
|
const textModelContentProviderDisposable = registerTextModelContentProvider('file', {
|
|
21016
21325
|
async provideTextContent(resource) {
|
|
21017
21326
|
try {
|
|
@@ -21025,7 +21334,7 @@ function createLanguageClientManager(languageServerUrl, getSecurityToken, langua
|
|
|
21025
21334
|
|
|
21026
21335
|
});
|
|
21027
21336
|
languageClientManager.onWillClose(() => {
|
|
21028
|
-
delete languageClientManagerByLanguageId[
|
|
21337
|
+
delete languageClientManagerByLanguageId[id];
|
|
21029
21338
|
textModelContentProviderDisposable.dispose();
|
|
21030
21339
|
});
|
|
21031
21340
|
return languageClientManager;
|