@codingame/monaco-languageclient-wrapper 1.0.6 → 1.1.0
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/BSV.tmLanguage.js +299 -0
- package/dist/COBOL Copybook.js +2017 -0
- package/dist/COBOL.js +2017 -0
- package/dist/COBOL.tmLanguage.js +149 -0
- package/dist/CodinGameMonacoWorkspace.d.ts +13 -0
- package/dist/Configuration.d.ts +15 -0
- package/dist/Erlang.plist.js +1752 -0
- package/dist/JSON.tmLanguage.js +221 -0
- package/dist/JSONC.tmLanguage.js +221 -0
- package/dist/JavaScript.tmLanguage.js +5894 -0
- package/dist/Kotlin.tmLanguage.js +724 -0
- package/dist/MagicPython.tmLanguage.js +5340 -0
- package/dist/MagicRegExp.tmLanguage.js +505 -0
- package/dist/Regular Expressions (JavaScript).tmLanguage.js +166 -0
- package/dist/SQL.plist.js +482 -0
- package/dist/Scala.tmLanguage.js +1255 -0
- package/dist/TypeScript.tmLanguage.js +5641 -0
- package/dist/WatchableConsoleWindow.d.ts +22 -0
- package/dist/_rollupPluginBabelHelpers.js +54 -0
- package/dist/asp-vb-net.tmlanguage.js +247 -0
- package/dist/bsv.js +49 -0
- package/dist/c.js +18 -0
- package/dist/c.tmLanguage.js +3347 -0
- package/dist/cabal.tmLanguage.js +66 -0
- package/dist/clojure.tmLanguage.js +443 -0
- package/dist/codeblock-cabal.js +42 -0
- package/dist/codeblock-haskell.js +42 -0
- package/dist/codeblock-literate-haskell.js +42 -0
- package/dist/codeblock.js +36 -0
- package/dist/codeblock2.js +95 -0
- package/dist/coffeescript.js +18 -0
- package/dist/coffeescript.tmLanguage.js +1324 -0
- package/dist/configuration/index.d.ts +5 -0
- package/dist/cpp.js +18 -0
- package/dist/cpp.tmLanguage.js +19996 -0
- package/dist/createLanguageClient.d.ts +2 -2
- package/dist/csharp.js +18 -0
- package/dist/csharp.tmLanguage.js +4750 -0
- package/dist/css.tmLanguage.js +1873 -0
- package/dist/css.worker.js +6 -0
- package/dist/cssContribution.js +10 -0
- package/dist/cuda-cpp.tmLanguage.js +19993 -0
- package/dist/d.js +3159 -0
- package/dist/dart.js +530 -0
- package/dist/diet.js +758 -0
- package/dist/diet2.js +92 -0
- package/dist/dml.js +169 -0
- package/dist/eex.js +55 -0
- package/dist/elixir.js +2341 -0
- package/dist/elixir2.js +184 -0
- package/dist/erlang.js +195 -0
- package/dist/expression.js +846 -0
- package/dist/extensions/autofold.d.ts +2 -0
- package/dist/extensions/cobol.d.ts +2 -0
- package/dist/extensions/index.d.ts +2 -0
- package/dist/features/cssContribution.d.ts +1 -0
- package/dist/features/htmlContribution.d.ts +1 -0
- package/dist/features/jsonContribution.d.ts +1 -0
- package/dist/features/typescriptContribution.d.ts +1 -0
- package/dist/fsharp.js +18 -0
- package/dist/fsharp.tmLanguage.js +1811 -0
- package/dist/go.tmLanguage.js +1025 -0
- package/dist/groovy.js +229 -0
- package/dist/groovy.tmLanguage.js +1391 -0
- package/dist/hacks.d.ts +1 -0
- package/dist/haskell.tmLanguage.js +629 -0
- package/dist/html (eex).js +31 -0
- package/dist/html-derivative.tmLanguage.js +57 -0
- package/dist/html.tmLanguage.js +2652 -0
- package/dist/html.tmLanguage2.js +97 -0
- package/dist/html.worker.js +6 -0
- package/dist/htmlContribution.js +10 -0
- package/dist/index.d.ts +3 -2
- package/dist/inline-styles.js +104 -0
- package/dist/inline-template.js +88 -0
- package/dist/java.js +18 -0
- package/dist/java.tmLanguage.js +1863 -0
- package/dist/javascript.js +196 -0
- package/dist/javascriptreact.js +196 -0
- package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
- package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
- package/dist/json.worker.js +6 -0
- package/dist/jsonContribution.js +78 -0
- package/dist/keybindings/index.d.ts +2 -0
- package/dist/keybindings/keybindingHelper.d.ts +2 -0
- package/dist/keybindings/vim.d.ts +3 -0
- package/dist/kotlin.js +117 -0
- package/dist/kotlinscript.js +117 -0
- package/dist/languageClient.d.ts +8 -14
- package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
- package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
- package/dist/languages/index.d.ts +3 -0
- package/dist/languages/monarch/index.d.ts +7 -0
- package/dist/languages/monarch/list.d.ts +7 -0
- package/dist/languages/monarch/stub-generator.d.ts +2 -0
- package/dist/languages/snippets/index.d.ts +1 -0
- package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
- package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
- package/dist/languages/textMate/index.d.ts +2 -0
- package/dist/literateHaskell.tmLanguage.js +70 -0
- package/dist/lua.tmLanguage.js +289 -0
- package/dist/main.js +627 -326
- package/dist/markdown.js +103 -0
- package/dist/markdown.tmLanguage.js +2784 -0
- package/dist/merlin.js +111 -0
- package/dist/monaco.d.ts +8 -0
- package/dist/objective-c.tmLanguage.js +3618 -0
- package/dist/ocaml-hover-info.js +34 -0
- package/dist/ocaml-hover-type.js +24 -0
- package/dist/ocaml-markdown-codeblock.js +42 -0
- package/dist/ocaml.js +2979 -0
- package/dist/ocamlbuild.js +239 -0
- package/dist/opam.js +149 -0
- package/dist/pascal.js +382 -0
- package/dist/pascal.tmLanguage.js +169 -0
- package/dist/perl.tmLanguage.js +2986 -0
- package/dist/perl6.tmLanguage.js +323 -0
- package/dist/pgsql.tmLanguage.js +284 -0
- package/dist/php.js +265 -0
- package/dist/php.tmLanguage.js +3791 -0
- package/dist/platform.tmLanguage.js +1135 -0
- package/dist/powershell.js +18 -0
- package/dist/powershell.tmLanguage.js +1037 -0
- package/dist/r.tmLanguage.js +551 -0
- package/dist/reason-hover-info.js +34 -0
- package/dist/reason-hover-signature.js +21 -0
- package/dist/reason-hover-type.js +21 -0
- package/dist/reason-markdown-codeblock.js +42 -0
- package/dist/reason.js +100 -0
- package/dist/ruby.tmLanguage.js +2784 -0
- package/dist/rust.tmLanguage.js +1178 -0
- package/dist/sassdoc.tmLanguage.js +362 -0
- package/dist/scss.tmLanguage.js +1887 -0
- package/dist/sdc.tmLanguage.js +712 -0
- package/dist/sdl.js +162 -0
- package/dist/services/Configuration.d.ts +2 -3
- package/dist/services/EditorModelResolverService.d.ts +8 -0
- package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
- package/dist/services/WatchableConsoleWindow.d.ts +2 -0
- package/dist/services.d.ts +1 -2
- package/dist/shell-unix-bash.tmLanguage.js +1291 -0
- package/dist/sql.js +21 -0
- package/dist/staticOptions.d.ts +9 -0
- package/dist/stub-generator.js +15 -0
- package/dist/swift.js +183 -0
- package/dist/swift.tmLanguage.js +3288 -0
- package/dist/systemverilog.js +208 -0
- package/dist/systemverilog.tmLanguage.js +1067 -0
- package/dist/tcl.js +151 -0
- package/dist/tcl.tmlanguage.yaml.js +5484 -0
- package/dist/template.js +207 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/registry.d.ts +4 -0
- package/dist/theme/semanticHighlight.d.ts +1 -0
- package/dist/theme/tools.d.ts +13 -0
- package/dist/tools.d.ts +3 -0
- package/dist/ts.worker.js +6 -0
- package/dist/typescript.js +312 -0
- package/dist/typescriptContribution.js +36 -0
- package/dist/typescriptreact.js +312 -0
- package/dist/ucf.tmLanguage.js +36 -0
- package/dist/vb.js +88 -0
- package/dist/verilog.js +432 -0
- package/dist/verilog.tmLanguage.js +321 -0
- package/dist/worker.d.ts +6 -0
- package/dist/worker.js +54 -0
- package/dist/xml.tmLanguage.js +395 -0
- package/dist/xsl.tmLanguage.js +102 -0
- package/dist/yaml.tmLanguage.js +629 -0
- package/package.json +21 -21
- package/stats.html +1 -1
package/dist/main.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
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
3
|
import { registerTextModelContentProvider } from '@codingame/monaco-editor-wrapper';
|
|
4
|
+
import swal from 'sweetalert';
|
|
4
5
|
import once from 'once';
|
|
5
6
|
|
|
6
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
7
8
|
|
|
8
|
-
function getDefaultExportFromCjs (x) {
|
|
9
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
9
|
function getAugmentedNamespace(n) {
|
|
13
10
|
if (n.__esModule) return n;
|
|
14
11
|
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
@@ -291,19 +288,21 @@ var proxy = function proxyPolyfill() {
|
|
|
291
288
|
: self
|
|
292
289
|
);
|
|
293
290
|
|
|
291
|
+
monaco.editor.onWillDisposeModel(model => {
|
|
292
|
+
// We need to do it in a timeout or else the marker change event is delayed
|
|
293
|
+
setTimeout(() => {
|
|
294
|
+
monaco.editor.setModelMarkers(model, 'default', []);
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
|
|
294
298
|
function ownKeys(object, enumerableOnly) {
|
|
295
299
|
var keys = Object.keys(object);
|
|
296
300
|
|
|
297
301
|
if (Object.getOwnPropertySymbols) {
|
|
298
302
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
keys.push.apply(keys, symbols);
|
|
303
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
304
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
305
|
+
})), keys.push.apply(keys, symbols);
|
|
307
306
|
}
|
|
308
307
|
|
|
309
308
|
return keys;
|
|
@@ -311,19 +310,12 @@ function ownKeys(object, enumerableOnly) {
|
|
|
311
310
|
|
|
312
311
|
function _objectSpread2(target) {
|
|
313
312
|
for (var i = 1; i < arguments.length; i++) {
|
|
314
|
-
var source = arguments[i]
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
321
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
322
|
-
} else {
|
|
323
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
324
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
325
|
-
});
|
|
326
|
-
}
|
|
313
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
314
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
315
|
+
_defineProperty(target, key, source[key]);
|
|
316
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
317
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
318
|
+
});
|
|
327
319
|
}
|
|
328
320
|
|
|
329
321
|
return target;
|
|
@@ -1003,7 +995,7 @@ var util$1 = /*#__PURE__*/Object.freeze({
|
|
|
1003
995
|
'default': util
|
|
1004
996
|
});
|
|
1005
997
|
|
|
1006
|
-
var require$$1$
|
|
998
|
+
var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(util$1);
|
|
1007
999
|
|
|
1008
1000
|
var disposable$1 = {};
|
|
1009
1001
|
|
|
@@ -1242,7 +1234,7 @@ Object.defineProperty(ril, "__esModule", {
|
|
|
1242
1234
|
value: true
|
|
1243
1235
|
});
|
|
1244
1236
|
const ral_1$1 = ral;
|
|
1245
|
-
const util_1 = require$$1$
|
|
1237
|
+
const util_1 = require$$1$2;
|
|
1246
1238
|
const disposable_1$2 = disposable$1;
|
|
1247
1239
|
const messageBuffer_1 = messageBuffer;
|
|
1248
1240
|
|
|
@@ -7953,7 +7945,7 @@ var main$1 = /*#__PURE__*/Object.freeze({
|
|
|
7953
7945
|
get TextDocument () { return TextDocument$1; }
|
|
7954
7946
|
});
|
|
7955
7947
|
|
|
7956
|
-
var require$$1$
|
|
7948
|
+
var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(main$1);
|
|
7957
7949
|
|
|
7958
7950
|
var messages = {};
|
|
7959
7951
|
|
|
@@ -9381,7 +9373,7 @@ connection$3.createProtocolConnection = createProtocolConnection;
|
|
|
9381
9373
|
|
|
9382
9374
|
__exportStar(main$2, exports);
|
|
9383
9375
|
|
|
9384
|
-
__exportStar(require$$1$
|
|
9376
|
+
__exportStar(require$$1$1, exports);
|
|
9385
9377
|
|
|
9386
9378
|
__exportStar(messages, exports);
|
|
9387
9379
|
|
|
@@ -9460,83 +9452,61 @@ connection$3.createProtocolConnection = createProtocolConnection;
|
|
|
9460
9452
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9461
9453
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
9462
9454
|
* ------------------------------------------------------------------------------------------ */
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
if (ar || !(i in from)) {
|
|
9466
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
9467
|
-
ar[i] = from[i];
|
|
9468
|
-
}
|
|
9469
|
-
}
|
|
9470
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9471
|
-
};
|
|
9472
|
-
var FullTextDocument = /** @class */ (function () {
|
|
9473
|
-
function FullTextDocument(uri, languageId, version, content) {
|
|
9455
|
+
class FullTextDocument {
|
|
9456
|
+
constructor(uri, languageId, version, content) {
|
|
9474
9457
|
this._uri = uri;
|
|
9475
9458
|
this._languageId = languageId;
|
|
9476
9459
|
this._version = version;
|
|
9477
9460
|
this._content = content;
|
|
9478
9461
|
this._lineOffsets = undefined;
|
|
9479
9462
|
}
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
},
|
|
9491
|
-
enumerable: false,
|
|
9492
|
-
configurable: true
|
|
9493
|
-
});
|
|
9494
|
-
Object.defineProperty(FullTextDocument.prototype, "version", {
|
|
9495
|
-
get: function () {
|
|
9496
|
-
return this._version;
|
|
9497
|
-
},
|
|
9498
|
-
enumerable: false,
|
|
9499
|
-
configurable: true
|
|
9500
|
-
});
|
|
9501
|
-
FullTextDocument.prototype.getText = function (range) {
|
|
9463
|
+
get uri() {
|
|
9464
|
+
return this._uri;
|
|
9465
|
+
}
|
|
9466
|
+
get languageId() {
|
|
9467
|
+
return this._languageId;
|
|
9468
|
+
}
|
|
9469
|
+
get version() {
|
|
9470
|
+
return this._version;
|
|
9471
|
+
}
|
|
9472
|
+
getText(range) {
|
|
9502
9473
|
if (range) {
|
|
9503
|
-
|
|
9504
|
-
|
|
9474
|
+
const start = this.offsetAt(range.start);
|
|
9475
|
+
const end = this.offsetAt(range.end);
|
|
9505
9476
|
return this._content.substring(start, end);
|
|
9506
9477
|
}
|
|
9507
9478
|
return this._content;
|
|
9508
|
-
}
|
|
9509
|
-
|
|
9510
|
-
for (
|
|
9511
|
-
var change = changes_1[_i];
|
|
9479
|
+
}
|
|
9480
|
+
update(changes, version) {
|
|
9481
|
+
for (let change of changes) {
|
|
9512
9482
|
if (FullTextDocument.isIncremental(change)) {
|
|
9513
9483
|
// makes sure start is before end
|
|
9514
|
-
|
|
9484
|
+
const range = getWellformedRange(change.range);
|
|
9515
9485
|
// update content
|
|
9516
|
-
|
|
9517
|
-
|
|
9486
|
+
const startOffset = this.offsetAt(range.start);
|
|
9487
|
+
const endOffset = this.offsetAt(range.end);
|
|
9518
9488
|
this._content = this._content.substring(0, startOffset) + change.text + this._content.substring(endOffset, this._content.length);
|
|
9519
9489
|
// update the offsets
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9490
|
+
const startLine = Math.max(range.start.line, 0);
|
|
9491
|
+
const endLine = Math.max(range.end.line, 0);
|
|
9492
|
+
let lineOffsets = this._lineOffsets;
|
|
9493
|
+
const addedLineOffsets = computeLineOffsets(change.text, false, startOffset);
|
|
9524
9494
|
if (endLine - startLine === addedLineOffsets.length) {
|
|
9525
|
-
for (
|
|
9495
|
+
for (let i = 0, len = addedLineOffsets.length; i < len; i++) {
|
|
9526
9496
|
lineOffsets[i + startLine + 1] = addedLineOffsets[i];
|
|
9527
9497
|
}
|
|
9528
9498
|
}
|
|
9529
9499
|
else {
|
|
9530
9500
|
if (addedLineOffsets.length < 10000) {
|
|
9531
|
-
lineOffsets.splice
|
|
9501
|
+
lineOffsets.splice(startLine + 1, endLine - startLine, ...addedLineOffsets);
|
|
9532
9502
|
}
|
|
9533
9503
|
else { // avoid too many arguments for splice
|
|
9534
9504
|
this._lineOffsets = lineOffsets = lineOffsets.slice(0, startLine + 1).concat(addedLineOffsets, lineOffsets.slice(endLine + 1));
|
|
9535
9505
|
}
|
|
9536
9506
|
}
|
|
9537
|
-
|
|
9507
|
+
const diff = change.text.length - (endOffset - startOffset);
|
|
9538
9508
|
if (diff !== 0) {
|
|
9539
|
-
for (
|
|
9509
|
+
for (let i = startLine + 1 + addedLineOffsets.length, len = lineOffsets.length; i < len; i++) {
|
|
9540
9510
|
lineOffsets[i] = lineOffsets[i] + diff;
|
|
9541
9511
|
}
|
|
9542
9512
|
}
|
|
@@ -9550,22 +9520,22 @@ var FullTextDocument = /** @class */ (function () {
|
|
|
9550
9520
|
}
|
|
9551
9521
|
}
|
|
9552
9522
|
this._version = version;
|
|
9553
|
-
}
|
|
9554
|
-
|
|
9523
|
+
}
|
|
9524
|
+
getLineOffsets() {
|
|
9555
9525
|
if (this._lineOffsets === undefined) {
|
|
9556
9526
|
this._lineOffsets = computeLineOffsets(this._content, true);
|
|
9557
9527
|
}
|
|
9558
9528
|
return this._lineOffsets;
|
|
9559
|
-
}
|
|
9560
|
-
|
|
9529
|
+
}
|
|
9530
|
+
positionAt(offset) {
|
|
9561
9531
|
offset = Math.max(Math.min(offset, this._content.length), 0);
|
|
9562
|
-
|
|
9563
|
-
|
|
9532
|
+
let lineOffsets = this.getLineOffsets();
|
|
9533
|
+
let low = 0, high = lineOffsets.length;
|
|
9564
9534
|
if (high === 0) {
|
|
9565
9535
|
return { line: 0, character: offset };
|
|
9566
9536
|
}
|
|
9567
9537
|
while (low < high) {
|
|
9568
|
-
|
|
9538
|
+
let mid = Math.floor((low + high) / 2);
|
|
9569
9539
|
if (lineOffsets[mid] > offset) {
|
|
9570
9540
|
high = mid;
|
|
9571
9541
|
}
|
|
@@ -9575,41 +9545,36 @@ var FullTextDocument = /** @class */ (function () {
|
|
|
9575
9545
|
}
|
|
9576
9546
|
// low is the least x for which the line offset is larger than the current offset
|
|
9577
9547
|
// or array.length if no line offset is larger than the current offset
|
|
9578
|
-
|
|
9579
|
-
return { line
|
|
9580
|
-
}
|
|
9581
|
-
|
|
9582
|
-
|
|
9548
|
+
let line = low - 1;
|
|
9549
|
+
return { line, character: offset - lineOffsets[line] };
|
|
9550
|
+
}
|
|
9551
|
+
offsetAt(position) {
|
|
9552
|
+
let lineOffsets = this.getLineOffsets();
|
|
9583
9553
|
if (position.line >= lineOffsets.length) {
|
|
9584
9554
|
return this._content.length;
|
|
9585
9555
|
}
|
|
9586
9556
|
else if (position.line < 0) {
|
|
9587
9557
|
return 0;
|
|
9588
9558
|
}
|
|
9589
|
-
|
|
9590
|
-
|
|
9559
|
+
let lineOffset = lineOffsets[position.line];
|
|
9560
|
+
let nextLineOffset = (position.line + 1 < lineOffsets.length) ? lineOffsets[position.line + 1] : this._content.length;
|
|
9591
9561
|
return Math.max(Math.min(lineOffset + position.character, nextLineOffset), lineOffset);
|
|
9592
|
-
}
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
configurable: true
|
|
9599
|
-
});
|
|
9600
|
-
FullTextDocument.isIncremental = function (event) {
|
|
9601
|
-
var candidate = event;
|
|
9562
|
+
}
|
|
9563
|
+
get lineCount() {
|
|
9564
|
+
return this.getLineOffsets().length;
|
|
9565
|
+
}
|
|
9566
|
+
static isIncremental(event) {
|
|
9567
|
+
let candidate = event;
|
|
9602
9568
|
return candidate !== undefined && candidate !== null &&
|
|
9603
9569
|
typeof candidate.text === 'string' && candidate.range !== undefined &&
|
|
9604
9570
|
(candidate.rangeLength === undefined || typeof candidate.rangeLength === 'number');
|
|
9605
|
-
}
|
|
9606
|
-
|
|
9607
|
-
|
|
9571
|
+
}
|
|
9572
|
+
static isFull(event) {
|
|
9573
|
+
let candidate = event;
|
|
9608
9574
|
return candidate !== undefined && candidate !== null &&
|
|
9609
9575
|
typeof candidate.text === 'string' && candidate.range === undefined && candidate.rangeLength === undefined;
|
|
9610
|
-
}
|
|
9611
|
-
|
|
9612
|
-
}());
|
|
9576
|
+
}
|
|
9577
|
+
}
|
|
9613
9578
|
var TextDocument;
|
|
9614
9579
|
(function (TextDocument) {
|
|
9615
9580
|
/**
|
|
@@ -9644,19 +9609,18 @@ var TextDocument;
|
|
|
9644
9609
|
}
|
|
9645
9610
|
TextDocument.update = update;
|
|
9646
9611
|
function applyEdits(document, edits) {
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9612
|
+
let text = document.getText();
|
|
9613
|
+
let sortedEdits = mergeSort(edits.map(getWellformedEdit), (a, b) => {
|
|
9614
|
+
let diff = a.range.start.line - b.range.start.line;
|
|
9650
9615
|
if (diff === 0) {
|
|
9651
9616
|
return a.range.start.character - b.range.start.character;
|
|
9652
9617
|
}
|
|
9653
9618
|
return diff;
|
|
9654
9619
|
});
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
for (
|
|
9658
|
-
|
|
9659
|
-
var startOffset = document.offsetAt(e.range.start);
|
|
9620
|
+
let lastModifiedOffset = 0;
|
|
9621
|
+
const spans = [];
|
|
9622
|
+
for (const e of sortedEdits) {
|
|
9623
|
+
let startOffset = document.offsetAt(e.range.start);
|
|
9660
9624
|
if (startOffset < lastModifiedOffset) {
|
|
9661
9625
|
throw new Error('Overlapping edit');
|
|
9662
9626
|
}
|
|
@@ -9678,16 +9642,16 @@ function mergeSort(data, compare) {
|
|
|
9678
9642
|
// sorted
|
|
9679
9643
|
return data;
|
|
9680
9644
|
}
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9645
|
+
const p = (data.length / 2) | 0;
|
|
9646
|
+
const left = data.slice(0, p);
|
|
9647
|
+
const right = data.slice(p);
|
|
9684
9648
|
mergeSort(left, compare);
|
|
9685
9649
|
mergeSort(right, compare);
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9650
|
+
let leftIdx = 0;
|
|
9651
|
+
let rightIdx = 0;
|
|
9652
|
+
let i = 0;
|
|
9689
9653
|
while (leftIdx < left.length && rightIdx < right.length) {
|
|
9690
|
-
|
|
9654
|
+
let ret = compare(left[leftIdx], right[rightIdx]);
|
|
9691
9655
|
if (ret <= 0) {
|
|
9692
9656
|
// smaller_equal -> take left to preserve order
|
|
9693
9657
|
data[i++] = left[leftIdx++];
|
|
@@ -9705,11 +9669,10 @@ function mergeSort(data, compare) {
|
|
|
9705
9669
|
}
|
|
9706
9670
|
return data;
|
|
9707
9671
|
}
|
|
9708
|
-
function computeLineOffsets(text, isAtLineStart, textOffset) {
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
var ch = text.charCodeAt(i);
|
|
9672
|
+
function computeLineOffsets(text, isAtLineStart, textOffset = 0) {
|
|
9673
|
+
const result = isAtLineStart ? [textOffset] : [];
|
|
9674
|
+
for (let i = 0; i < text.length; i++) {
|
|
9675
|
+
let ch = text.charCodeAt(i);
|
|
9713
9676
|
if (ch === 13 /* CarriageReturn */ || ch === 10 /* LineFeed */) {
|
|
9714
9677
|
if (ch === 13 /* CarriageReturn */ && i + 1 < text.length && text.charCodeAt(i + 1) === 10 /* LineFeed */) {
|
|
9715
9678
|
i++;
|
|
@@ -9720,17 +9683,17 @@ function computeLineOffsets(text, isAtLineStart, textOffset) {
|
|
|
9720
9683
|
return result;
|
|
9721
9684
|
}
|
|
9722
9685
|
function getWellformedRange(range) {
|
|
9723
|
-
|
|
9724
|
-
|
|
9686
|
+
const start = range.start;
|
|
9687
|
+
const end = range.end;
|
|
9725
9688
|
if (start.line > end.line || (start.line === end.line && start.character > end.character)) {
|
|
9726
9689
|
return { start: end, end: start };
|
|
9727
9690
|
}
|
|
9728
9691
|
return range;
|
|
9729
9692
|
}
|
|
9730
9693
|
function getWellformedEdit(textEdit) {
|
|
9731
|
-
|
|
9694
|
+
const range = getWellformedRange(textEdit.range);
|
|
9732
9695
|
if (range !== textEdit.range) {
|
|
9733
|
-
return { newText: textEdit.newText, range
|
|
9696
|
+
return { newText: textEdit.newText, range };
|
|
9734
9697
|
}
|
|
9735
9698
|
return textEdit;
|
|
9736
9699
|
}
|
|
@@ -9740,7 +9703,7 @@ var main = /*#__PURE__*/Object.freeze({
|
|
|
9740
9703
|
get TextDocument () { return TextDocument; }
|
|
9741
9704
|
});
|
|
9742
9705
|
|
|
9743
|
-
var require$$1
|
|
9706
|
+
var require$$1 = /*@__PURE__*/getAugmentedNamespace(main);
|
|
9744
9707
|
|
|
9745
9708
|
/* --------------------------------------------------------------------------------------------
|
|
9746
9709
|
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
@@ -9759,9 +9722,9 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
9759
9722
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9760
9723
|
};
|
|
9761
9724
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9762
|
-
exports.ConfigurationTarget = exports.DocumentIdentifier = exports.VsCodeDiagnosticSeverity = exports.SignatureHelpTriggerKind = exports.isDocumentSelector = exports.Services = exports.TextDocument = exports.Emitter = exports.Event = exports.CancellationToken = exports.Disposable = void 0;
|
|
9725
|
+
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;
|
|
9763
9726
|
const vscode_languageserver_protocol_1 = main$3;
|
|
9764
|
-
const vscode_languageserver_textdocument_1 = require$$1
|
|
9727
|
+
const vscode_languageserver_textdocument_1 = require$$1;
|
|
9765
9728
|
Object.defineProperty(exports, "TextDocument", { enumerable: true, get: function () { return vscode_languageserver_textdocument_1.TextDocument; } });
|
|
9766
9729
|
const vscode_jsonrpc_1 = main$2;
|
|
9767
9730
|
Object.defineProperty(exports, "Disposable", { enumerable: true, get: function () { return vscode_jsonrpc_1.Disposable; } });
|
|
@@ -9806,6 +9769,11 @@ exports.isDocumentSelector = isDocumentSelector;
|
|
|
9806
9769
|
VsCodeDiagnosticSeverity[VsCodeDiagnosticSeverity["Information"] = 2] = "Information";
|
|
9807
9770
|
VsCodeDiagnosticSeverity[VsCodeDiagnosticSeverity["Hint"] = 3] = "Hint";
|
|
9808
9771
|
})(exports.VsCodeDiagnosticSeverity || (exports.VsCodeDiagnosticSeverity = {}));
|
|
9772
|
+
(function (ProgressLocation) {
|
|
9773
|
+
ProgressLocation[ProgressLocation["SourceControl"] = 1] = "SourceControl";
|
|
9774
|
+
ProgressLocation[ProgressLocation["Window"] = 10] = "Window";
|
|
9775
|
+
ProgressLocation[ProgressLocation["Notification"] = 15] = "Notification";
|
|
9776
|
+
})(exports.ProgressLocation || (exports.ProgressLocation = {}));
|
|
9809
9777
|
(function (DocumentIdentifier) {
|
|
9810
9778
|
function is(arg) {
|
|
9811
9779
|
return !!arg && ('uri' in arg) && ('languageId' in arg);
|
|
@@ -9861,9 +9829,18 @@ var connection$2 = {};
|
|
|
9861
9829
|
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
9862
9830
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
9863
9831
|
* ------------------------------------------------------------------------------------------ */
|
|
9832
|
+
var __awaiter$2 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9833
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9834
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9835
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9836
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9837
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9838
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9839
|
+
});
|
|
9840
|
+
};
|
|
9864
9841
|
Object.defineProperty(connection$2, "__esModule", { value: true });
|
|
9865
9842
|
connection$2.createConnection = void 0;
|
|
9866
|
-
const vscode_languageserver_protocol_1$
|
|
9843
|
+
const vscode_languageserver_protocol_1$f = main$3;
|
|
9867
9844
|
const Is$4 = is$1;
|
|
9868
9845
|
function createConnection(connection, errorHandler, closeHandler) {
|
|
9869
9846
|
connection.onError((data) => { errorHandler(data[0], data[1], data[2]); });
|
|
@@ -9872,22 +9849,24 @@ function createConnection(connection, errorHandler, closeHandler) {
|
|
|
9872
9849
|
listen: () => connection.listen(),
|
|
9873
9850
|
sendRequest: (type, ...params) => connection.sendRequest(Is$4.string(type) ? type : type.method, ...params),
|
|
9874
9851
|
onRequest: (type, handler) => connection.onRequest(Is$4.string(type) ? type : type.method, handler),
|
|
9875
|
-
sendNotification: (type, params) => connection.sendNotification(Is$4.string(type) ? type : type.method, params),
|
|
9852
|
+
sendNotification: (type, params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(Is$4.string(type) ? type : type.method, params); }),
|
|
9876
9853
|
onNotification: (type, handler) => connection.onNotification(Is$4.string(type) ? type : type.method, handler),
|
|
9854
|
+
onProgress: (type, token, handler) => connection.onProgress(type, token, handler),
|
|
9855
|
+
sendProgress: (type, token, value) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendProgress(type, token, value); }),
|
|
9877
9856
|
trace: (value, tracer, sendNotification = false) => connection.trace(value, tracer, sendNotification),
|
|
9878
|
-
initialize: (params) => connection.sendRequest(vscode_languageserver_protocol_1$
|
|
9879
|
-
shutdown: () => connection.sendRequest(vscode_languageserver_protocol_1$
|
|
9880
|
-
exit: () => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9881
|
-
onLogMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1$
|
|
9882
|
-
onShowMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1$
|
|
9883
|
-
onTelemetry: (handler) => connection.onNotification(vscode_languageserver_protocol_1$
|
|
9884
|
-
didChangeConfiguration: (params) => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9885
|
-
didChangeWatchedFiles: (params) => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9886
|
-
didOpenTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9887
|
-
didChangeTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9888
|
-
didCloseTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9889
|
-
didSaveTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1$
|
|
9890
|
-
onDiagnostics: (handler) => connection.onNotification(vscode_languageserver_protocol_1$
|
|
9857
|
+
initialize: (params) => connection.sendRequest(vscode_languageserver_protocol_1$f.InitializeRequest.type, params),
|
|
9858
|
+
shutdown: () => connection.sendRequest(vscode_languageserver_protocol_1$f.ShutdownRequest.type, undefined),
|
|
9859
|
+
exit: () => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.ExitNotification.type); }),
|
|
9860
|
+
onLogMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1$f.LogMessageNotification.type, handler),
|
|
9861
|
+
onShowMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1$f.ShowMessageNotification.type, handler),
|
|
9862
|
+
onTelemetry: (handler) => connection.onNotification(vscode_languageserver_protocol_1$f.TelemetryEventNotification.type, handler),
|
|
9863
|
+
didChangeConfiguration: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidChangeConfigurationNotification.type, params); }),
|
|
9864
|
+
didChangeWatchedFiles: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidChangeWatchedFilesNotification.type, params); }),
|
|
9865
|
+
didOpenTextDocument: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidOpenTextDocumentNotification.type, params); }),
|
|
9866
|
+
didChangeTextDocument: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidChangeTextDocumentNotification.type, params); }),
|
|
9867
|
+
didCloseTextDocument: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidCloseTextDocumentNotification.type, params); }),
|
|
9868
|
+
didSaveTextDocument: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidSaveTextDocumentNotification.type, params); }),
|
|
9869
|
+
onDiagnostics: (handler) => connection.onNotification(vscode_languageserver_protocol_1$f.PublishDiagnosticsNotification.type, handler),
|
|
9891
9870
|
dispose: () => connection.dispose(),
|
|
9892
9871
|
end: () => connection.end()
|
|
9893
9872
|
};
|
|
@@ -9900,7 +9879,7 @@ var client = {};
|
|
|
9900
9879
|
|
|
9901
9880
|
var vscodeApi = {};
|
|
9902
9881
|
|
|
9903
|
-
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;
|
|
9882
|
+
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;
|
|
9904
9883
|
|
|
9905
9884
|
var esm = /*#__PURE__*/Object.freeze({
|
|
9906
9885
|
__proto__: null,
|
|
@@ -9908,7 +9887,7 @@ var esm = /*#__PURE__*/Object.freeze({
|
|
|
9908
9887
|
Utils: Utils
|
|
9909
9888
|
});
|
|
9910
9889
|
|
|
9911
|
-
var require$$
|
|
9890
|
+
var require$$0 = /*@__PURE__*/getAugmentedNamespace(esm);
|
|
9912
9891
|
|
|
9913
9892
|
/* --------------------------------------------------------------------------------------------
|
|
9914
9893
|
* Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
@@ -9925,12 +9904,11 @@ var __awaiter$1 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
|
|
|
9925
9904
|
};
|
|
9926
9905
|
Object.defineProperty(vscodeApi, "__esModule", { value: true });
|
|
9927
9906
|
vscodeApi.createVSCodeApi = void 0;
|
|
9928
|
-
const
|
|
9929
|
-
const vscode_uri_1 = require$$1;
|
|
9907
|
+
const vscode_uri_1 = require$$0;
|
|
9930
9908
|
const disposable_1$1 = disposable$2;
|
|
9931
9909
|
const services_1$3 = services$1;
|
|
9932
9910
|
const ServicesModule = services$1;
|
|
9933
|
-
const vscode_languageserver_protocol_1$
|
|
9911
|
+
const vscode_languageserver_protocol_1$e = main$3;
|
|
9934
9912
|
function createVSCodeApi(servicesProvider) {
|
|
9935
9913
|
const unsupported = () => { throw new Error('unsupported'); };
|
|
9936
9914
|
const Uri = class VSCodeUri extends vscode_uri_1.URI {
|
|
@@ -9980,7 +9958,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
9980
9958
|
CodeActionKind.SourceOrganizeImports = CodeActionKind.Source.append('organizeImports');
|
|
9981
9959
|
CodeActionKind.SourceFixAll = CodeActionKind.Source.append('fixAll');
|
|
9982
9960
|
class Diagnostic {
|
|
9983
|
-
constructor(range, message, severity = vscode_languageserver_protocol_1$
|
|
9961
|
+
constructor(range, message, severity = vscode_languageserver_protocol_1$e.DiagnosticSeverity.Error) {
|
|
9984
9962
|
this.range = range;
|
|
9985
9963
|
this.message = message;
|
|
9986
9964
|
this.severity = severity;
|
|
@@ -10276,7 +10254,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10276
10254
|
}
|
|
10277
10255
|
const languages = {
|
|
10278
10256
|
match(selector, document) {
|
|
10279
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10257
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10280
10258
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10281
10259
|
}
|
|
10282
10260
|
if (!services_1$3.DocumentIdentifier.is(document)) {
|
|
@@ -10297,7 +10275,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10297
10275
|
return new ApiDiagnosticCollection(name);
|
|
10298
10276
|
},
|
|
10299
10277
|
registerCompletionItemProvider(selector, provider, ...triggerCharacters) {
|
|
10300
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10278
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10301
10279
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10302
10280
|
}
|
|
10303
10281
|
const { languages } = servicesProvider();
|
|
@@ -10317,7 +10295,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10317
10295
|
}, ...triggerCharacters);
|
|
10318
10296
|
},
|
|
10319
10297
|
registerCodeActionsProvider(selector, provider) {
|
|
10320
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10298
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10321
10299
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10322
10300
|
}
|
|
10323
10301
|
const { languages } = servicesProvider();
|
|
@@ -10334,7 +10312,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10334
10312
|
});
|
|
10335
10313
|
},
|
|
10336
10314
|
registerCodeLensProvider(selector, provider) {
|
|
10337
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10315
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10338
10316
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10339
10317
|
}
|
|
10340
10318
|
const { languages } = servicesProvider();
|
|
@@ -10352,7 +10330,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10352
10330
|
});
|
|
10353
10331
|
},
|
|
10354
10332
|
registerDefinitionProvider(selector, provider) {
|
|
10355
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10333
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10356
10334
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10357
10335
|
}
|
|
10358
10336
|
const { languages } = servicesProvider();
|
|
@@ -10366,7 +10344,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10366
10344
|
});
|
|
10367
10345
|
},
|
|
10368
10346
|
registerImplementationProvider(selector, provider) {
|
|
10369
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10347
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10370
10348
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10371
10349
|
}
|
|
10372
10350
|
const { languages } = servicesProvider();
|
|
@@ -10380,7 +10358,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10380
10358
|
});
|
|
10381
10359
|
},
|
|
10382
10360
|
registerTypeDefinitionProvider(selector, provider) {
|
|
10383
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10361
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10384
10362
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10385
10363
|
}
|
|
10386
10364
|
const { languages } = servicesProvider();
|
|
@@ -10394,7 +10372,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10394
10372
|
});
|
|
10395
10373
|
},
|
|
10396
10374
|
registerDeclarationProvider(selector, provider) {
|
|
10397
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10375
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10398
10376
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10399
10377
|
}
|
|
10400
10378
|
const { languages } = servicesProvider();
|
|
@@ -10408,7 +10386,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10408
10386
|
});
|
|
10409
10387
|
},
|
|
10410
10388
|
registerHoverProvider(selector, provider) {
|
|
10411
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10389
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10412
10390
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10413
10391
|
}
|
|
10414
10392
|
const { languages } = servicesProvider();
|
|
@@ -10422,7 +10400,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10422
10400
|
return disposable_1$1.Disposable.create(() => { });
|
|
10423
10401
|
},
|
|
10424
10402
|
registerDocumentHighlightProvider(selector, provider) {
|
|
10425
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10403
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10426
10404
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10427
10405
|
}
|
|
10428
10406
|
const { languages } = servicesProvider();
|
|
@@ -10436,7 +10414,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10436
10414
|
});
|
|
10437
10415
|
},
|
|
10438
10416
|
registerDocumentSymbolProvider(selector, provider) {
|
|
10439
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10417
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10440
10418
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10441
10419
|
}
|
|
10442
10420
|
const { languages } = servicesProvider();
|
|
@@ -10461,7 +10439,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10461
10439
|
});
|
|
10462
10440
|
},
|
|
10463
10441
|
registerReferenceProvider(selector, provider) {
|
|
10464
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10442
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10465
10443
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10466
10444
|
}
|
|
10467
10445
|
const { languages } = servicesProvider();
|
|
@@ -10475,7 +10453,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10475
10453
|
});
|
|
10476
10454
|
},
|
|
10477
10455
|
registerRenameProvider(selector, provider) {
|
|
10478
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10456
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10479
10457
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10480
10458
|
}
|
|
10481
10459
|
const { languages } = servicesProvider();
|
|
@@ -10489,7 +10467,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10489
10467
|
});
|
|
10490
10468
|
},
|
|
10491
10469
|
registerDocumentFormattingEditProvider(selector, provider) {
|
|
10492
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10470
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10493
10471
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10494
10472
|
}
|
|
10495
10473
|
const { languages } = servicesProvider();
|
|
@@ -10503,7 +10481,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10503
10481
|
});
|
|
10504
10482
|
},
|
|
10505
10483
|
registerDocumentRangeFormattingEditProvider(selector, provider) {
|
|
10506
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10484
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10507
10485
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10508
10486
|
}
|
|
10509
10487
|
const { languages } = servicesProvider();
|
|
@@ -10517,7 +10495,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10517
10495
|
});
|
|
10518
10496
|
},
|
|
10519
10497
|
registerOnTypeFormattingEditProvider(selector, provider, firstTriggerCharacter, ...moreTriggerCharacter) {
|
|
10520
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10498
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10521
10499
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10522
10500
|
}
|
|
10523
10501
|
const { languages } = servicesProvider();
|
|
@@ -10531,7 +10509,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10531
10509
|
}, firstTriggerCharacter, ...moreTriggerCharacter);
|
|
10532
10510
|
},
|
|
10533
10511
|
registerSignatureHelpProvider(selector, provider, firstItem, ...remaining) {
|
|
10534
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10512
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10535
10513
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10536
10514
|
}
|
|
10537
10515
|
const { languages } = servicesProvider();
|
|
@@ -10556,7 +10534,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10556
10534
|
});
|
|
10557
10535
|
},
|
|
10558
10536
|
registerDocumentLinkProvider(selector, provider) {
|
|
10559
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10537
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10560
10538
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10561
10539
|
}
|
|
10562
10540
|
const { languages } = servicesProvider();
|
|
@@ -10574,7 +10552,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10574
10552
|
});
|
|
10575
10553
|
},
|
|
10576
10554
|
registerColorProvider(selector, provider) {
|
|
10577
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10555
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10578
10556
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10579
10557
|
}
|
|
10580
10558
|
const { languages } = servicesProvider();
|
|
@@ -10594,7 +10572,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10594
10572
|
});
|
|
10595
10573
|
},
|
|
10596
10574
|
registerFoldingRangeProvider(selector, provider) {
|
|
10597
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10575
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10598
10576
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10599
10577
|
}
|
|
10600
10578
|
const { languages } = servicesProvider();
|
|
@@ -10608,7 +10586,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10608
10586
|
});
|
|
10609
10587
|
},
|
|
10610
10588
|
registerSelectionRangeProvider(selector, provider) {
|
|
10611
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10589
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10612
10590
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10613
10591
|
}
|
|
10614
10592
|
const { languages } = servicesProvider();
|
|
@@ -10623,7 +10601,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10623
10601
|
},
|
|
10624
10602
|
registerEvaluatableExpressionProvider: unsupported,
|
|
10625
10603
|
registerDocumentSemanticTokensProvider(selector, provider, legend) {
|
|
10626
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10604
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10627
10605
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10628
10606
|
}
|
|
10629
10607
|
const { languages } = servicesProvider();
|
|
@@ -10631,6 +10609,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10631
10609
|
return disposable_1$1.Disposable.create(() => { });
|
|
10632
10610
|
}
|
|
10633
10611
|
return languages.registerDocumentSemanticTokensProvider(selector, {
|
|
10612
|
+
onDidChange: provider.onDidChangeSemanticTokens,
|
|
10634
10613
|
provideDocumentSemanticTokens({ textDocument }, token) {
|
|
10635
10614
|
return provider.provideDocumentSemanticTokens(textDocument, token);
|
|
10636
10615
|
},
|
|
@@ -10640,7 +10619,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10640
10619
|
}, legend);
|
|
10641
10620
|
},
|
|
10642
10621
|
registerDocumentRangeSemanticTokensProvider(selector, provider, legend) {
|
|
10643
|
-
if (!services_1$3.isDocumentSelector(selector)) {
|
|
10622
|
+
if (!(0, services_1$3.isDocumentSelector)(selector)) {
|
|
10644
10623
|
throw new Error('unexpected selector: ' + JSON.stringify(selector));
|
|
10645
10624
|
}
|
|
10646
10625
|
const { languages } = servicesProvider();
|
|
@@ -10703,7 +10682,7 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10703
10682
|
if (window && window.withProgress) {
|
|
10704
10683
|
return window.withProgress(options, task);
|
|
10705
10684
|
}
|
|
10706
|
-
return task({ report: () => { } }, new
|
|
10685
|
+
return task({ report: () => { } }, new vscode_languageserver_protocol_1$e.CancellationTokenSource().token);
|
|
10707
10686
|
},
|
|
10708
10687
|
showTextDocument: unsupported,
|
|
10709
10688
|
createTextEditorDecorationType: unsupported,
|
|
@@ -10830,7 +10809,9 @@ function createVSCodeApi(servicesProvider) {
|
|
|
10830
10809
|
Disposable: CodeDisposable,
|
|
10831
10810
|
SignatureHelpTriggerKind: services_1$3.SignatureHelpTriggerKind,
|
|
10832
10811
|
DiagnosticSeverity: ServicesModule.DiagnosticSeverity,
|
|
10833
|
-
EventEmitter: ServicesModule.Emitter
|
|
10812
|
+
EventEmitter: ServicesModule.Emitter,
|
|
10813
|
+
CancellationTokenSource: vscode_languageserver_protocol_1$e.CancellationTokenSource,
|
|
10814
|
+
ProgressLocation: ServicesModule.ProgressLocation
|
|
10834
10815
|
};
|
|
10835
10816
|
return partialApi;
|
|
10836
10817
|
}
|
|
@@ -10842,7 +10823,7 @@ vscodeApi.createVSCodeApi = createVSCodeApi;
|
|
|
10842
10823
|
* ------------------------------------------------------------------------------------------ */
|
|
10843
10824
|
const vscode_api_1 = vscodeApi;
|
|
10844
10825
|
const services_1$2 = services$1;
|
|
10845
|
-
var vscodeCompatibility = vscode_api_1.createVSCodeApi(services_1$2.Services.get);
|
|
10826
|
+
var vscodeCompatibility = (0, vscode_api_1.createVSCodeApi)(services_1$2.Services.get);
|
|
10846
10827
|
|
|
10847
10828
|
var configuration = {};
|
|
10848
10829
|
|
|
@@ -10857,7 +10838,7 @@ Object.defineProperty(configuration, "__esModule", {
|
|
|
10857
10838
|
});
|
|
10858
10839
|
configuration.toJSONObject = configuration.ConfigurationFeature = void 0;
|
|
10859
10840
|
const vscode_1$8 = vscodeCompatibility;
|
|
10860
|
-
const vscode_languageserver_protocol_1$
|
|
10841
|
+
const vscode_languageserver_protocol_1$d = main$3;
|
|
10861
10842
|
|
|
10862
10843
|
class ConfigurationFeature {
|
|
10863
10844
|
constructor(_client) {
|
|
@@ -10871,7 +10852,7 @@ class ConfigurationFeature {
|
|
|
10871
10852
|
|
|
10872
10853
|
initialize() {
|
|
10873
10854
|
let client = this._client;
|
|
10874
|
-
client.onRequest(vscode_languageserver_protocol_1$
|
|
10855
|
+
client.onRequest(vscode_languageserver_protocol_1$d.ConfigurationRequest.type, (params, token) => {
|
|
10875
10856
|
let configuration = params => {
|
|
10876
10857
|
let result = [];
|
|
10877
10858
|
|
|
@@ -11202,7 +11183,7 @@ const protocolDocumentLink_1$1 = protocolDocumentLink;
|
|
|
11202
11183
|
const protocolCodeAction_1$1 = protocolCodeAction;
|
|
11203
11184
|
const protocolDiagnostic_1$1 = protocolDiagnostic;
|
|
11204
11185
|
const protocolCallHierarchyItem_1$1 = protocolCallHierarchyItem;
|
|
11205
|
-
const vscode_languageserver_protocol_1$
|
|
11186
|
+
const vscode_languageserver_protocol_1$c = main$3;
|
|
11206
11187
|
var InsertReplaceRange;
|
|
11207
11188
|
|
|
11208
11189
|
(function (InsertReplaceRange) {
|
|
@@ -11791,7 +11772,7 @@ function createConverter$1(uriConverter) {
|
|
|
11791
11772
|
}
|
|
11792
11773
|
|
|
11793
11774
|
if (result.insertTextMode === undefined && item.keepWhitespace === true) {
|
|
11794
|
-
result.insertTextMode = vscode_languageserver_protocol_1$
|
|
11775
|
+
result.insertTextMode = vscode_languageserver_protocol_1$c.InsertTextMode.adjustIndentation;
|
|
11795
11776
|
}
|
|
11796
11777
|
|
|
11797
11778
|
return result;
|
|
@@ -12115,7 +12096,7 @@ const protocolDocumentLink_1 = protocolDocumentLink;
|
|
|
12115
12096
|
const protocolCodeAction_1 = protocolCodeAction;
|
|
12116
12097
|
const protocolDiagnostic_1 = protocolDiagnostic;
|
|
12117
12098
|
const protocolCallHierarchyItem_1 = protocolCallHierarchyItem;
|
|
12118
|
-
const vscode_languageserver_protocol_1$
|
|
12099
|
+
const vscode_languageserver_protocol_1$b = main$3;
|
|
12119
12100
|
var CodeBlock;
|
|
12120
12101
|
|
|
12121
12102
|
(function (CodeBlock) {
|
|
@@ -12456,7 +12437,7 @@ function createConverter(uriConverter, trustMarkdown) {
|
|
|
12456
12437
|
if (item.insertTextMode !== undefined) {
|
|
12457
12438
|
result.insertTextMode = item.insertTextMode;
|
|
12458
12439
|
|
|
12459
|
-
if (item.insertTextMode === vscode_languageserver_protocol_1$
|
|
12440
|
+
if (item.insertTextMode === vscode_languageserver_protocol_1$b.InsertTextMode.asIs) {
|
|
12460
12441
|
result.keepWhitespace = true;
|
|
12461
12442
|
}
|
|
12462
12443
|
}
|
|
@@ -12949,7 +12930,7 @@ function createConverter(uriConverter, trustMarkdown) {
|
|
|
12949
12930
|
const uri = _uriConverter(change.textDocument.uri);
|
|
12950
12931
|
|
|
12951
12932
|
for (const edit of change.edits) {
|
|
12952
|
-
if (vscode_languageserver_protocol_1$
|
|
12933
|
+
if (vscode_languageserver_protocol_1$b.AnnotatedTextEdit.is(edit)) {
|
|
12953
12934
|
result.replace(uri, asRange(edit.range), edit.newText, asMetadata(edit.annotationId));
|
|
12954
12935
|
} else {
|
|
12955
12936
|
result.replace(uri, asRange(edit.range), edit.newText);
|
|
@@ -13254,7 +13235,7 @@ Object.defineProperty(async, "__esModule", {
|
|
|
13254
13235
|
value: true
|
|
13255
13236
|
});
|
|
13256
13237
|
async.Delayer = void 0;
|
|
13257
|
-
const vscode_languageserver_protocol_1$
|
|
13238
|
+
const vscode_languageserver_protocol_1$a = main$3;
|
|
13258
13239
|
|
|
13259
13240
|
class Delayer {
|
|
13260
13241
|
constructor(defaultDelay) {
|
|
@@ -13286,7 +13267,7 @@ class Delayer {
|
|
|
13286
13267
|
}
|
|
13287
13268
|
|
|
13288
13269
|
if (delay >= 0 || this.timeout === void 0) {
|
|
13289
|
-
this.timeout = vscode_languageserver_protocol_1$
|
|
13270
|
+
this.timeout = vscode_languageserver_protocol_1$a.RAL().timer.setTimeout(() => {
|
|
13290
13271
|
this.timeout = undefined;
|
|
13291
13272
|
this.onSuccess(undefined);
|
|
13292
13273
|
}, delay >= 0 ? delay : this.defaultDelay);
|
|
@@ -13319,7 +13300,7 @@ class Delayer {
|
|
|
13319
13300
|
|
|
13320
13301
|
cancelTimeout() {
|
|
13321
13302
|
if (this.timeout !== void 0) {
|
|
13322
|
-
vscode_languageserver_protocol_1$
|
|
13303
|
+
vscode_languageserver_protocol_1$a.RAL().timer.clearTimeout(this.timeout);
|
|
13323
13304
|
this.timeout = undefined;
|
|
13324
13305
|
}
|
|
13325
13306
|
}
|
|
@@ -13425,7 +13406,7 @@ Object.defineProperty(progressPart, "__esModule", {
|
|
|
13425
13406
|
});
|
|
13426
13407
|
progressPart.ProgressPart = void 0;
|
|
13427
13408
|
const vscode_1$7 = vscodeCompatibility;
|
|
13428
|
-
const vscode_languageserver_protocol_1$
|
|
13409
|
+
const vscode_languageserver_protocol_1$9 = main$3;
|
|
13429
13410
|
const Is$1 = is;
|
|
13430
13411
|
|
|
13431
13412
|
class ProgressPart {
|
|
@@ -13433,7 +13414,7 @@ class ProgressPart {
|
|
|
13433
13414
|
this._client = _client;
|
|
13434
13415
|
this._token = _token;
|
|
13435
13416
|
this._reported = 0;
|
|
13436
|
-
this._disposable = this._client.onProgress(vscode_languageserver_protocol_1$
|
|
13417
|
+
this._disposable = this._client.onProgress(vscode_languageserver_protocol_1$9.WorkDoneProgress.type, this._token, value => {
|
|
13437
13418
|
switch (value.kind) {
|
|
13438
13419
|
case 'begin':
|
|
13439
13420
|
this.begin(value);
|
|
@@ -13463,7 +13444,7 @@ class ProgressPart {
|
|
|
13463
13444
|
this._cancellationToken = cancellationToken;
|
|
13464
13445
|
|
|
13465
13446
|
this._cancellationToken.onCancellationRequested(() => {
|
|
13466
|
-
this._client.sendNotification(vscode_languageserver_protocol_1$
|
|
13447
|
+
this._client.sendNotification(vscode_languageserver_protocol_1$9.WorkDoneProgressCancelNotification.type, {
|
|
13467
13448
|
token: this._token
|
|
13468
13449
|
});
|
|
13469
13450
|
});
|
|
@@ -16791,10 +16772,10 @@ Object.defineProperty(typeDefinition, "__esModule", {
|
|
|
16791
16772
|
});
|
|
16792
16773
|
typeDefinition.TypeDefinitionFeature = void 0;
|
|
16793
16774
|
const vscode_1$6 = vscodeCompatibility;
|
|
16794
|
-
const vscode_languageserver_protocol_1$
|
|
16775
|
+
const vscode_languageserver_protocol_1$8 = main$3;
|
|
16795
16776
|
const client_1$6 = client;
|
|
16796
16777
|
|
|
16797
|
-
function ensure$
|
|
16778
|
+
function ensure$7(target, key) {
|
|
16798
16779
|
if (target[key] === void 0) {
|
|
16799
16780
|
target[key] = {};
|
|
16800
16781
|
}
|
|
@@ -16804,12 +16785,12 @@ function ensure$6(target, key) {
|
|
|
16804
16785
|
|
|
16805
16786
|
class TypeDefinitionFeature extends client_1$6.TextDocumentFeature {
|
|
16806
16787
|
constructor(client) {
|
|
16807
|
-
super(client, vscode_languageserver_protocol_1$
|
|
16788
|
+
super(client, vscode_languageserver_protocol_1$8.TypeDefinitionRequest.type);
|
|
16808
16789
|
}
|
|
16809
16790
|
|
|
16810
16791
|
fillClientCapabilities(capabilities) {
|
|
16811
|
-
ensure$
|
|
16812
|
-
let typeDefinitionSupport = ensure$
|
|
16792
|
+
ensure$7(ensure$7(capabilities, 'textDocument'), 'typeDefinition').dynamicRegistration = true;
|
|
16793
|
+
let typeDefinitionSupport = ensure$7(ensure$7(capabilities, 'textDocument'), 'typeDefinition');
|
|
16813
16794
|
typeDefinitionSupport.dynamicRegistration = true;
|
|
16814
16795
|
typeDefinitionSupport.linkSupport = true;
|
|
16815
16796
|
}
|
|
@@ -16833,8 +16814,8 @@ class TypeDefinitionFeature extends client_1$6.TextDocumentFeature {
|
|
|
16833
16814
|
const client = this._client;
|
|
16834
16815
|
|
|
16835
16816
|
const provideTypeDefinition = (document, position, token) => {
|
|
16836
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
16837
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
16817
|
+
return client.sendRequest(vscode_languageserver_protocol_1$8.TypeDefinitionRequest.type, client.code2ProtocolConverter.asTextDocumentPositionParams(document, position), token).then(client.protocol2CodeConverter.asDefinitionResult, error => {
|
|
16818
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$8.TypeDefinitionRequest.type, error, null);
|
|
16838
16819
|
});
|
|
16839
16820
|
};
|
|
16840
16821
|
|
|
@@ -16862,10 +16843,10 @@ Object.defineProperty(implementation, "__esModule", {
|
|
|
16862
16843
|
});
|
|
16863
16844
|
implementation.ImplementationFeature = void 0;
|
|
16864
16845
|
const vscode_1$5 = vscodeCompatibility;
|
|
16865
|
-
const vscode_languageserver_protocol_1$
|
|
16846
|
+
const vscode_languageserver_protocol_1$7 = main$3;
|
|
16866
16847
|
const client_1$5 = client;
|
|
16867
16848
|
|
|
16868
|
-
function ensure$
|
|
16849
|
+
function ensure$6(target, key) {
|
|
16869
16850
|
if (target[key] === void 0) {
|
|
16870
16851
|
target[key] = {};
|
|
16871
16852
|
}
|
|
@@ -16875,11 +16856,11 @@ function ensure$5(target, key) {
|
|
|
16875
16856
|
|
|
16876
16857
|
class ImplementationFeature extends client_1$5.TextDocumentFeature {
|
|
16877
16858
|
constructor(client) {
|
|
16878
|
-
super(client, vscode_languageserver_protocol_1$
|
|
16859
|
+
super(client, vscode_languageserver_protocol_1$7.ImplementationRequest.type);
|
|
16879
16860
|
}
|
|
16880
16861
|
|
|
16881
16862
|
fillClientCapabilities(capabilities) {
|
|
16882
|
-
let implementationSupport = ensure$
|
|
16863
|
+
let implementationSupport = ensure$6(ensure$6(capabilities, 'textDocument'), 'implementation');
|
|
16883
16864
|
implementationSupport.dynamicRegistration = true;
|
|
16884
16865
|
implementationSupport.linkSupport = true;
|
|
16885
16866
|
}
|
|
@@ -16903,8 +16884,8 @@ class ImplementationFeature extends client_1$5.TextDocumentFeature {
|
|
|
16903
16884
|
const client = this._client;
|
|
16904
16885
|
|
|
16905
16886
|
const provideImplementation = (document, position, token) => {
|
|
16906
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
16907
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
16887
|
+
return client.sendRequest(vscode_languageserver_protocol_1$7.ImplementationRequest.type, client.code2ProtocolConverter.asTextDocumentPositionParams(document, position), token).then(client.protocol2CodeConverter.asDefinitionResult, error => {
|
|
16888
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$7.ImplementationRequest.type, error, null);
|
|
16908
16889
|
});
|
|
16909
16890
|
};
|
|
16910
16891
|
|
|
@@ -16932,10 +16913,10 @@ Object.defineProperty(colorProvider, "__esModule", {
|
|
|
16932
16913
|
});
|
|
16933
16914
|
colorProvider.ColorProviderFeature = void 0;
|
|
16934
16915
|
const vscode_1$4 = vscodeCompatibility;
|
|
16935
|
-
const vscode_languageserver_protocol_1$
|
|
16916
|
+
const vscode_languageserver_protocol_1$6 = main$3;
|
|
16936
16917
|
const client_1$4 = client;
|
|
16937
16918
|
|
|
16938
|
-
function ensure$
|
|
16919
|
+
function ensure$5(target, key) {
|
|
16939
16920
|
if (target[key] === void 0) {
|
|
16940
16921
|
target[key] = {};
|
|
16941
16922
|
}
|
|
@@ -16945,11 +16926,11 @@ function ensure$4(target, key) {
|
|
|
16945
16926
|
|
|
16946
16927
|
class ColorProviderFeature extends client_1$4.TextDocumentFeature {
|
|
16947
16928
|
constructor(client) {
|
|
16948
|
-
super(client, vscode_languageserver_protocol_1$
|
|
16929
|
+
super(client, vscode_languageserver_protocol_1$6.DocumentColorRequest.type);
|
|
16949
16930
|
}
|
|
16950
16931
|
|
|
16951
16932
|
fillClientCapabilities(capabilities) {
|
|
16952
|
-
ensure$
|
|
16933
|
+
ensure$5(ensure$5(capabilities, 'textDocument'), 'colorProvider').dynamicRegistration = true;
|
|
16953
16934
|
}
|
|
16954
16935
|
|
|
16955
16936
|
initialize(capabilities, documentSelector) {
|
|
@@ -16976,8 +16957,8 @@ class ColorProviderFeature extends client_1$4.TextDocumentFeature {
|
|
|
16976
16957
|
textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(context.document),
|
|
16977
16958
|
range: client.code2ProtocolConverter.asRange(context.range)
|
|
16978
16959
|
};
|
|
16979
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
16980
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
16960
|
+
return client.sendRequest(vscode_languageserver_protocol_1$6.ColorPresentationRequest.type, requestParams, token).then(this.asColorPresentations.bind(this), error => {
|
|
16961
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$6.ColorPresentationRequest.type, error, null);
|
|
16981
16962
|
});
|
|
16982
16963
|
};
|
|
16983
16964
|
|
|
@@ -16991,8 +16972,8 @@ class ColorProviderFeature extends client_1$4.TextDocumentFeature {
|
|
|
16991
16972
|
const requestParams = {
|
|
16992
16973
|
textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document)
|
|
16993
16974
|
};
|
|
16994
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
16995
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
16975
|
+
return client.sendRequest(vscode_languageserver_protocol_1$6.DocumentColorRequest.type, requestParams, token).then(this.asColorInformations.bind(this), error => {
|
|
16976
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$6.ColorPresentationRequest.type, error, null);
|
|
16996
16977
|
});
|
|
16997
16978
|
};
|
|
16998
16979
|
|
|
@@ -17048,7 +17029,7 @@ Object.defineProperty(workspaceFolders, "__esModule", {
|
|
|
17048
17029
|
workspaceFolders.WorkspaceFoldersFeature = workspaceFolders.arrayDiff = void 0;
|
|
17049
17030
|
const UUID = uuid;
|
|
17050
17031
|
const vscode_1$3 = vscodeCompatibility;
|
|
17051
|
-
const vscode_languageserver_protocol_1$
|
|
17032
|
+
const vscode_languageserver_protocol_1$5 = main$3;
|
|
17052
17033
|
|
|
17053
17034
|
function access(target, key) {
|
|
17054
17035
|
if (target === void 0) {
|
|
@@ -17071,7 +17052,7 @@ class WorkspaceFoldersFeature {
|
|
|
17071
17052
|
}
|
|
17072
17053
|
|
|
17073
17054
|
get registrationType() {
|
|
17074
|
-
return vscode_languageserver_protocol_1$
|
|
17055
|
+
return vscode_languageserver_protocol_1$5.DidChangeWorkspaceFoldersNotification.type;
|
|
17075
17056
|
}
|
|
17076
17057
|
|
|
17077
17058
|
fillInitializeParams(params) {
|
|
@@ -17096,7 +17077,7 @@ class WorkspaceFoldersFeature {
|
|
|
17096
17077
|
|
|
17097
17078
|
initialize(capabilities) {
|
|
17098
17079
|
const client = this._client;
|
|
17099
|
-
client.onRequest(vscode_languageserver_protocol_1$
|
|
17080
|
+
client.onRequest(vscode_languageserver_protocol_1$5.WorkspaceFoldersRequest.type, token => {
|
|
17100
17081
|
const workspaceFolders = () => {
|
|
17101
17082
|
const folders = vscode_1$3.workspace.workspaceFolders;
|
|
17102
17083
|
|
|
@@ -17153,7 +17134,7 @@ class WorkspaceFoldersFeature {
|
|
|
17153
17134
|
}
|
|
17154
17135
|
};
|
|
17155
17136
|
|
|
17156
|
-
this._client.sendNotification(vscode_languageserver_protocol_1$
|
|
17137
|
+
this._client.sendNotification(vscode_languageserver_protocol_1$5.DidChangeWorkspaceFoldersNotification.type, params);
|
|
17157
17138
|
}
|
|
17158
17139
|
|
|
17159
17140
|
register(data) {
|
|
@@ -17221,10 +17202,10 @@ Object.defineProperty(foldingRange, "__esModule", {
|
|
|
17221
17202
|
});
|
|
17222
17203
|
foldingRange.FoldingRangeFeature = void 0;
|
|
17223
17204
|
const vscode_1$2 = vscodeCompatibility;
|
|
17224
|
-
const vscode_languageserver_protocol_1$
|
|
17205
|
+
const vscode_languageserver_protocol_1$4 = main$3;
|
|
17225
17206
|
const client_1$3 = client;
|
|
17226
17207
|
|
|
17227
|
-
function ensure$
|
|
17208
|
+
function ensure$4(target, key) {
|
|
17228
17209
|
if (target[key] === void 0) {
|
|
17229
17210
|
target[key] = {};
|
|
17230
17211
|
}
|
|
@@ -17234,11 +17215,11 @@ function ensure$3(target, key) {
|
|
|
17234
17215
|
|
|
17235
17216
|
class FoldingRangeFeature extends client_1$3.TextDocumentFeature {
|
|
17236
17217
|
constructor(client) {
|
|
17237
|
-
super(client, vscode_languageserver_protocol_1$
|
|
17218
|
+
super(client, vscode_languageserver_protocol_1$4.FoldingRangeRequest.type);
|
|
17238
17219
|
}
|
|
17239
17220
|
|
|
17240
17221
|
fillClientCapabilities(capabilities) {
|
|
17241
|
-
let capability = ensure$
|
|
17222
|
+
let capability = ensure$4(ensure$4(capabilities, 'textDocument'), 'foldingRange');
|
|
17242
17223
|
capability.dynamicRegistration = true;
|
|
17243
17224
|
capability.rangeLimit = 5000;
|
|
17244
17225
|
capability.lineFoldingOnly = true;
|
|
@@ -17266,8 +17247,8 @@ class FoldingRangeFeature extends client_1$3.TextDocumentFeature {
|
|
|
17266
17247
|
const requestParams = {
|
|
17267
17248
|
textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document)
|
|
17268
17249
|
};
|
|
17269
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
17270
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
17250
|
+
return client.sendRequest(vscode_languageserver_protocol_1$4.FoldingRangeRequest.type, requestParams, token).then(FoldingRangeFeature.asFoldingRanges, error => {
|
|
17251
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$4.FoldingRangeRequest.type, error, null);
|
|
17271
17252
|
});
|
|
17272
17253
|
};
|
|
17273
17254
|
|
|
@@ -17281,13 +17262,13 @@ class FoldingRangeFeature extends client_1$3.TextDocumentFeature {
|
|
|
17281
17262
|
static asFoldingRangeKind(kind) {
|
|
17282
17263
|
if (kind) {
|
|
17283
17264
|
switch (kind) {
|
|
17284
|
-
case vscode_languageserver_protocol_1$
|
|
17265
|
+
case vscode_languageserver_protocol_1$4.FoldingRangeKind.Comment:
|
|
17285
17266
|
return vscode_1$2.FoldingRangeKind.Comment;
|
|
17286
17267
|
|
|
17287
|
-
case vscode_languageserver_protocol_1$
|
|
17268
|
+
case vscode_languageserver_protocol_1$4.FoldingRangeKind.Imports:
|
|
17288
17269
|
return vscode_1$2.FoldingRangeKind.Imports;
|
|
17289
17270
|
|
|
17290
|
-
case vscode_languageserver_protocol_1$
|
|
17271
|
+
case vscode_languageserver_protocol_1$4.FoldingRangeKind.Region:
|
|
17291
17272
|
return vscode_1$2.FoldingRangeKind.Region;
|
|
17292
17273
|
}
|
|
17293
17274
|
}
|
|
@@ -17322,10 +17303,10 @@ Object.defineProperty(callHierarchy, "__esModule", {
|
|
|
17322
17303
|
});
|
|
17323
17304
|
callHierarchy.CallHierarchyFeature = void 0;
|
|
17324
17305
|
const vscode_1$1 = vscodeCompatibility;
|
|
17325
|
-
const vscode_languageserver_protocol_1$
|
|
17306
|
+
const vscode_languageserver_protocol_1$3 = main$3;
|
|
17326
17307
|
const client_1$2 = client;
|
|
17327
17308
|
|
|
17328
|
-
function ensure$
|
|
17309
|
+
function ensure$3(target, key) {
|
|
17329
17310
|
if (target[key] === void 0) {
|
|
17330
17311
|
target[key] = {};
|
|
17331
17312
|
}
|
|
@@ -17345,10 +17326,10 @@ class CallHierarchyProvider {
|
|
|
17345
17326
|
|
|
17346
17327
|
const prepareCallHierarchy = (document, position, token) => {
|
|
17347
17328
|
const params = client.code2ProtocolConverter.asTextDocumentPositionParams(document, position);
|
|
17348
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
17329
|
+
return client.sendRequest(vscode_languageserver_protocol_1$3.CallHierarchyPrepareRequest.type, params, token).then(result => {
|
|
17349
17330
|
return client.protocol2CodeConverter.asCallHierarchyItems(result);
|
|
17350
17331
|
}, error => {
|
|
17351
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
17332
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$3.CallHierarchyPrepareRequest.type, error, null);
|
|
17352
17333
|
});
|
|
17353
17334
|
};
|
|
17354
17335
|
|
|
@@ -17363,10 +17344,10 @@ class CallHierarchyProvider {
|
|
|
17363
17344
|
const params = {
|
|
17364
17345
|
item: client.code2ProtocolConverter.asCallHierarchyItem(item)
|
|
17365
17346
|
};
|
|
17366
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
17347
|
+
return client.sendRequest(vscode_languageserver_protocol_1$3.CallHierarchyIncomingCallsRequest.type, params, token).then(result => {
|
|
17367
17348
|
return client.protocol2CodeConverter.asCallHierarchyIncomingCalls(result);
|
|
17368
17349
|
}, error => {
|
|
17369
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
17350
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$3.CallHierarchyIncomingCallsRequest.type, error, null);
|
|
17370
17351
|
});
|
|
17371
17352
|
};
|
|
17372
17353
|
|
|
@@ -17381,10 +17362,10 @@ class CallHierarchyProvider {
|
|
|
17381
17362
|
const params = {
|
|
17382
17363
|
item: client.code2ProtocolConverter.asCallHierarchyItem(item)
|
|
17383
17364
|
};
|
|
17384
|
-
return client.sendRequest(vscode_languageserver_protocol_1$
|
|
17365
|
+
return client.sendRequest(vscode_languageserver_protocol_1$3.CallHierarchyOutgoingCallsRequest.type, params, token).then(result => {
|
|
17385
17366
|
return client.protocol2CodeConverter.asCallHierarchyOutgoingCalls(result);
|
|
17386
17367
|
}, error => {
|
|
17387
|
-
return client.handleFailedRequest(vscode_languageserver_protocol_1$
|
|
17368
|
+
return client.handleFailedRequest(vscode_languageserver_protocol_1$3.CallHierarchyOutgoingCallsRequest.type, error, null);
|
|
17388
17369
|
});
|
|
17389
17370
|
};
|
|
17390
17371
|
|
|
@@ -17395,12 +17376,12 @@ class CallHierarchyProvider {
|
|
|
17395
17376
|
|
|
17396
17377
|
class CallHierarchyFeature extends client_1$2.TextDocumentFeature {
|
|
17397
17378
|
constructor(client) {
|
|
17398
|
-
super(client, vscode_languageserver_protocol_1$
|
|
17379
|
+
super(client, vscode_languageserver_protocol_1$3.CallHierarchyPrepareRequest.type);
|
|
17399
17380
|
}
|
|
17400
17381
|
|
|
17401
17382
|
fillClientCapabilities(cap) {
|
|
17402
17383
|
const capabilities = cap;
|
|
17403
|
-
const capability = ensure$
|
|
17384
|
+
const capability = ensure$3(ensure$3(capabilities, 'textDocument'), 'callHierarchy');
|
|
17404
17385
|
capability.dynamicRegistration = true;
|
|
17405
17386
|
}
|
|
17406
17387
|
|
|
@@ -17427,6 +17408,65 @@ class CallHierarchyFeature extends client_1$2.TextDocumentFeature {
|
|
|
17427
17408
|
|
|
17428
17409
|
callHierarchy.CallHierarchyFeature = CallHierarchyFeature;
|
|
17429
17410
|
|
|
17411
|
+
var progress = {};
|
|
17412
|
+
|
|
17413
|
+
/* --------------------------------------------------------------------------------------------
|
|
17414
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
17415
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
17416
|
+
* ------------------------------------------------------------------------------------------ */
|
|
17417
|
+
|
|
17418
|
+
|
|
17419
|
+
Object.defineProperty(progress, "__esModule", {
|
|
17420
|
+
value: true
|
|
17421
|
+
});
|
|
17422
|
+
progress.ProgressFeature = void 0;
|
|
17423
|
+
const vscode_languageserver_protocol_1$2 = main$3;
|
|
17424
|
+
const progressPart_1 = progressPart;
|
|
17425
|
+
|
|
17426
|
+
function ensure$2(target, key) {
|
|
17427
|
+
if (target[key] === void 0) {
|
|
17428
|
+
target[key] = Object.create(null);
|
|
17429
|
+
}
|
|
17430
|
+
|
|
17431
|
+
return target[key];
|
|
17432
|
+
}
|
|
17433
|
+
|
|
17434
|
+
class ProgressFeature {
|
|
17435
|
+
constructor(_client) {
|
|
17436
|
+
this._client = _client;
|
|
17437
|
+
this.activeParts = new Set();
|
|
17438
|
+
}
|
|
17439
|
+
|
|
17440
|
+
fillClientCapabilities(capabilities) {
|
|
17441
|
+
ensure$2(capabilities, 'window').workDoneProgress = true;
|
|
17442
|
+
}
|
|
17443
|
+
|
|
17444
|
+
initialize() {
|
|
17445
|
+
const client = this._client;
|
|
17446
|
+
|
|
17447
|
+
const deleteHandler = part => {
|
|
17448
|
+
this.activeParts.delete(part);
|
|
17449
|
+
};
|
|
17450
|
+
|
|
17451
|
+
const createHandler = params => {
|
|
17452
|
+
this.activeParts.add(new progressPart_1.ProgressPart(this._client, params.token, deleteHandler));
|
|
17453
|
+
};
|
|
17454
|
+
|
|
17455
|
+
client.onRequest(vscode_languageserver_protocol_1$2.WorkDoneProgressCreateRequest.type, createHandler);
|
|
17456
|
+
}
|
|
17457
|
+
|
|
17458
|
+
dispose() {
|
|
17459
|
+
for (const part of this.activeParts) {
|
|
17460
|
+
part.done();
|
|
17461
|
+
}
|
|
17462
|
+
|
|
17463
|
+
this.activeParts.clear();
|
|
17464
|
+
}
|
|
17465
|
+
|
|
17466
|
+
}
|
|
17467
|
+
|
|
17468
|
+
progress.ProgressFeature = ProgressFeature;
|
|
17469
|
+
|
|
17430
17470
|
var semanticTokens = {};
|
|
17431
17471
|
|
|
17432
17472
|
/* --------------------------------------------------------------------------------------------
|
|
@@ -17678,6 +17718,7 @@ const colorProvider_1 = colorProvider;
|
|
|
17678
17718
|
const workspaceFolders_1 = workspaceFolders;
|
|
17679
17719
|
const foldingRange_1 = foldingRange;
|
|
17680
17720
|
const callHierarchy_1 = callHierarchy;
|
|
17721
|
+
const progress_1 = progress;
|
|
17681
17722
|
const semanticTokens_1 = semanticTokens;
|
|
17682
17723
|
const declaration_1 = declaration;
|
|
17683
17724
|
__exportStar(client, exports);
|
|
@@ -17745,6 +17786,7 @@ class MonacoLanguageClient extends client_1.BaseLanguageClient {
|
|
|
17745
17786
|
this.registerFeature(new declaration_1.DeclarationFeature(this));
|
|
17746
17787
|
this.registerFeature(new semanticTokens_1.SemanticTokensFeature(this));
|
|
17747
17788
|
this.registerFeature(new callHierarchy_1.CallHierarchyFeature(this));
|
|
17789
|
+
this.registerFeature(new progress_1.ProgressFeature(this));
|
|
17748
17790
|
const features = this['_features'];
|
|
17749
17791
|
for (const feature of features) {
|
|
17750
17792
|
if (feature instanceof colorProvider_1.ColorProviderFeature) {
|
|
@@ -18533,6 +18575,7 @@ class MonacoLanguages {
|
|
|
18533
18575
|
getLegend() {
|
|
18534
18576
|
return legend;
|
|
18535
18577
|
},
|
|
18578
|
+
onDidChange: provider.onDidChange,
|
|
18536
18579
|
provideDocumentSemanticTokens: (model, lastResultId, token) => __awaiter(this, void 0, void 0, function* () {
|
|
18537
18580
|
if (!this.matchModel(selector, MonacoModelIdentifier.fromModel(model))) {
|
|
18538
18581
|
return undefined;
|
|
@@ -18601,6 +18644,9 @@ class MonacoLanguages {
|
|
|
18601
18644
|
else {
|
|
18602
18645
|
languages.add(this.matchLanguageByFilter(selector));
|
|
18603
18646
|
}
|
|
18647
|
+
if (languages.has('*')) {
|
|
18648
|
+
return new Set(['*']);
|
|
18649
|
+
}
|
|
18604
18650
|
return languages;
|
|
18605
18651
|
}
|
|
18606
18652
|
matchLanguageByFilter(selector) {
|
|
@@ -18622,7 +18668,7 @@ var monacoWorkspace = {};
|
|
|
18622
18668
|
Object.defineProperty(monacoWorkspace, "__esModule", { value: true });
|
|
18623
18669
|
monacoWorkspace.MonacoWorkspace = void 0;
|
|
18624
18670
|
const services_1 = services$1;
|
|
18625
|
-
const vscode_languageserver_textdocument_1 = require$$1
|
|
18671
|
+
const vscode_languageserver_textdocument_1 = require$$1;
|
|
18626
18672
|
class MonacoWorkspace {
|
|
18627
18673
|
constructor(_monaco, p2m, m2p, _rootUri = null) {
|
|
18628
18674
|
this._monaco = _monaco;
|
|
@@ -19982,14 +20028,6 @@ delay$2.exports.default = delay;
|
|
|
19982
20028
|
|
|
19983
20029
|
var delay$1 = delay$2.exports;
|
|
19984
20030
|
|
|
19985
|
-
var sweetalert_min = {exports: {}};
|
|
19986
|
-
|
|
19987
|
-
(function (module, exports) {
|
|
19988
|
-
!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"}};}])});
|
|
19989
|
-
}(sweetalert_min));
|
|
19990
|
-
|
|
19991
|
-
var swal = /*@__PURE__*/getDefaultExportFromCjs(sweetalert_min.exports);
|
|
19992
|
-
|
|
19993
20031
|
class WatchableOutputChannel {
|
|
19994
20032
|
constructor(name) {
|
|
19995
20033
|
_defineProperty(this, "logs", '');
|
|
@@ -20035,6 +20073,20 @@ class WatchableConsoleWindow {
|
|
|
20035
20073
|
_defineProperty(this, "onDidChangeChannelsEmitter", new lib$1.Emitter());
|
|
20036
20074
|
|
|
20037
20075
|
_defineProperty(this, "channels", new Map());
|
|
20076
|
+
|
|
20077
|
+
_defineProperty(this, "withProgress", async (options, task) => {
|
|
20078
|
+
console.debug('[LSP]', 'Starting task with progress:', options.location, options.title);
|
|
20079
|
+
|
|
20080
|
+
try {
|
|
20081
|
+
return await task({
|
|
20082
|
+
report: params => {
|
|
20083
|
+
console.info('[LSP]', "Task progress: ".concat(params.increment, "%:"), params.message);
|
|
20084
|
+
}
|
|
20085
|
+
}, new lib$1.CancellationTokenSource().token);
|
|
20086
|
+
} finally {
|
|
20087
|
+
console.info('[LSP]', 'Task completed:', options.title);
|
|
20088
|
+
}
|
|
20089
|
+
});
|
|
20038
20090
|
}
|
|
20039
20091
|
|
|
20040
20092
|
async showMessage(type, message) {
|
|
@@ -20138,32 +20190,31 @@ class MemoryWorkspaceConfiguration {
|
|
|
20138
20190
|
|
|
20139
20191
|
}
|
|
20140
20192
|
|
|
20193
|
+
const simpleConfigurationService = monaco.editor.StaticServices.configurationService.get();
|
|
20194
|
+
|
|
20141
20195
|
class Configuration {
|
|
20142
20196
|
constructor() {
|
|
20143
20197
|
_defineProperty(this, "onDidChangeConfigurationEmitter", new lib$1.Emitter());
|
|
20144
|
-
|
|
20145
|
-
_defineProperty(this, "configurations", {});
|
|
20146
20198
|
}
|
|
20147
20199
|
|
|
20148
|
-
getConfiguration(section) {
|
|
20149
|
-
return new MemoryWorkspaceConfiguration(
|
|
20200
|
+
getConfiguration(section, resource) {
|
|
20201
|
+
return new MemoryWorkspaceConfiguration(this.getValue(section, resource));
|
|
20150
20202
|
}
|
|
20151
20203
|
|
|
20152
|
-
|
|
20153
|
-
|
|
20154
|
-
|
|
20155
|
-
});
|
|
20156
|
-
const event = {
|
|
20157
|
-
affectsConfiguration(eventSection) {
|
|
20158
|
-
return section === eventSection;
|
|
20159
|
-
}
|
|
20160
|
-
|
|
20204
|
+
getValue(section, resource) {
|
|
20205
|
+
const override = {
|
|
20206
|
+
resource: resource != null ? monaco.Uri.parse(resource) : null
|
|
20161
20207
|
};
|
|
20162
|
-
|
|
20208
|
+
|
|
20209
|
+
if (section == null) {
|
|
20210
|
+
return simpleConfigurationService.getValue(override);
|
|
20211
|
+
}
|
|
20212
|
+
|
|
20213
|
+
return simpleConfigurationService.getValue(section, override);
|
|
20163
20214
|
}
|
|
20164
20215
|
|
|
20165
20216
|
get onDidChangeConfiguration() {
|
|
20166
|
-
return
|
|
20217
|
+
return simpleConfigurationService.onDidChangeConfiguration;
|
|
20167
20218
|
}
|
|
20168
20219
|
|
|
20169
20220
|
}
|
|
@@ -20288,10 +20339,6 @@ function installServices() {
|
|
|
20288
20339
|
}
|
|
20289
20340
|
}
|
|
20290
20341
|
|
|
20291
|
-
function updateConfiguration(section, value) {
|
|
20292
|
-
services.workspace.configurations.update(section, value);
|
|
20293
|
-
}
|
|
20294
|
-
|
|
20295
20342
|
var lib = {};
|
|
20296
20343
|
|
|
20297
20344
|
var disposable = {};
|
|
@@ -20712,7 +20759,7 @@ async function openConnection(url, errorHandler, closeHandler) {
|
|
|
20712
20759
|
args[_key] = arguments[_key];
|
|
20713
20760
|
}
|
|
20714
20761
|
|
|
20715
|
-
connection.onRequest(args[0], function () {
|
|
20762
|
+
return connection.onRequest(args[0], function () {
|
|
20716
20763
|
// Hack for https://github.com/OmniSharp/omnisharp-roslyn/issues/2119
|
|
20717
20764
|
if (args[0].method === lib$1.RegistrationRequest.type.method) {
|
|
20718
20765
|
const registrationParams = arguments.length <= 0 ? undefined : arguments[0];
|
|
@@ -20745,7 +20792,7 @@ async function openConnection(url, errorHandler, closeHandler) {
|
|
|
20745
20792
|
// The shutdown should NEVER fail or the connection is not closed and the lsp client is not properly cleaned
|
|
20746
20793
|
// see https://github.com/microsoft/vscode-languageserver-node/blob/master/client/src/client.ts#L3103
|
|
20747
20794
|
try {
|
|
20748
|
-
connection.exit();
|
|
20795
|
+
await connection.exit();
|
|
20749
20796
|
} catch (error) {
|
|
20750
20797
|
console.warn('[LSP]', 'Error while shutdown lsp', error);
|
|
20751
20798
|
}
|
|
@@ -20764,24 +20811,18 @@ async function openConnection(url, errorHandler, closeHandler) {
|
|
|
20764
20811
|
const RETRY_DELAY = 3000;
|
|
20765
20812
|
|
|
20766
20813
|
class CGLSPConnectionProvider {
|
|
20767
|
-
constructor(
|
|
20768
|
-
|
|
20769
|
-
|
|
20770
|
-
|
|
20771
|
-
|
|
20772
|
-
_defineProperty(this, "libraryUrls", void 0);
|
|
20773
|
-
|
|
20774
|
-
_defineProperty(this, "getSecurityToken", void 0);
|
|
20775
|
-
|
|
20776
|
-
this.serverUrl = serverUrl;
|
|
20777
|
-
this.language = language;
|
|
20814
|
+
constructor(serverAddress, id, sessionId, libraryUrls, getSecurityToken) {
|
|
20815
|
+
this.serverAddress = serverAddress;
|
|
20816
|
+
this.id = id;
|
|
20817
|
+
this.sessionId = sessionId;
|
|
20778
20818
|
this.libraryUrls = libraryUrls;
|
|
20779
20819
|
this.getSecurityToken = getSecurityToken;
|
|
20780
20820
|
}
|
|
20781
20821
|
|
|
20782
20822
|
async get(errorHandler, closeHandler) {
|
|
20783
20823
|
try {
|
|
20784
|
-
const
|
|
20824
|
+
const path = this.sessionId != null ? "run/".concat(this.sessionId, "/").concat(this.id) : "run/".concat(this.id);
|
|
20825
|
+
const url = new URL(path, this.serverAddress);
|
|
20785
20826
|
this.libraryUrls.forEach(libraryUrl => url.searchParams.append('libraryUrl', libraryUrl));
|
|
20786
20827
|
url.searchParams.append('token', await this.getSecurityToken());
|
|
20787
20828
|
return await openConnection(url, errorHandler, closeHandler);
|
|
@@ -20794,39 +20835,274 @@ class CGLSPConnectionProvider {
|
|
|
20794
20835
|
|
|
20795
20836
|
}
|
|
20796
20837
|
|
|
20797
|
-
function createLanguageClient(_ref,
|
|
20838
|
+
function createLanguageClient(id, sessionId, _ref, languageServerAddress, getSecurityToken, libraryUrls, errorHandler, middleware) {
|
|
20798
20839
|
let {
|
|
20799
20840
|
documentSelector,
|
|
20800
|
-
|
|
20801
|
-
configurationSection,
|
|
20841
|
+
synchronize,
|
|
20802
20842
|
initializationOptions
|
|
20803
20843
|
} = _ref;
|
|
20804
20844
|
const client = new lib$1.MonacoLanguageClient({
|
|
20805
|
-
id: "".concat(
|
|
20806
|
-
name: "CodinGame ".concat(
|
|
20845
|
+
id: "".concat(id, "-languageclient"),
|
|
20846
|
+
name: "CodinGame ".concat(id, " Language Client"),
|
|
20807
20847
|
clientOptions: {
|
|
20808
20848
|
// use a language id as a document selector
|
|
20809
20849
|
documentSelector,
|
|
20810
20850
|
// disable the default error handler
|
|
20811
20851
|
errorHandler,
|
|
20812
20852
|
middleware,
|
|
20813
|
-
synchronize
|
|
20814
|
-
configurationSection
|
|
20815
|
-
},
|
|
20853
|
+
synchronize,
|
|
20816
20854
|
initializationOptions
|
|
20817
20855
|
},
|
|
20818
|
-
connectionProvider: new CGLSPConnectionProvider(
|
|
20856
|
+
connectionProvider: new CGLSPConnectionProvider(languageServerAddress, id, sessionId, libraryUrls, getSecurityToken)
|
|
20819
20857
|
});
|
|
20820
20858
|
client.registerProposedFeatures();
|
|
20821
|
-
registerExtensionFeatures(client,
|
|
20859
|
+
registerExtensionFeatures(client, id);
|
|
20822
20860
|
return client;
|
|
20823
20861
|
}
|
|
20824
20862
|
|
|
20863
|
+
const staticOptions = {
|
|
20864
|
+
angular: {
|
|
20865
|
+
documentSelector: [{
|
|
20866
|
+
scheme: 'file',
|
|
20867
|
+
pattern: '**/*.ts'
|
|
20868
|
+
}]
|
|
20869
|
+
},
|
|
20870
|
+
bash: {
|
|
20871
|
+
documentSelector: [{
|
|
20872
|
+
scheme: 'file',
|
|
20873
|
+
pattern: '**/*.bash'
|
|
20874
|
+
}]
|
|
20875
|
+
},
|
|
20876
|
+
c: {
|
|
20877
|
+
documentSelector: [{
|
|
20878
|
+
scheme: 'file',
|
|
20879
|
+
language: 'c'
|
|
20880
|
+
}]
|
|
20881
|
+
},
|
|
20882
|
+
csharp: {
|
|
20883
|
+
documentSelector: [{
|
|
20884
|
+
language: 'csharp'
|
|
20885
|
+
}]
|
|
20886
|
+
},
|
|
20887
|
+
cpp: {
|
|
20888
|
+
documentSelector: [{
|
|
20889
|
+
scheme: 'file',
|
|
20890
|
+
language: 'cpp'
|
|
20891
|
+
}, {
|
|
20892
|
+
scheme: 'file',
|
|
20893
|
+
language: 'cuda-cpp'
|
|
20894
|
+
}]
|
|
20895
|
+
},
|
|
20896
|
+
clojure: {
|
|
20897
|
+
documentSelector: [{
|
|
20898
|
+
scheme: 'file',
|
|
20899
|
+
pattern: '**/*.clj',
|
|
20900
|
+
language: 'clojure'
|
|
20901
|
+
}]
|
|
20902
|
+
},
|
|
20903
|
+
cobol: {
|
|
20904
|
+
documentSelector: ['COBOL'],
|
|
20905
|
+
synchronize: {
|
|
20906
|
+
configurationSection: 'cobol-lsp'
|
|
20907
|
+
}
|
|
20908
|
+
},
|
|
20909
|
+
dart: {
|
|
20910
|
+
documentSelector: [{
|
|
20911
|
+
scheme: 'file',
|
|
20912
|
+
pattern: '**/*.dart',
|
|
20913
|
+
language: 'dart'
|
|
20914
|
+
}]
|
|
20915
|
+
},
|
|
20916
|
+
go: {
|
|
20917
|
+
documentSelector: [{
|
|
20918
|
+
language: 'go',
|
|
20919
|
+
scheme: 'file'
|
|
20920
|
+
}, {
|
|
20921
|
+
language: 'go.mod',
|
|
20922
|
+
scheme: 'file'
|
|
20923
|
+
}, {
|
|
20924
|
+
language: 'go.sum',
|
|
20925
|
+
scheme: 'file'
|
|
20926
|
+
}, {
|
|
20927
|
+
language: 'go.work',
|
|
20928
|
+
scheme: 'file'
|
|
20929
|
+
}, {
|
|
20930
|
+
language: 'tmpl',
|
|
20931
|
+
scheme: 'file'
|
|
20932
|
+
}],
|
|
20933
|
+
initializationOptions: {
|
|
20934
|
+
lintTool: 'golint',
|
|
20935
|
+
diagnosticsEnabled: true,
|
|
20936
|
+
gocodeCompletionEnabled: true
|
|
20937
|
+
}
|
|
20938
|
+
},
|
|
20939
|
+
groovy: {
|
|
20940
|
+
documentSelector: [{
|
|
20941
|
+
scheme: 'file',
|
|
20942
|
+
language: 'groovy'
|
|
20943
|
+
}],
|
|
20944
|
+
synchronize: {
|
|
20945
|
+
configurationSection: 'groovy'
|
|
20946
|
+
}
|
|
20947
|
+
},
|
|
20948
|
+
java: {
|
|
20949
|
+
documentSelector: [{
|
|
20950
|
+
scheme: 'file',
|
|
20951
|
+
language: 'java'
|
|
20952
|
+
}, {
|
|
20953
|
+
scheme: 'jdt',
|
|
20954
|
+
language: 'java'
|
|
20955
|
+
}, {
|
|
20956
|
+
scheme: 'untitled',
|
|
20957
|
+
language: 'java'
|
|
20958
|
+
}],
|
|
20959
|
+
synchronize: {
|
|
20960
|
+
configurationSection: ['java', 'editor.insertSpaces', 'editor.tabSize']
|
|
20961
|
+
}
|
|
20962
|
+
},
|
|
20963
|
+
javascript: {
|
|
20964
|
+
documentSelector: [{
|
|
20965
|
+
pattern: '**/*.{js}',
|
|
20966
|
+
language: 'javascript'
|
|
20967
|
+
}, {
|
|
20968
|
+
pattern: '**/**.{js,jsx}',
|
|
20969
|
+
language: 'javascript'
|
|
20970
|
+
}]
|
|
20971
|
+
},
|
|
20972
|
+
kotlin: {
|
|
20973
|
+
// https://github.com/fwcd/vscode-kotlin/blob/db5916080868a6a8e064c60d49624926c2fa61bd/src/languageSetup.ts#L104
|
|
20974
|
+
documentSelector: [{
|
|
20975
|
+
language: 'kotlin',
|
|
20976
|
+
scheme: 'file'
|
|
20977
|
+
}, {
|
|
20978
|
+
language: 'kotlin',
|
|
20979
|
+
scheme: 'kls'
|
|
20980
|
+
}],
|
|
20981
|
+
synchronize: {
|
|
20982
|
+
configurationSection: 'kotlin'
|
|
20983
|
+
}
|
|
20984
|
+
},
|
|
20985
|
+
lua: {
|
|
20986
|
+
documentSelector: [{
|
|
20987
|
+
scheme: 'file',
|
|
20988
|
+
language: 'lua'
|
|
20989
|
+
}],
|
|
20990
|
+
synchronize: {
|
|
20991
|
+
configurationSection: 'Lua'
|
|
20992
|
+
}
|
|
20993
|
+
},
|
|
20994
|
+
'php-serenata': {
|
|
20995
|
+
// https://gitlab.com/Serenata/visual-studio-code-client/-/blob/master/src/extension.ts#L120
|
|
20996
|
+
documentSelector: [{
|
|
20997
|
+
pattern: '**/*.php',
|
|
20998
|
+
scheme: 'file'
|
|
20999
|
+
}],
|
|
21000
|
+
synchronize: {
|
|
21001
|
+
configurationSection: 'serenata'
|
|
21002
|
+
},
|
|
21003
|
+
initializationOptions: {
|
|
21004
|
+
configuration: {
|
|
21005
|
+
uris: ['file:///tmp/project'],
|
|
21006
|
+
phpVersion: 7.3,
|
|
21007
|
+
fileExtensions: ['php'],
|
|
21008
|
+
indexDatabaseUri: 'file:///tmp/index.sqlite',
|
|
21009
|
+
excludedPathExpressions: ['file:///opt/serenata']
|
|
21010
|
+
}
|
|
21011
|
+
}
|
|
21012
|
+
},
|
|
21013
|
+
php: {
|
|
21014
|
+
documentSelector: [{
|
|
21015
|
+
pattern: '**/*.php',
|
|
21016
|
+
language: 'php'
|
|
21017
|
+
}]
|
|
21018
|
+
},
|
|
21019
|
+
python: {
|
|
21020
|
+
documentSelector: [{
|
|
21021
|
+
language: 'python'
|
|
21022
|
+
}],
|
|
21023
|
+
synchronize: {
|
|
21024
|
+
configurationSection: 'python'
|
|
21025
|
+
}
|
|
21026
|
+
},
|
|
21027
|
+
r: {
|
|
21028
|
+
// https://github.com/REditorSupport/vscode-R/blob/96ed4740101d8cd82f908b415df1dd205b4be824/src/languageService.ts#L186
|
|
21029
|
+
documentSelector: [{
|
|
21030
|
+
scheme: 'file',
|
|
21031
|
+
language: 'r'
|
|
21032
|
+
}, {
|
|
21033
|
+
scheme: 'file',
|
|
21034
|
+
language: 'rmd'
|
|
21035
|
+
}],
|
|
21036
|
+
synchronize: {
|
|
21037
|
+
configurationSection: 'r.lsp'
|
|
21038
|
+
}
|
|
21039
|
+
},
|
|
21040
|
+
react: {
|
|
21041
|
+
documentSelector: [{
|
|
21042
|
+
pattern: '**/*.{js,jsx}',
|
|
21043
|
+
language: 'javascript'
|
|
21044
|
+
}],
|
|
21045
|
+
synchronize: {}
|
|
21046
|
+
},
|
|
21047
|
+
ruby: {
|
|
21048
|
+
// https://github.com/rubyide/vscode-ruby/blob/8ba0e01956865a3dbd932279a3d42f7183bcf73a/packages/vscode-ruby-client/src/client.ts#L30
|
|
21049
|
+
documentSelector: [{
|
|
21050
|
+
scheme: 'file',
|
|
21051
|
+
language: 'ruby'
|
|
21052
|
+
}, {
|
|
21053
|
+
scheme: 'untitled',
|
|
21054
|
+
language: 'ruby'
|
|
21055
|
+
}]
|
|
21056
|
+
},
|
|
21057
|
+
rust: {
|
|
21058
|
+
// https://github.com/rust-lang/vscode-rust/blob/b1ae67b06640ffab6e1ebb72e07364b4477dfbf1/rust-analyzer/editors/code/src/client.ts#L42
|
|
21059
|
+
documentSelector: [{
|
|
21060
|
+
scheme: 'file',
|
|
21061
|
+
language: 'rust'
|
|
21062
|
+
}]
|
|
21063
|
+
},
|
|
21064
|
+
scala: {
|
|
21065
|
+
documentSelector: [{
|
|
21066
|
+
scheme: 'file',
|
|
21067
|
+
language: 'scala'
|
|
21068
|
+
}],
|
|
21069
|
+
synchronize: {
|
|
21070
|
+
configurationSection: 'metals'
|
|
21071
|
+
}
|
|
21072
|
+
},
|
|
21073
|
+
sql: {
|
|
21074
|
+
documentSelector: [{
|
|
21075
|
+
language: 'sql'
|
|
21076
|
+
}]
|
|
21077
|
+
},
|
|
21078
|
+
swift: {
|
|
21079
|
+
// https://github.com/apple/sourcekit-lsp/blob/59b5e68f7f8408b5bc44bd47f71ef1afdc63e7a6/Editors/vscode/src/extension.ts#L22
|
|
21080
|
+
documentSelector: ['swift', 'cpp', 'c', 'objective-c', 'objective-cpp'],
|
|
21081
|
+
synchronize: {}
|
|
21082
|
+
},
|
|
21083
|
+
typescript: {
|
|
21084
|
+
documentSelector: [{
|
|
21085
|
+
pattern: '**/*.{ts}',
|
|
21086
|
+
language: 'typescript'
|
|
21087
|
+
}],
|
|
21088
|
+
synchronize: {}
|
|
21089
|
+
},
|
|
21090
|
+
vue: {
|
|
21091
|
+
documentSelector: [{
|
|
21092
|
+
pattern: '**/*.js',
|
|
21093
|
+
language: 'javascript'
|
|
21094
|
+
}],
|
|
21095
|
+
synchronize: {}
|
|
21096
|
+
}
|
|
21097
|
+
};
|
|
21098
|
+
|
|
20825
21099
|
class LanguageClientManager {
|
|
20826
|
-
constructor(
|
|
20827
|
-
this.
|
|
21100
|
+
constructor(id, sessionId, languageServerAddress, getSecurityToken, languageServerOptions, libraryUrls) {
|
|
21101
|
+
this.id = id;
|
|
21102
|
+
this.sessionId = sessionId;
|
|
21103
|
+
this.languageServerAddress = languageServerAddress;
|
|
20828
21104
|
this.getSecurityToken = getSecurityToken;
|
|
20829
|
-
this.
|
|
21105
|
+
this.languageServerOptions = languageServerOptions;
|
|
20830
21106
|
this.libraryUrls = libraryUrls;
|
|
20831
21107
|
|
|
20832
21108
|
_defineProperty(this, "languageClient", void 0);
|
|
@@ -20839,8 +21115,6 @@ class LanguageClientManager {
|
|
|
20839
21115
|
|
|
20840
21116
|
_defineProperty(this, "currentStatus", void 0);
|
|
20841
21117
|
|
|
20842
|
-
_defineProperty(this, "configuration", void 0);
|
|
20843
|
-
|
|
20844
21118
|
_defineProperty(this, "handleClose", () => {
|
|
20845
21119
|
if (this.isDisposed()) {
|
|
20846
21120
|
return lib$1.CloseAction.DoNotRestart;
|
|
@@ -20857,8 +21131,6 @@ class LanguageClientManager {
|
|
|
20857
21131
|
});
|
|
20858
21132
|
return lib$1.ErrorAction.Continue;
|
|
20859
21133
|
});
|
|
20860
|
-
|
|
20861
|
-
this.configuration = languageServerConfig.configuration;
|
|
20862
21134
|
}
|
|
20863
21135
|
|
|
20864
21136
|
updateStatus(status) {
|
|
@@ -20903,41 +21175,64 @@ class LanguageClientManager {
|
|
|
20903
21175
|
}
|
|
20904
21176
|
|
|
20905
21177
|
isModelManaged(document) {
|
|
20906
|
-
|
|
21178
|
+
if (this.languageServerOptions.documentSelector == null) {
|
|
21179
|
+
return false;
|
|
21180
|
+
}
|
|
21181
|
+
|
|
21182
|
+
return lib$1.Services.get().languages.match(this.languageServerOptions.documentSelector, document);
|
|
20907
21183
|
}
|
|
20908
21184
|
|
|
20909
21185
|
isDisposed() {
|
|
20910
21186
|
return this.languageClient == null;
|
|
20911
21187
|
}
|
|
20912
21188
|
|
|
20913
|
-
updateConfiguration(configuration) {
|
|
20914
|
-
const {
|
|
20915
|
-
configurationSection
|
|
20916
|
-
} = this.languageServerConfig;
|
|
20917
|
-
this.configuration = configuration;
|
|
20918
|
-
|
|
20919
|
-
if (configurationSection != null && this.languageClient != null) {
|
|
20920
|
-
updateConfiguration(configurationSection, configuration);
|
|
20921
|
-
}
|
|
20922
|
-
}
|
|
20923
|
-
|
|
20924
21189
|
start() {
|
|
20925
|
-
const
|
|
20926
|
-
const languageClient = createLanguageClient(this.
|
|
21190
|
+
const onServerResponse = new lib$1.Emitter();
|
|
21191
|
+
const languageClient = createLanguageClient(this.id, this.sessionId, this.languageServerOptions, this.languageServerAddress, this.getSecurityToken, this.libraryUrls, {
|
|
20927
21192
|
error: this.handleError,
|
|
20928
21193
|
closed: this.handleClose
|
|
20929
21194
|
}, {
|
|
20930
21195
|
handleDiagnostics: (uri, diagnostics, next) => {
|
|
20931
21196
|
next(uri, diagnostics);
|
|
20932
|
-
|
|
21197
|
+
onServerResponse.fire();
|
|
21198
|
+
},
|
|
21199
|
+
provideCodeActions: async (document, range, context, token, next) => {
|
|
21200
|
+
try {
|
|
21201
|
+
return await next(document, range, context, token);
|
|
21202
|
+
} finally {
|
|
21203
|
+
onServerResponse.fire();
|
|
21204
|
+
}
|
|
21205
|
+
},
|
|
21206
|
+
provideDocumentRangeSemanticTokens: async (document, range, token, next) => {
|
|
21207
|
+
try {
|
|
21208
|
+
return await next(document, range, token);
|
|
21209
|
+
} finally {
|
|
21210
|
+
onServerResponse.fire();
|
|
21211
|
+
}
|
|
21212
|
+
},
|
|
21213
|
+
provideDocumentSemanticTokens: async (document, token, next) => {
|
|
21214
|
+
try {
|
|
21215
|
+
return await next(document, token);
|
|
21216
|
+
} finally {
|
|
21217
|
+
onServerResponse.fire();
|
|
21218
|
+
}
|
|
21219
|
+
},
|
|
21220
|
+
handleWorkDoneProgress: async (token, params, next) => {
|
|
21221
|
+
next(token, params);
|
|
21222
|
+
|
|
21223
|
+
if (params.kind === 'end') {
|
|
21224
|
+
onServerResponse.fire();
|
|
21225
|
+
}
|
|
21226
|
+
},
|
|
21227
|
+
provideHover: async (document, position, token, next) => {
|
|
21228
|
+
try {
|
|
21229
|
+
return await next(document, position, token);
|
|
21230
|
+
} finally {
|
|
21231
|
+
onServerResponse.fire();
|
|
21232
|
+
}
|
|
20933
21233
|
}
|
|
20934
21234
|
});
|
|
20935
21235
|
this.languageClient = languageClient;
|
|
20936
|
-
|
|
20937
|
-
if (this.configuration != null) {
|
|
20938
|
-
this.updateConfiguration(this.configuration);
|
|
20939
|
-
}
|
|
20940
|
-
|
|
20941
21236
|
let readyPromise = null;
|
|
20942
21237
|
languageClient.onDidChangeState(async state => {
|
|
20943
21238
|
switch (state.newState) {
|
|
@@ -20950,7 +21245,7 @@ class LanguageClientManager {
|
|
|
20950
21245
|
readyPromise = languageClient.onReady().then(async () => {
|
|
20951
21246
|
let disposable = null;
|
|
20952
21247
|
await Promise.race([new Promise(resolve => {
|
|
20953
|
-
disposable =
|
|
21248
|
+
disposable = onServerResponse.event(resolve);
|
|
20954
21249
|
}), delay$1(15000)]);
|
|
20955
21250
|
disposable.dispose();
|
|
20956
21251
|
}, error => {
|
|
@@ -20997,14 +21292,20 @@ class LanguageClientManager {
|
|
|
20997
21292
|
}
|
|
20998
21293
|
const languageClientManagerByLanguageId = {};
|
|
20999
21294
|
|
|
21000
|
-
function createLanguageClientManager(
|
|
21001
|
-
if (languageClientManagerByLanguageId[
|
|
21002
|
-
throw new Error("Language client for language ".concat(
|
|
21295
|
+
function createLanguageClientManager(id, sessionId, languageServerAddress, getSecurityToken, libraryUrls) {
|
|
21296
|
+
if (languageClientManagerByLanguageId[id] != null) {
|
|
21297
|
+
throw new Error("Language client for language ".concat(id, " already started"));
|
|
21298
|
+
}
|
|
21299
|
+
|
|
21300
|
+
const languageServerOptions = staticOptions[id];
|
|
21301
|
+
|
|
21302
|
+
if (languageServerOptions == null) {
|
|
21303
|
+
throw new Error("Unknown ".concat(id, " language server"));
|
|
21003
21304
|
}
|
|
21004
21305
|
|
|
21005
21306
|
installServices();
|
|
21006
|
-
const languageClientManager = new LanguageClientManager(
|
|
21007
|
-
languageClientManagerByLanguageId[
|
|
21307
|
+
const languageClientManager = new LanguageClientManager(id, sessionId, languageServerAddress, getSecurityToken, languageServerOptions, libraryUrls);
|
|
21308
|
+
languageClientManagerByLanguageId[id] = languageClientManager;
|
|
21008
21309
|
const textModelContentProviderDisposable = registerTextModelContentProvider('file', {
|
|
21009
21310
|
async provideTextContent(resource) {
|
|
21010
21311
|
try {
|
|
@@ -21018,7 +21319,7 @@ function createLanguageClientManager(languageServerUrl, getSecurityToken, langua
|
|
|
21018
21319
|
|
|
21019
21320
|
});
|
|
21020
21321
|
languageClientManager.onWillClose(() => {
|
|
21021
|
-
delete languageClientManagerByLanguageId[
|
|
21322
|
+
delete languageClientManagerByLanguageId[id];
|
|
21022
21323
|
textModelContentProviderDisposable.dispose();
|
|
21023
21324
|
});
|
|
21024
21325
|
return languageClientManager;
|