@knime/scripting-editor 0.0.127 → 0.0.129
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/{AnyOfTwinlist-C0gjxeQW-C5wsbDLK.js → AnyOfTwinlist-Chx0nmt3-DPMbiVZd.js} +5 -4
- package/dist/{ArrayLayout-U4hs5LA_.js → ArrayLayout-C2-4wxkT.js} +39 -39
- package/dist/{ButtonControl-B8WGWs_m.js → ButtonControl-Dga3IomB.js} +26 -26
- package/dist/CheckboxControl-B8b1Di4k-CEkOsWEu.js +40 -0
- package/dist/CheckboxesControl-DWUnPGdN-BOSX_stf.js +42 -0
- package/dist/CodeEditorControl-CN4ltMvy.js +133 -0
- package/dist/{ColorControl-DeSwgyjS-BW1FBjqa.js → ColorControl-ByE5ku7u-C12pZ0rg.js} +10 -8
- package/dist/ColorPreviewControl-XiKZ4jfn-CLIjX6M_.js +89 -0
- package/dist/ComboBoxControl-zSceYlyZ-BgpAi7q9.js +42 -0
- package/dist/{ConfigurationNodeNotSupported-Bg2W0ik5.js → ConfigurationNodeNotSupported-B27grebd.js} +3 -3
- package/dist/ControlWithSubParameters-ROJGaqDF.js +63 -0
- package/dist/CredentialsControl-B6jczlBv.js +33 -0
- package/dist/CredentialsControlBase-CdNdAngd.js +96 -0
- package/dist/DateControl-BBGpEVpr-yZP_TZnE.js +44 -0
- package/dist/DateTimeControl-CymOURq5-Ca0mT1HW.js +89 -0
- package/dist/DateTimeFormatPickerControl-Bx19jwpr-Bd0xBs4D.js +37 -0
- package/dist/DateTimeFormatPickerWithTypeControl-Byo_0cTq-C0ZfMqtp.js +598 -0
- package/dist/{DialogFileExplorer-Bi0DVFut.js → DialogFileExplorer-BmT2YlVn.js} +2 -2
- package/dist/{DirtyTrackerRenderer-CDcL-lwX.js → DirtyTrackerRenderer-BG451zZD.js} +10 -10
- package/dist/DropdownControl-C6ffVYyf-hy0i8nDV.js +32 -0
- package/dist/DynamicInputControl-W23Zexge.js +6 -0
- package/dist/ExecutorCoresControl-D9FZ-g9O-Dws9IhAs.js +51 -0
- package/dist/ExecutorMemoryControl-__P80Lkb-DxQZ2IuA.js +44 -0
- package/dist/{FileChooserControl-BR84kEXy.js → FileChooserControl-BBbay7zU.js} +4 -3
- package/dist/{FileChooserControlBase-1oayQJzv.js → FileChooserControlBase-DpYYK3eE.js} +147 -143
- package/dist/{FileChooserControlForMultiFile-ChQtkmps.js → FileChooserControlForMultiFile-6NLYZKbt.js} +5 -4
- package/dist/FileUploadControl-DWs4PhOj-BvByW-Tq.js +545 -0
- package/dist/GridSelectionControl-WcJ4y6Fs-BoxSk0VG.js +117 -0
- package/dist/{HorizontalLayout-DwdPdBTW-w5bjgNga.js → HorizontalLayout-ByB5A7X3-BURAMMFG.js} +5 -5
- package/dist/{IntegerControl-D8OzxbRA-D9mR5ahj.js → IntegerControl-aveswmbr-50_b6vGY.js} +5 -4
- package/dist/IntervalControl-B4Eqs1Jf-CiB2D52B.js +51 -0
- package/dist/{LabeledGroup-BzXUTco4.js → LabeledGroup-BONZ_GLo.js} +3 -3
- package/dist/LegacyCredentialsControl-DaIrvNBd.js +88 -0
- package/dist/{LinkControl-BvBBTFCs-DojlONSA.js → LinkControl-DD56lOiw-CDy6OBu8.js} +10 -10
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo-CtYj2B6v.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-CscatDmg-BaroyBA0.js} +1 -1
- package/dist/ManualTwinlistControl-DBZ5RZgW-BV5qOGau.js +77 -0
- package/dist/MultiFileChooserControl-cyndOpF7.js +341 -0
- package/dist/{MultiRuleWrapper-TvQw5Kaj.js → MultiRuleWrapper-Db-W_o1f.js} +1 -1
- package/dist/{MultiSelectListBoxControl-nmvLP18g-feO16jJ4.js → MultiSelectListBoxControl-BMsPvxGQ-5ua-fVR8.js} +10 -9
- package/dist/{MultimodeTwinlistControl-yCdeWH2E-DG6GXu0l.js → MultimodeTwinlistControl-thO1be1r-8kc-JSH1.js} +64 -62
- package/dist/{NameFilter-D1TMJydD-Db00pnR3.js → NameFilter-DBMVmZmk-DnB-5f39.js} +7 -6
- package/dist/{NumberControl-uLMOLEbg-B_H33dGY.js → NumberControl-BPVO5l6t--nrQcx4m.js} +8 -7
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6-Df5EPyns.js +54 -0
- package/dist/OneOfDropdown-DBG8ZcpV-cZs_ptrT.js +36 -0
- package/dist/{RadioButtonsWithDescriptionControl-5M_6G7Qk-BHHWv0Y0.js → RadioButtonsWithDescriptionControl-BsqMTEB5-COGPhNPs.js} +17 -17
- package/dist/RadioControl-ClJmr0EQ-BzjoXaZ3.js +21 -0
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-Bm4EUEvw-Cabfycg_.js +64 -0
- package/dist/ResourceControlBase-CeXYJeR1-DSmxhV0s.js +113 -0
- package/dist/{RichTextControl-D9QD2_uO-OY669heQ.js → RichTextControl-DvYkBpzH-CtMZq2re.js} +7876 -6699
- package/dist/{SectionLayout-DY27pAtG-BIZg0kiA.js → SectionLayout-CwRO3UXc-d5rFpCRN.js} +5 -5
- package/dist/SettingsSubPanelLayout-CV6y2bcX-OzpF07vB.js +64 -0
- package/dist/{SimpleTwinlistControl-P4KEYOq0-97VRLEr4.js → SimpleTwinlistControl-BSON5VYy-BaAaU86G.js} +7 -6
- package/dist/SingleSelectControl-BSqORMYm-CBP_mVGB.js +58 -0
- package/dist/{SingleSelectListBoxControl-oMWH0vEE-Ewf1HUGa.js → SingleSelectListBoxControl-CFdKzbOK-CruT9yt-.js} +14 -13
- package/dist/{SortListControl-4v3T2j_9-BkTlN-H5.js → SortListControl-DZIHeQmn-CKRyT1hN.js} +41 -39
- package/dist/{StringFileChooserControl-BVH5iHNM.js → StringFileChooserControl-Br8gZTku.js} +33 -30
- package/dist/{StyledListItem-D3LSfgGV-B9rTS8WT.js → StyledListItem--sgmJ3W_-Bo6f-_9B.js} +1 -1
- package/dist/{TeamAndSpacesControl-CH5ImByy-aTqgKpBn.js → TeamAndSpacesControl-DiMyDT-5-Br-Lq0ki.js} +21 -20
- package/dist/TeamResourceControl-Bag_dwA1-PdtnhxEi.js +44 -0
- package/dist/{TextAreaControl-CrsZSU_f-CNj59YPm.js → TextAreaControl-B52P0DAa-McfOgZWn.js} +10 -8
- package/dist/TextControl-52n-sttB-DssWw4KP.js +50962 -0
- package/dist/TimeControl-Cu12_qpz-CK1bxhya.js +71 -0
- package/dist/TimeframesControl-DhdC8OS1-DYseJbBV.js +352 -0
- package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz-DU6yd1RM.js +45 -0
- package/dist/{TypedStringFilter-ry7fTUTx-CCJRabai.js → TypedStringFilter-zJOICQei-B-5z8atp.js} +7 -6
- package/dist/{ValueSwitchControl-aVx7pUi9-7kuEbp3H.js → ValueSwitchControl-CEVWJH7z-DzuxqLvy.js} +7 -6
- package/dist/{VennDiagramLayout-D8s5yYbT.js → VennDiagramLayout-DyTZ5EJ9.js} +24 -24
- package/dist/{VerticalLayout-Bv-LJOZ0-BTrnMnQu.js → VerticalLayout-D_13xb_m-BfU1M3IE.js} +7 -7
- package/dist/ZonedDateTimeControl-C-vO6fC1-XngmuFqW.js +82 -0
- package/dist/{ai-bar-DLr5A9ZW.js → ai-bar-DDtzX23v.js} +775 -732
- package/dist/classApi-CHpAZrj3-BptMrhKH.js +3328 -0
- package/dist/collection-BBXRVj4b-DhO8c3tP.js +22 -0
- package/dist/collection-BBXRVj4b-DzRZ2FYd-COyFmQqa.js +22 -0
- package/dist/collection-BBXRVj4b-grENCIdl.js +22 -0
- package/dist/main.js +9977 -13304
- package/dist/parameters.js +1 -1
- package/dist/plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js +52 -0
- package/dist/src/components/ScriptingEditor.vue.d.ts +6 -4
- package/dist/src/components/SettingsPage.vue.d.ts +5 -4
- package/dist/src/scripting-service.d.ts +1 -1
- package/dist/useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js +2003 -0
- package/dist/{useFileChooserBackend-Bs7hx7xH.js → useFileChooserBackend-CLdJ1RU1.js} +6 -6
- package/dist/usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js +34 -0
- package/dist/{usePossibleValues-B-W6u-1T-DcglK6MY.js → usePossibleValues-DiYOmnZW-CaSLjdK-.js} +4 -4
- package/package.json +3 -3
- package/dist/CheckboxControl-CS6iXHnF-DLCN_obF.js +0 -38
- package/dist/CheckboxesControl-CPKIkyWt-BgPFZcJW.js +0 -40
- package/dist/CodeEditorControl-DM7k0B2q.js +0 -103
- package/dist/ColorPreviewControl-CntI0nTL-qVTX4e1m.js +0 -89
- package/dist/ComboBoxControl-DBYnBkC4-1oOLCCms.js +0 -40
- package/dist/ControlWithSubParameters-DgJhqCMe.js +0 -80
- package/dist/CredentialsControl-CuHgBJQY.js +0 -32
- package/dist/CredentialsControlBase-14mA9Xg5.js +0 -96
- package/dist/DateControl-Cx_CwvNB-Cnu4FwAv.js +0 -35
- package/dist/DateTimeControl-BJsDzufC-BLhNM1JR.js +0 -56
- package/dist/DateTimeFormatPickerControl-C80v1qfK-0bjg1c9X.js +0 -35
- package/dist/DateTimeFormatPickerWithTypeControl-Dt-FKtYV-x-IJKc_b.js +0 -475
- package/dist/DropdownControl-D_BnA4-1-BWnnlfiI.js +0 -30
- package/dist/DynamicInputControl-u5VOv3zx.js +0 -6
- package/dist/ExecutorCoresControl-BnglyGMR-CagN3N5j.js +0 -56
- package/dist/ExecutorMemoryControl-CRATGs9C-Dsj7vG41.js +0 -50
- package/dist/FileUploadControl-D42rjpJg-DIoT6HeI.js +0 -221
- package/dist/GridSelectionControl-BJk8-yiM-CvDVlby0.js +0 -116
- package/dist/IntervalControl-Drljrv-b-WpTsaCtp.js +0 -751
- package/dist/LegacyCredentialsControl-C5OmuHPe.js +0 -87
- package/dist/ManualTwinlistControl-By0Hur_m-zZbz98JO.js +0 -75
- package/dist/MultiFileChooserControl-BDBYwcSY.js +0 -401
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-FEqHVnFo.js +0 -52
- package/dist/OneOfDropdown-CDwwxb3h-DAK0CMDe.js +0 -34
- package/dist/RadioControl-C73s-icb-DSF6WESw.js +0 -24
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-oNoT_40f.js +0 -60
- package/dist/ResourceControlBase-Bqq1PAX_-5gNwtS9Y.js +0 -183
- package/dist/SettingsSubPanelLayout-82gMWhpv-DwWBU76p.js +0 -70
- package/dist/SingleSelectControl-C_ZKkV5m-nfkmmDbp.js +0 -56
- package/dist/TeamResourceControl-BFMuyWnk-DvcyxCqW.js +0 -47
- package/dist/TextControl-B0ag-3Pv-nwKlVRtp.js +0 -54671
- package/dist/TimeControl-Bt5OcjBc-KiaYQH-m.js +0 -41
- package/dist/TimePartInput-CvwAzDuY-CuNpUUqj.js +0 -253
- package/dist/TimeframesControl-BE3LFgyl-hQJ_5QVJ.js +0 -94
- package/dist/Tooltip-UlemzxdS-Dfhzj7no.js +0 -24
- package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD-KqyVUaZj.js +0 -42
- package/dist/ValueSwitch-BXaDBm2C-Ba93O_aZ.js +0 -130
- package/dist/ZonedDateTimeControl-6MUvXzd3-B1B9FPa7.js +0 -72
- package/dist/_Uint8Array-C_ozLuQF-DBc0hZkr.js +0 -349
- package/dist/arrow-dropdown-DMFBPPcK-uCJYJfqE.js +0 -17
- package/dist/arrow-next-BQULX8HT-DDsCfA5A.js +0 -17
- package/dist/floating-ui.vue-Fx4CxKut-DAsMxBCU.js +0 -1057
- package/dist/isArray-WzO_os3q-ClnPWjBY.js +0 -4
- package/dist/localTimeUtils-DBMwKtLh-CTshgG3l.js +0 -12470
- package/dist/src/lsp/completion.d.ts +0 -7
- package/dist/src/lsp/connection.d.ts +0 -56
- package/dist/src/lsp/diagnostics.d.ts +0 -4
- package/dist/src/lsp/doc-sync.d.ts +0 -5
- package/dist/src/lsp/hover.d.ts +0 -5
- package/dist/src/lsp/knime-io.d.ts +0 -22
- package/dist/src/lsp/mapping-utils.d.ts +0 -8
- package/dist/src/lsp/signature-help.d.ts +0 -5
- package/dist/toString-C-CNeuJl-jseUiiTM.js +0 -949
- package/dist/useDropdownNavigation-2Yhk7zes-75raAHpT.js +0 -821
- /package/dist/{useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js → useUnknownValuesInTwinlist-BhhirtmX-D2ve7iXH.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var ba = Object.defineProperty;
|
|
2
2
|
var _a = (e, t, i) => t in e ? ba(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
|
-
var
|
|
3
|
+
var Se = (e, t, i) => _a(e, typeof t != "symbol" ? t + "" : t, i);
|
|
4
4
|
import { shallowRef as Ln, onMounted as Ko, onUnmounted as Qo, ref as tt, readonly as _i, computed as Ta, reactive as Ra, watch as Da } from "vue";
|
|
5
5
|
import * as fe from "monaco-editor";
|
|
6
6
|
import { languages as G, MarkerTag as Ti, MarkerSeverity as $t, editor as wa } from "monaco-editor";
|
|
7
|
-
import { JsonDataService as Sa, DialogService as
|
|
7
|
+
import { JsonDataService as Sa, DialogService as Ca, AlertingService as Pa } from "@knime/ui-extension-service";
|
|
8
8
|
var ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9
|
-
function
|
|
9
|
+
function Bc(e) {
|
|
10
10
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
11
11
|
}
|
|
12
12
|
function Ma(e) {
|
|
@@ -88,7 +88,7 @@ const Xo = {
|
|
|
88
88
|
e.value && e.value.dispose();
|
|
89
89
|
for (const i of t)
|
|
90
90
|
i.isAttachedToEditor() || i.dispose();
|
|
91
|
-
},
|
|
91
|
+
}, Na = (e) => (t, i) => {
|
|
92
92
|
var r, o, c, d, h, f, p, R;
|
|
93
93
|
if ((r = e.value) != null && r.getOption(fe.editor.EditorOption.readOnly))
|
|
94
94
|
return;
|
|
@@ -103,7 +103,7 @@ const Xo = {
|
|
|
103
103
|
text: t,
|
|
104
104
|
forceMoveMarkers: !0
|
|
105
105
|
}), (f = (h = e.value) == null ? void 0 : h.getModel()) == null || f.pushEditOperations([], n, () => null), (R = (p = e.value) == null ? void 0 : p.getModel()) == null || R.pushStackElement();
|
|
106
|
-
},
|
|
106
|
+
}, Oa = (e) => (t) => {
|
|
107
107
|
var n, r, o, c, d, h;
|
|
108
108
|
if ((n = e.value) != null && n.getOption(fe.editor.EditorOption.readOnly))
|
|
109
109
|
return;
|
|
@@ -137,8 +137,8 @@ const Xo = {
|
|
|
137
137
|
editorModel: i,
|
|
138
138
|
selection: _i(n),
|
|
139
139
|
selectedLines: _i(r),
|
|
140
|
-
insertColumnReference:
|
|
141
|
-
insertText:
|
|
140
|
+
insertColumnReference: Na(t),
|
|
141
|
+
insertText: Oa(t),
|
|
142
142
|
...Go(i)
|
|
143
143
|
};
|
|
144
144
|
}, ja = (e) => {
|
|
@@ -155,23 +155,23 @@ const Xo = {
|
|
|
155
155
|
}), Qo(Zo(t, [i, n]));
|
|
156
156
|
const { text: o, setInitialText: c } = Go(n);
|
|
157
157
|
return { editor: t, editorModel: r, modifiedText: o, setInitialModifiedText: c };
|
|
158
|
-
}, ea = Ln(),
|
|
158
|
+
}, ea = Ln(), di = () => ea, Jc = (e) => {
|
|
159
159
|
const t = xo(e);
|
|
160
160
|
return ea.value = t, t;
|
|
161
|
-
},
|
|
161
|
+
}, Kc = {
|
|
162
162
|
useCodeEditor: xo,
|
|
163
163
|
useDiffEditor: ja,
|
|
164
|
-
useMainCodeEditorStore:
|
|
164
|
+
useMainCodeEditorStore: di
|
|
165
165
|
};
|
|
166
166
|
let ta = {
|
|
167
167
|
writeln: (e) => consola.error("Console not yet initialized", e),
|
|
168
168
|
write: (e) => consola.error("Console not yet initialized", e),
|
|
169
169
|
clear: () => consola.error("Console not yet initialized")
|
|
170
170
|
};
|
|
171
|
-
const
|
|
171
|
+
const Qc = (e) => {
|
|
172
172
|
ta = e;
|
|
173
|
-
},
|
|
174
|
-
var
|
|
173
|
+
}, Zn = tt("small");
|
|
174
|
+
var D = {}, rt = {}, fi = {}, Tn = {}, b = {}, B = {};
|
|
175
175
|
Object.defineProperty(B, "__esModule", { value: !0 });
|
|
176
176
|
B.stringArray = B.array = B.func = B.error = B.number = B.string = B.boolean = void 0;
|
|
177
177
|
function qa(e) {
|
|
@@ -205,13 +205,13 @@ B.stringArray = $a;
|
|
|
205
205
|
Object.defineProperty(b, "__esModule", { value: !0 });
|
|
206
206
|
b.Message = b.NotificationType9 = b.NotificationType8 = b.NotificationType7 = b.NotificationType6 = b.NotificationType5 = b.NotificationType4 = b.NotificationType3 = b.NotificationType2 = b.NotificationType1 = b.NotificationType0 = b.NotificationType = b.RequestType9 = b.RequestType8 = b.RequestType7 = b.RequestType6 = b.RequestType5 = b.RequestType4 = b.RequestType3 = b.RequestType2 = b.RequestType1 = b.RequestType = b.RequestType0 = b.AbstractMessageSignature = b.ParameterStructures = b.ResponseError = b.ErrorCodes = void 0;
|
|
207
207
|
const xe = B;
|
|
208
|
-
var
|
|
208
|
+
var xn;
|
|
209
209
|
(function(e) {
|
|
210
210
|
e.ParseError = -32700, e.InvalidRequest = -32600, e.MethodNotFound = -32601, e.InvalidParams = -32602, e.InternalError = -32603, e.jsonrpcReservedErrorRangeStart = -32099, e.serverErrorStart = -32099, e.MessageWriteError = -32099, e.MessageReadError = -32098, e.PendingResponseRejected = -32097, e.ConnectionInactive = -32096, e.ServerNotInitialized = -32002, e.UnknownErrorCode = -32001, e.jsonrpcReservedErrorRangeEnd = -32e3, e.serverErrorEnd = -32e3;
|
|
211
|
-
})(
|
|
212
|
-
class
|
|
211
|
+
})(xn || (b.ErrorCodes = xn = {}));
|
|
212
|
+
class gi extends Error {
|
|
213
213
|
constructor(t, i, n) {
|
|
214
|
-
super(i), this.code = xe.number(t) ? t :
|
|
214
|
+
super(i), this.code = xe.number(t) ? t : xn.UnknownErrorCode, this.data = n, Object.setPrototypeOf(this, gi.prototype);
|
|
215
215
|
}
|
|
216
216
|
toJson() {
|
|
217
217
|
const t = {
|
|
@@ -221,7 +221,7 @@ class fi extends Error {
|
|
|
221
221
|
return this.data !== void 0 && (t.data = this.data), t;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
b.ResponseError =
|
|
224
|
+
b.ResponseError = gi;
|
|
225
225
|
class Y {
|
|
226
226
|
constructor(t) {
|
|
227
227
|
this.kind = t;
|
|
@@ -667,26 +667,26 @@ var wi;
|
|
|
667
667
|
}
|
|
668
668
|
e.create = t;
|
|
669
669
|
})(wi || (An.Disposable = wi = {}));
|
|
670
|
-
var Te = {},
|
|
671
|
-
Object.defineProperty(
|
|
672
|
-
let
|
|
673
|
-
function
|
|
674
|
-
if (
|
|
670
|
+
var Te = {}, ke = {};
|
|
671
|
+
Object.defineProperty(ke, "__esModule", { value: !0 });
|
|
672
|
+
let er;
|
|
673
|
+
function tr() {
|
|
674
|
+
if (er === void 0)
|
|
675
675
|
throw new Error("No runtime abstraction layer installed");
|
|
676
|
-
return
|
|
676
|
+
return er;
|
|
677
677
|
}
|
|
678
678
|
(function(e) {
|
|
679
679
|
function t(i) {
|
|
680
680
|
if (i === void 0)
|
|
681
681
|
throw new Error("No runtime abstraction layer provided");
|
|
682
|
-
|
|
682
|
+
er = i;
|
|
683
683
|
}
|
|
684
684
|
e.install = t;
|
|
685
|
-
})(
|
|
686
|
-
|
|
685
|
+
})(tr || (tr = {}));
|
|
686
|
+
ke.default = tr;
|
|
687
687
|
Object.defineProperty(Te, "__esModule", { value: !0 });
|
|
688
688
|
Te.Emitter = Te.Event = void 0;
|
|
689
|
-
const cs =
|
|
689
|
+
const cs = ke;
|
|
690
690
|
var Si;
|
|
691
691
|
(function(e) {
|
|
692
692
|
const t = { dispose() {
|
|
@@ -765,32 +765,32 @@ class $n {
|
|
|
765
765
|
Te.Emitter = $n;
|
|
766
766
|
$n._noop = function() {
|
|
767
767
|
};
|
|
768
|
-
var
|
|
769
|
-
Object.defineProperty(
|
|
770
|
-
|
|
771
|
-
const ls =
|
|
768
|
+
var Ve = {};
|
|
769
|
+
Object.defineProperty(Ve, "__esModule", { value: !0 });
|
|
770
|
+
Ve.CancellationTokenSource = Ve.CancellationToken = void 0;
|
|
771
|
+
const ls = ke, ds = B, nr = Te;
|
|
772
772
|
var Rn;
|
|
773
773
|
(function(e) {
|
|
774
774
|
e.None = Object.freeze({
|
|
775
775
|
isCancellationRequested: !1,
|
|
776
|
-
onCancellationRequested:
|
|
776
|
+
onCancellationRequested: nr.Event.None
|
|
777
777
|
}), e.Cancelled = Object.freeze({
|
|
778
778
|
isCancellationRequested: !0,
|
|
779
|
-
onCancellationRequested:
|
|
779
|
+
onCancellationRequested: nr.Event.None
|
|
780
780
|
});
|
|
781
781
|
function t(i) {
|
|
782
782
|
const n = i;
|
|
783
783
|
return n && (n === e.None || n === e.Cancelled || ds.boolean(n.isCancellationRequested) && !!n.onCancellationRequested);
|
|
784
784
|
}
|
|
785
785
|
e.is = t;
|
|
786
|
-
})(Rn || (
|
|
786
|
+
})(Rn || (Ve.CancellationToken = Rn = {}));
|
|
787
787
|
const fs = Object.freeze(function(e, t) {
|
|
788
788
|
const i = (0, ls.default)().timer.setTimeout(e.bind(t), 0);
|
|
789
789
|
return { dispose() {
|
|
790
790
|
i.dispose();
|
|
791
791
|
} };
|
|
792
792
|
});
|
|
793
|
-
class
|
|
793
|
+
class Ci {
|
|
794
794
|
constructor() {
|
|
795
795
|
this._isCancelled = !1;
|
|
796
796
|
}
|
|
@@ -801,7 +801,7 @@ class Pi {
|
|
|
801
801
|
return this._isCancelled;
|
|
802
802
|
}
|
|
803
803
|
get onCancellationRequested() {
|
|
804
|
-
return this._isCancelled ? fs : (this._emitter || (this._emitter = new
|
|
804
|
+
return this._isCancelled ? fs : (this._emitter || (this._emitter = new nr.Emitter()), this._emitter.event);
|
|
805
805
|
}
|
|
806
806
|
dispose() {
|
|
807
807
|
this._emitter && (this._emitter.dispose(), this._emitter = void 0);
|
|
@@ -809,20 +809,20 @@ class Pi {
|
|
|
809
809
|
}
|
|
810
810
|
class gs {
|
|
811
811
|
get token() {
|
|
812
|
-
return this._token || (this._token = new
|
|
812
|
+
return this._token || (this._token = new Ci()), this._token;
|
|
813
813
|
}
|
|
814
814
|
cancel() {
|
|
815
815
|
this._token ? this._token.cancel() : this._token = Rn.Cancelled;
|
|
816
816
|
}
|
|
817
817
|
dispose() {
|
|
818
|
-
this._token ? this._token instanceof
|
|
818
|
+
this._token ? this._token instanceof Ci && this._token.dispose() : this._token = Rn.None;
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
|
-
|
|
821
|
+
Ve.CancellationTokenSource = gs;
|
|
822
822
|
var dt = {};
|
|
823
823
|
Object.defineProperty(dt, "__esModule", { value: !0 });
|
|
824
824
|
dt.SharedArrayReceiverStrategy = dt.SharedArraySenderStrategy = void 0;
|
|
825
|
-
const hs =
|
|
825
|
+
const hs = Ve;
|
|
826
826
|
var Ht;
|
|
827
827
|
(function(e) {
|
|
828
828
|
e.Continue = 0, e.Cancelled = 1;
|
|
@@ -882,10 +882,10 @@ class vs {
|
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
dt.SharedArrayReceiverStrategy = vs;
|
|
885
|
-
var
|
|
885
|
+
var Le = {}, Yt = {};
|
|
886
886
|
Object.defineProperty(Yt, "__esModule", { value: !0 });
|
|
887
887
|
Yt.Semaphore = void 0;
|
|
888
|
-
const bs =
|
|
888
|
+
const bs = ke;
|
|
889
889
|
class _s {
|
|
890
890
|
constructor(t = 1) {
|
|
891
891
|
if (t <= 0)
|
|
@@ -922,20 +922,20 @@ class _s {
|
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
Yt.Semaphore = _s;
|
|
925
|
-
Object.defineProperty(
|
|
926
|
-
|
|
927
|
-
const
|
|
928
|
-
var
|
|
925
|
+
Object.defineProperty(Le, "__esModule", { value: !0 });
|
|
926
|
+
Le.ReadableStreamMessageReader = Le.AbstractMessageReader = Le.MessageReader = void 0;
|
|
927
|
+
const rr = ke, lt = B, Yn = Te, Ts = Yt;
|
|
928
|
+
var Pi;
|
|
929
929
|
(function(e) {
|
|
930
930
|
function t(i) {
|
|
931
931
|
let n = i;
|
|
932
932
|
return n && lt.func(n.listen) && lt.func(n.dispose) && lt.func(n.onError) && lt.func(n.onClose) && lt.func(n.onPartialMessage);
|
|
933
933
|
}
|
|
934
934
|
e.is = t;
|
|
935
|
-
})(
|
|
935
|
+
})(Pi || (Le.MessageReader = Pi = {}));
|
|
936
936
|
class oa {
|
|
937
937
|
constructor() {
|
|
938
|
-
this.errorEmitter = new
|
|
938
|
+
this.errorEmitter = new Yn.Emitter(), this.closeEmitter = new Yn.Emitter(), this.partialMessageEmitter = new Yn.Emitter();
|
|
939
939
|
}
|
|
940
940
|
dispose() {
|
|
941
941
|
this.errorEmitter.dispose(), this.closeEmitter.dispose();
|
|
@@ -962,8 +962,8 @@ class oa {
|
|
|
962
962
|
return t instanceof Error ? t : new Error(`Reader received error. Reason: ${lt.string(t.message) ? t.message : "unknown"}`);
|
|
963
963
|
}
|
|
964
964
|
}
|
|
965
|
-
|
|
966
|
-
var
|
|
965
|
+
Le.AbstractMessageReader = oa;
|
|
966
|
+
var ir;
|
|
967
967
|
(function(e) {
|
|
968
968
|
function t(i) {
|
|
969
969
|
let n, r;
|
|
@@ -980,13 +980,13 @@ var rr;
|
|
|
980
980
|
for (const h of i.contentTypeDecoders)
|
|
981
981
|
d.set(h.name, h);
|
|
982
982
|
}
|
|
983
|
-
return c === void 0 && (c = (0,
|
|
983
|
+
return c === void 0 && (c = (0, rr.default)().applicationJson.decoder, d.set(c.name, c)), { charset: n, contentDecoder: r, contentDecoders: o, contentTypeDecoder: c, contentTypeDecoders: d };
|
|
984
984
|
}
|
|
985
985
|
e.fromOptions = t;
|
|
986
|
-
})(
|
|
986
|
+
})(ir || (ir = {}));
|
|
987
987
|
class Rs extends oa {
|
|
988
988
|
constructor(t, i) {
|
|
989
|
-
super(), this.readable = t, this.options =
|
|
989
|
+
super(), this.readable = t, this.options = ir.fromOptions(i), this.buffer = (0, rr.default)().messageBuffer.create(this.options.charset), this._partialMessageTimeout = 1e4, this.nextMessageLength = -1, this.messageToken = 0, this.readSemaphore = new Ts.Semaphore(1);
|
|
990
990
|
}
|
|
991
991
|
set partialMessageTimeout(t) {
|
|
992
992
|
this._partialMessageTimeout = t;
|
|
@@ -1041,25 +1041,25 @@ ${JSON.stringify(Object.fromEntries(n))}`));
|
|
|
1041
1041
|
this.partialMessageTimer && (this.partialMessageTimer.dispose(), this.partialMessageTimer = void 0);
|
|
1042
1042
|
}
|
|
1043
1043
|
setPartialMessageTimer() {
|
|
1044
|
-
this.clearPartialMessageTimer(), !(this._partialMessageTimeout <= 0) && (this.partialMessageTimer = (0,
|
|
1044
|
+
this.clearPartialMessageTimer(), !(this._partialMessageTimeout <= 0) && (this.partialMessageTimer = (0, rr.default)().timer.setTimeout((t, i) => {
|
|
1045
1045
|
this.partialMessageTimer = void 0, t === this.messageToken && (this.firePartialMessage({ messageToken: t, waitingTime: i }), this.setPartialMessageTimer());
|
|
1046
1046
|
}, this._partialMessageTimeout, this.messageToken, this._partialMessageTimeout));
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
|
-
|
|
1050
|
-
var
|
|
1051
|
-
Object.defineProperty(
|
|
1052
|
-
|
|
1053
|
-
const Mi =
|
|
1049
|
+
Le.ReadableStreamMessageReader = Rs;
|
|
1050
|
+
var Ae = {};
|
|
1051
|
+
Object.defineProperty(Ae, "__esModule", { value: !0 });
|
|
1052
|
+
Ae.WriteableStreamMessageWriter = Ae.AbstractMessageWriter = Ae.MessageWriter = void 0;
|
|
1053
|
+
const Mi = ke, Ft = B, Ds = Yt, ki = Te, ws = "Content-Length: ", Ei = `\r
|
|
1054
1054
|
`;
|
|
1055
|
-
var
|
|
1055
|
+
var Ni;
|
|
1056
1056
|
(function(e) {
|
|
1057
1057
|
function t(i) {
|
|
1058
1058
|
let n = i;
|
|
1059
1059
|
return n && Ft.func(n.dispose) && Ft.func(n.onClose) && Ft.func(n.onError) && Ft.func(n.write);
|
|
1060
1060
|
}
|
|
1061
1061
|
e.is = t;
|
|
1062
|
-
})(
|
|
1062
|
+
})(Ni || (Ae.MessageWriter = Ni = {}));
|
|
1063
1063
|
class aa {
|
|
1064
1064
|
constructor() {
|
|
1065
1065
|
this.errorEmitter = new ki.Emitter(), this.closeEmitter = new ki.Emitter();
|
|
@@ -1083,17 +1083,17 @@ class aa {
|
|
|
1083
1083
|
return t instanceof Error ? t : new Error(`Writer received error. Reason: ${Ft.string(t.message) ? t.message : "unknown"}`);
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
|
-
|
|
1087
|
-
var
|
|
1086
|
+
Ae.AbstractMessageWriter = aa;
|
|
1087
|
+
var or;
|
|
1088
1088
|
(function(e) {
|
|
1089
1089
|
function t(i) {
|
|
1090
1090
|
return i === void 0 || typeof i == "string" ? { charset: i ?? "utf-8", contentTypeEncoder: (0, Mi.default)().applicationJson.encoder } : { charset: i.charset ?? "utf-8", contentEncoder: i.contentEncoder, contentTypeEncoder: i.contentTypeEncoder ?? (0, Mi.default)().applicationJson.encoder };
|
|
1091
1091
|
}
|
|
1092
1092
|
e.fromOptions = t;
|
|
1093
|
-
})(
|
|
1093
|
+
})(or || (or = {}));
|
|
1094
1094
|
class Ss extends aa {
|
|
1095
1095
|
constructor(t, i) {
|
|
1096
|
-
super(), this.writable = t, this.options =
|
|
1096
|
+
super(), this.writable = t, this.options = or.fromOptions(i), this.errorCount = 0, this.writeSemaphore = new Ds.Semaphore(1), this.writable.onError((n) => this.fireError(n)), this.writable.onClose(() => this.fireClose());
|
|
1097
1097
|
}
|
|
1098
1098
|
async write(t) {
|
|
1099
1099
|
return this.writeSemaphore.lock(async () => this.options.contentTypeEncoder.encode(t, this.options).then((n) => this.options.contentEncoder !== void 0 ? this.options.contentEncoder.encode(n) : n).then((n) => {
|
|
@@ -1117,11 +1117,11 @@ class Ss extends aa {
|
|
|
1117
1117
|
this.writable.end();
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
|
-
|
|
1120
|
+
Ae.WriteableStreamMessageWriter = Ss;
|
|
1121
1121
|
var Fn = {};
|
|
1122
1122
|
Object.defineProperty(Fn, "__esModule", { value: !0 });
|
|
1123
1123
|
Fn.AbstractMessageBuffer = void 0;
|
|
1124
|
-
const
|
|
1124
|
+
const Cs = 13, Ps = 10, Ms = `\r
|
|
1125
1125
|
`;
|
|
1126
1126
|
class ks {
|
|
1127
1127
|
constructor(t = "utf-8") {
|
|
@@ -1142,7 +1142,7 @@ class ks {
|
|
|
1142
1142
|
const f = this._chunks[n];
|
|
1143
1143
|
for (r = 0; r < f.length; ) {
|
|
1144
1144
|
switch (f[r]) {
|
|
1145
|
-
case
|
|
1145
|
+
case Cs:
|
|
1146
1146
|
switch (i) {
|
|
1147
1147
|
case 0:
|
|
1148
1148
|
i = 1;
|
|
@@ -1154,7 +1154,7 @@ class ks {
|
|
|
1154
1154
|
i = 0;
|
|
1155
1155
|
}
|
|
1156
1156
|
break;
|
|
1157
|
-
case
|
|
1157
|
+
case Ps:
|
|
1158
1158
|
switch (i) {
|
|
1159
1159
|
case 1:
|
|
1160
1160
|
i = 2;
|
|
@@ -1183,8 +1183,8 @@ class ks {
|
|
|
1183
1183
|
if (R === -1)
|
|
1184
1184
|
throw new Error(`Message header must separate key and value using ':'
|
|
1185
1185
|
${p}`);
|
|
1186
|
-
const y = p.substr(0, R),
|
|
1187
|
-
d.set(t ? y.toLowerCase() : y,
|
|
1186
|
+
const y = p.substr(0, R), w = p.substr(R + 1).trim();
|
|
1187
|
+
d.set(t ? y.toLowerCase() : y, w);
|
|
1188
1188
|
}
|
|
1189
1189
|
return d;
|
|
1190
1190
|
}
|
|
@@ -1225,17 +1225,17 @@ Fn.AbstractMessageBuffer = ks;
|
|
|
1225
1225
|
var sa = {};
|
|
1226
1226
|
(function(e) {
|
|
1227
1227
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.createMessageConnection = e.ConnectionOptions = e.MessageStrategy = e.CancellationStrategy = e.CancellationSenderStrategy = e.CancellationReceiverStrategy = e.RequestCancellationReceiverStrategy = e.IdCancellationReceiverStrategy = e.ConnectionStrategy = e.ConnectionError = e.ConnectionErrors = e.LogTraceNotification = e.SetTraceNotification = e.TraceFormat = e.TraceValues = e.Trace = e.NullLogger = e.ProgressType = e.ProgressToken = void 0;
|
|
1228
|
-
const t =
|
|
1228
|
+
const t = ke, i = B, n = b, r = Pe, o = Te, c = Ve;
|
|
1229
1229
|
var d;
|
|
1230
1230
|
(function(g) {
|
|
1231
1231
|
g.type = new n.NotificationType("$/cancelRequest");
|
|
1232
1232
|
})(d || (d = {}));
|
|
1233
1233
|
var h;
|
|
1234
1234
|
(function(g) {
|
|
1235
|
-
function
|
|
1236
|
-
return typeof
|
|
1235
|
+
function S(C) {
|
|
1236
|
+
return typeof C == "string" || typeof C == "number";
|
|
1237
1237
|
}
|
|
1238
|
-
g.is =
|
|
1238
|
+
g.is = S;
|
|
1239
1239
|
})(h || (e.ProgressToken = h = {}));
|
|
1240
1240
|
var f;
|
|
1241
1241
|
(function(g) {
|
|
@@ -1248,10 +1248,10 @@ var sa = {};
|
|
|
1248
1248
|
e.ProgressType = p;
|
|
1249
1249
|
var R;
|
|
1250
1250
|
(function(g) {
|
|
1251
|
-
function
|
|
1252
|
-
return i.func(
|
|
1251
|
+
function S(C) {
|
|
1252
|
+
return i.func(C);
|
|
1253
1253
|
}
|
|
1254
|
-
g.is =
|
|
1254
|
+
g.is = S;
|
|
1255
1255
|
})(R || (R = {})), e.NullLogger = Object.freeze({
|
|
1256
1256
|
error: () => {
|
|
1257
1257
|
},
|
|
@@ -1266,11 +1266,11 @@ var sa = {};
|
|
|
1266
1266
|
(function(g) {
|
|
1267
1267
|
g[g.Off = 0] = "Off", g[g.Messages = 1] = "Messages", g[g.Compact = 2] = "Compact", g[g.Verbose = 3] = "Verbose";
|
|
1268
1268
|
})(y || (e.Trace = y = {}));
|
|
1269
|
-
var
|
|
1269
|
+
var w;
|
|
1270
1270
|
(function(g) {
|
|
1271
1271
|
g.Off = "off", g.Messages = "messages", g.Compact = "compact", g.Verbose = "verbose";
|
|
1272
|
-
})(
|
|
1273
|
-
function
|
|
1272
|
+
})(w || (e.TraceValues = w = {})), function(g) {
|
|
1273
|
+
function S(_) {
|
|
1274
1274
|
if (!i.string(_))
|
|
1275
1275
|
return g.Off;
|
|
1276
1276
|
switch (_ = _.toLowerCase(), _) {
|
|
@@ -1286,8 +1286,8 @@ var sa = {};
|
|
|
1286
1286
|
return g.Off;
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
g.fromString =
|
|
1290
|
-
function
|
|
1289
|
+
g.fromString = S;
|
|
1290
|
+
function C(_) {
|
|
1291
1291
|
switch (_) {
|
|
1292
1292
|
case g.Off:
|
|
1293
1293
|
return "off";
|
|
@@ -1301,21 +1301,21 @@ var sa = {};
|
|
|
1301
1301
|
return "off";
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
|
-
g.toString =
|
|
1304
|
+
g.toString = C;
|
|
1305
1305
|
}(y || (e.Trace = y = {}));
|
|
1306
1306
|
var q;
|
|
1307
1307
|
(function(g) {
|
|
1308
1308
|
g.Text = "text", g.JSON = "json";
|
|
1309
1309
|
})(q || (e.TraceFormat = q = {})), function(g) {
|
|
1310
|
-
function
|
|
1311
|
-
return i.string(
|
|
1310
|
+
function S(C) {
|
|
1311
|
+
return i.string(C) ? (C = C.toLowerCase(), C === "json" ? g.JSON : g.Text) : g.Text;
|
|
1312
1312
|
}
|
|
1313
|
-
g.fromString =
|
|
1313
|
+
g.fromString = S;
|
|
1314
1314
|
}(q || (e.TraceFormat = q = {}));
|
|
1315
|
-
var
|
|
1315
|
+
var ze;
|
|
1316
1316
|
(function(g) {
|
|
1317
1317
|
g.type = new n.NotificationType("$/setTrace");
|
|
1318
|
-
})(
|
|
1318
|
+
})(ze || (e.SetTraceNotification = ze = {}));
|
|
1319
1319
|
var it;
|
|
1320
1320
|
(function(g) {
|
|
1321
1321
|
g.type = new n.NotificationType("$/logTrace");
|
|
@@ -1325,61 +1325,61 @@ var sa = {};
|
|
|
1325
1325
|
g[g.Closed = 1] = "Closed", g[g.Disposed = 2] = "Disposed", g[g.AlreadyListening = 3] = "AlreadyListening";
|
|
1326
1326
|
})(ne || (e.ConnectionErrors = ne = {}));
|
|
1327
1327
|
class ge extends Error {
|
|
1328
|
-
constructor(
|
|
1329
|
-
super(
|
|
1328
|
+
constructor(S, C) {
|
|
1329
|
+
super(C), this.code = S, Object.setPrototypeOf(this, ge.prototype);
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
1332
|
e.ConnectionError = ge;
|
|
1333
|
-
var
|
|
1333
|
+
var Be;
|
|
1334
1334
|
(function(g) {
|
|
1335
|
-
function
|
|
1336
|
-
const _ =
|
|
1335
|
+
function S(C) {
|
|
1336
|
+
const _ = C;
|
|
1337
1337
|
return _ && i.func(_.cancelUndispatched);
|
|
1338
1338
|
}
|
|
1339
|
-
g.is =
|
|
1340
|
-
})(
|
|
1341
|
-
var
|
|
1339
|
+
g.is = S;
|
|
1340
|
+
})(Be || (e.ConnectionStrategy = Be = {}));
|
|
1341
|
+
var Je;
|
|
1342
1342
|
(function(g) {
|
|
1343
|
-
function
|
|
1344
|
-
const _ =
|
|
1343
|
+
function S(C) {
|
|
1344
|
+
const _ = C;
|
|
1345
1345
|
return _ && (_.kind === void 0 || _.kind === "id") && i.func(_.createCancellationTokenSource) && (_.dispose === void 0 || i.func(_.dispose));
|
|
1346
1346
|
}
|
|
1347
|
-
g.is =
|
|
1348
|
-
})(
|
|
1349
|
-
var
|
|
1347
|
+
g.is = S;
|
|
1348
|
+
})(Je || (e.IdCancellationReceiverStrategy = Je = {}));
|
|
1349
|
+
var Ke;
|
|
1350
1350
|
(function(g) {
|
|
1351
|
-
function
|
|
1352
|
-
const _ =
|
|
1351
|
+
function S(C) {
|
|
1352
|
+
const _ = C;
|
|
1353
1353
|
return _ && _.kind === "request" && i.func(_.createCancellationTokenSource) && (_.dispose === void 0 || i.func(_.dispose));
|
|
1354
1354
|
}
|
|
1355
|
-
g.is =
|
|
1356
|
-
})(
|
|
1355
|
+
g.is = S;
|
|
1356
|
+
})(Ke || (e.RequestCancellationReceiverStrategy = Ke = {}));
|
|
1357
1357
|
var he;
|
|
1358
1358
|
(function(g) {
|
|
1359
1359
|
g.Message = Object.freeze({
|
|
1360
|
-
createCancellationTokenSource(
|
|
1360
|
+
createCancellationTokenSource(C) {
|
|
1361
1361
|
return new c.CancellationTokenSource();
|
|
1362
1362
|
}
|
|
1363
1363
|
});
|
|
1364
|
-
function
|
|
1365
|
-
return
|
|
1364
|
+
function S(C) {
|
|
1365
|
+
return Je.is(C) || Ke.is(C);
|
|
1366
1366
|
}
|
|
1367
|
-
g.is =
|
|
1367
|
+
g.is = S;
|
|
1368
1368
|
})(he || (e.CancellationReceiverStrategy = he = {}));
|
|
1369
1369
|
var Z;
|
|
1370
1370
|
(function(g) {
|
|
1371
1371
|
g.Message = Object.freeze({
|
|
1372
|
-
sendCancellation(
|
|
1373
|
-
return
|
|
1372
|
+
sendCancellation(C, _) {
|
|
1373
|
+
return C.sendNotification(d.type, { id: _ });
|
|
1374
1374
|
},
|
|
1375
|
-
cleanup(
|
|
1375
|
+
cleanup(C) {
|
|
1376
1376
|
}
|
|
1377
1377
|
});
|
|
1378
|
-
function
|
|
1379
|
-
const _ =
|
|
1378
|
+
function S(C) {
|
|
1379
|
+
const _ = C;
|
|
1380
1380
|
return _ && i.func(_.sendCancellation) && i.func(_.cleanup);
|
|
1381
1381
|
}
|
|
1382
|
-
g.is =
|
|
1382
|
+
g.is = S;
|
|
1383
1383
|
})(Z || (e.CancellationSenderStrategy = Z = {}));
|
|
1384
1384
|
var ot;
|
|
1385
1385
|
(function(g) {
|
|
@@ -1387,43 +1387,43 @@ var sa = {};
|
|
|
1387
1387
|
receiver: he.Message,
|
|
1388
1388
|
sender: Z.Message
|
|
1389
1389
|
});
|
|
1390
|
-
function
|
|
1391
|
-
const _ =
|
|
1390
|
+
function S(C) {
|
|
1391
|
+
const _ = C;
|
|
1392
1392
|
return _ && he.is(_.receiver) && Z.is(_.sender);
|
|
1393
1393
|
}
|
|
1394
|
-
g.is =
|
|
1394
|
+
g.is = S;
|
|
1395
1395
|
})(ot || (e.CancellationStrategy = ot = {}));
|
|
1396
|
-
var
|
|
1396
|
+
var Ee;
|
|
1397
1397
|
(function(g) {
|
|
1398
|
-
function
|
|
1399
|
-
const _ =
|
|
1398
|
+
function S(C) {
|
|
1399
|
+
const _ = C;
|
|
1400
1400
|
return _ && i.func(_.handleMessage);
|
|
1401
1401
|
}
|
|
1402
|
-
g.is =
|
|
1403
|
-
})(
|
|
1402
|
+
g.is = S;
|
|
1403
|
+
})(Ee || (e.MessageStrategy = Ee = {}));
|
|
1404
1404
|
var at;
|
|
1405
1405
|
(function(g) {
|
|
1406
|
-
function
|
|
1407
|
-
const _ =
|
|
1408
|
-
return _ && (ot.is(_.cancellationStrategy) ||
|
|
1406
|
+
function S(C) {
|
|
1407
|
+
const _ = C;
|
|
1408
|
+
return _ && (ot.is(_.cancellationStrategy) || Be.is(_.connectionStrategy) || Ee.is(_.messageStrategy));
|
|
1409
1409
|
}
|
|
1410
|
-
g.is =
|
|
1410
|
+
g.is = S;
|
|
1411
1411
|
})(at || (e.ConnectionOptions = at = {}));
|
|
1412
1412
|
var x;
|
|
1413
1413
|
(function(g) {
|
|
1414
1414
|
g[g.New = 1] = "New", g[g.Listening = 2] = "Listening", g[g.Closed = 3] = "Closed", g[g.Disposed = 4] = "Disposed";
|
|
1415
1415
|
})(x || (x = {}));
|
|
1416
|
-
function
|
|
1417
|
-
const I =
|
|
1416
|
+
function Ct(g, S, C, _) {
|
|
1417
|
+
const I = C !== void 0 ? C : e.NullLogger;
|
|
1418
1418
|
let Zt = 0, xt = 0, en = 0;
|
|
1419
|
-
const
|
|
1419
|
+
const Ne = "2.0";
|
|
1420
1420
|
let Oe;
|
|
1421
|
-
const
|
|
1422
|
-
let
|
|
1423
|
-
const
|
|
1424
|
-
let st, me = new r.LinkedMap(), pe = /* @__PURE__ */ new Map(),
|
|
1425
|
-
const ct = new o.Emitter(),
|
|
1426
|
-
function
|
|
1421
|
+
const Qe = /* @__PURE__ */ new Map();
|
|
1422
|
+
let je;
|
|
1423
|
+
const Xe = /* @__PURE__ */ new Map(), Ge = /* @__PURE__ */ new Map();
|
|
1424
|
+
let st, me = new r.LinkedMap(), pe = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Set(), re = /* @__PURE__ */ new Map(), E = y.Off, ye = q.Text, $, ce = x.New;
|
|
1425
|
+
const ct = new o.Emitter(), Pt = new o.Emitter(), Mt = new o.Emitter(), kt = new o.Emitter(), Et = new o.Emitter(), ue = _ && _.cancellationStrategy ? _.cancellationStrategy : ot.Message;
|
|
1426
|
+
function Nt(s) {
|
|
1427
1427
|
if (s === null)
|
|
1428
1428
|
throw new Error("Can't send requests with id null since the response can't be correlated.");
|
|
1429
1429
|
return "req-" + s.toString();
|
|
@@ -1435,11 +1435,11 @@ var sa = {};
|
|
|
1435
1435
|
return "not-" + (++xt).toString();
|
|
1436
1436
|
}
|
|
1437
1437
|
function rn(s, l) {
|
|
1438
|
-
n.Message.isRequest(l) ? s.set(
|
|
1438
|
+
n.Message.isRequest(l) ? s.set(Nt(l.id), l) : n.Message.isResponse(l) ? s.set(tn(l.id), l) : s.set(nn(), l);
|
|
1439
1439
|
}
|
|
1440
1440
|
function on(s) {
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function Ot() {
|
|
1443
1443
|
return ce === x.Listening;
|
|
1444
1444
|
}
|
|
1445
1445
|
function jt() {
|
|
@@ -1449,7 +1449,7 @@ var sa = {};
|
|
|
1449
1449
|
return ce === x.Disposed;
|
|
1450
1450
|
}
|
|
1451
1451
|
function qt() {
|
|
1452
|
-
(ce === x.New || ce === x.Listening) && (ce = x.Closed,
|
|
1452
|
+
(ce === x.New || ce === x.Listening) && (ce = x.Closed, Pt.fire(void 0));
|
|
1453
1453
|
}
|
|
1454
1454
|
function an(s) {
|
|
1455
1455
|
ct.fire([s, void 0, void 0]);
|
|
@@ -1457,7 +1457,7 @@ var sa = {};
|
|
|
1457
1457
|
function sn(s) {
|
|
1458
1458
|
ct.fire(s);
|
|
1459
1459
|
}
|
|
1460
|
-
g.onClose(qt), g.onError(an),
|
|
1460
|
+
g.onClose(qt), g.onError(an), S.onClose(qt), S.onError(sn);
|
|
1461
1461
|
function It() {
|
|
1462
1462
|
st || me.size === 0 || (st = (0, t.default)().timer.setImmediate(() => {
|
|
1463
1463
|
st = void 0, cn();
|
|
@@ -1472,7 +1472,7 @@ var sa = {};
|
|
|
1472
1472
|
const s = me.shift();
|
|
1473
1473
|
try {
|
|
1474
1474
|
const l = _ == null ? void 0 : _.messageStrategy;
|
|
1475
|
-
|
|
1475
|
+
Ee.is(l) ? l.handleMessage(s, Lt) : Lt(s);
|
|
1476
1476
|
} finally {
|
|
1477
1477
|
It();
|
|
1478
1478
|
}
|
|
@@ -1480,11 +1480,11 @@ var sa = {};
|
|
|
1480
1480
|
const un = (s) => {
|
|
1481
1481
|
try {
|
|
1482
1482
|
if (n.Message.isNotification(s) && s.method === d.type.method) {
|
|
1483
|
-
const l = s.params.id, m =
|
|
1483
|
+
const l = s.params.id, m = Nt(l), v = me.get(m);
|
|
1484
1484
|
if (n.Message.isRequest(v)) {
|
|
1485
|
-
const
|
|
1486
|
-
if (
|
|
1487
|
-
me.delete(m), re.delete(l),
|
|
1485
|
+
const N = _ == null ? void 0 : _.connectionStrategy, O = N && N.cancelUndispatched ? N.cancelUndispatched(v, on) : void 0;
|
|
1486
|
+
if (O && (O.error !== void 0 || O.result !== void 0)) {
|
|
1487
|
+
me.delete(m), re.delete(l), O.id = v.id, Ze(O, s.method, Date.now()), S.write(O).catch(() => I.error("Sending response for canceled message failed."));
|
|
1488
1488
|
return;
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
@@ -1493,7 +1493,7 @@ var sa = {};
|
|
|
1493
1493
|
j.cancel(), ut(s);
|
|
1494
1494
|
return;
|
|
1495
1495
|
} else
|
|
1496
|
-
|
|
1496
|
+
Ye.add(l);
|
|
1497
1497
|
}
|
|
1498
1498
|
rn(me, s);
|
|
1499
1499
|
} finally {
|
|
@@ -1505,57 +1505,57 @@ var sa = {};
|
|
|
1505
1505
|
return;
|
|
1506
1506
|
function l(M, L, k) {
|
|
1507
1507
|
const J = {
|
|
1508
|
-
jsonrpc:
|
|
1508
|
+
jsonrpc: Ne,
|
|
1509
1509
|
id: s.id
|
|
1510
1510
|
};
|
|
1511
|
-
M instanceof n.ResponseError ? J.error = M.toJson() : J.result = M === void 0 ? null : M,
|
|
1511
|
+
M instanceof n.ResponseError ? J.error = M.toJson() : J.result = M === void 0 ? null : M, Ze(J, L, k), S.write(J).catch(() => I.error("Sending response failed."));
|
|
1512
1512
|
}
|
|
1513
1513
|
function m(M, L, k) {
|
|
1514
1514
|
const J = {
|
|
1515
|
-
jsonrpc:
|
|
1515
|
+
jsonrpc: Ne,
|
|
1516
1516
|
id: s.id,
|
|
1517
1517
|
error: M.toJson()
|
|
1518
1518
|
};
|
|
1519
|
-
|
|
1519
|
+
Ze(J, L, k), S.write(J).catch(() => I.error("Sending response failed."));
|
|
1520
1520
|
}
|
|
1521
1521
|
function v(M, L, k) {
|
|
1522
1522
|
M === void 0 && (M = null);
|
|
1523
1523
|
const J = {
|
|
1524
|
-
jsonrpc:
|
|
1524
|
+
jsonrpc: Ne,
|
|
1525
1525
|
id: s.id,
|
|
1526
1526
|
result: M
|
|
1527
1527
|
};
|
|
1528
|
-
|
|
1528
|
+
Ze(J, L, k), S.write(J).catch(() => I.error("Sending response failed."));
|
|
1529
1529
|
}
|
|
1530
1530
|
pn(s);
|
|
1531
|
-
const j =
|
|
1532
|
-
let
|
|
1533
|
-
j && (
|
|
1531
|
+
const j = Qe.get(s.method);
|
|
1532
|
+
let N, O;
|
|
1533
|
+
j && (N = j.type, O = j.handler);
|
|
1534
1534
|
const z = Date.now();
|
|
1535
|
-
if (
|
|
1536
|
-
const M = s.id ?? String(Date.now()), L =
|
|
1537
|
-
s.id !== null &&
|
|
1535
|
+
if (O || Oe) {
|
|
1536
|
+
const M = s.id ?? String(Date.now()), L = Je.is(ue.receiver) ? ue.receiver.createCancellationTokenSource(M) : ue.receiver.createCancellationTokenSource(s);
|
|
1537
|
+
s.id !== null && Ye.has(s.id) && L.cancel(), s.id !== null && re.set(M, L);
|
|
1538
1538
|
try {
|
|
1539
1539
|
let k;
|
|
1540
|
-
if (
|
|
1540
|
+
if (O)
|
|
1541
1541
|
if (s.params === void 0) {
|
|
1542
|
-
if (
|
|
1543
|
-
m(new n.ResponseError(n.ErrorCodes.InvalidParams, `Request ${s.method} defines ${
|
|
1542
|
+
if (N !== void 0 && N.numberOfParams !== 0) {
|
|
1543
|
+
m(new n.ResponseError(n.ErrorCodes.InvalidParams, `Request ${s.method} defines ${N.numberOfParams} params but received none.`), s.method, z);
|
|
1544
1544
|
return;
|
|
1545
1545
|
}
|
|
1546
|
-
k =
|
|
1546
|
+
k = O(L.token);
|
|
1547
1547
|
} else if (Array.isArray(s.params)) {
|
|
1548
|
-
if (
|
|
1548
|
+
if (N !== void 0 && N.parameterStructures === n.ParameterStructures.byName) {
|
|
1549
1549
|
m(new n.ResponseError(n.ErrorCodes.InvalidParams, `Request ${s.method} defines parameters by name but received parameters by position`), s.method, z);
|
|
1550
1550
|
return;
|
|
1551
1551
|
}
|
|
1552
|
-
k =
|
|
1552
|
+
k = O(...s.params, L.token);
|
|
1553
1553
|
} else {
|
|
1554
|
-
if (
|
|
1554
|
+
if (N !== void 0 && N.parameterStructures === n.ParameterStructures.byPosition) {
|
|
1555
1555
|
m(new n.ResponseError(n.ErrorCodes.InvalidParams, `Request ${s.method} defines parameters by position but received parameters by name`), s.method, z);
|
|
1556
1556
|
return;
|
|
1557
1557
|
}
|
|
1558
|
-
k =
|
|
1558
|
+
k = O(s.params, L.token);
|
|
1559
1559
|
}
|
|
1560
1560
|
else Oe && (k = Oe(s.method, s.params, L.token));
|
|
1561
1561
|
const J = k;
|
|
@@ -1599,13 +1599,13 @@ ${JSON.stringify(s.error, void 0, 4)}`) : I.error("Received response message wit
|
|
|
1599
1599
|
let l, m;
|
|
1600
1600
|
if (s.method === d.type.method) {
|
|
1601
1601
|
const v = s.params.id;
|
|
1602
|
-
|
|
1602
|
+
Ye.delete(v), ut(s);
|
|
1603
1603
|
return;
|
|
1604
1604
|
} else {
|
|
1605
|
-
const v =
|
|
1605
|
+
const v = Xe.get(s.method);
|
|
1606
1606
|
v && (m = v.handler, l = v.type);
|
|
1607
1607
|
}
|
|
1608
|
-
if (m ||
|
|
1608
|
+
if (m || je)
|
|
1609
1609
|
try {
|
|
1610
1610
|
if (ut(s), m)
|
|
1611
1611
|
if (s.params === void 0)
|
|
@@ -1615,7 +1615,7 @@ ${JSON.stringify(s.error, void 0, 4)}`) : I.error("Received response message wit
|
|
|
1615
1615
|
s.method === f.type.method && v.length === 2 && h.is(v[0]) ? m({ token: v[0], value: v[1] }) : (l !== void 0 && (l.parameterStructures === n.ParameterStructures.byName && I.error(`Notification ${s.method} defines parameters by name but received parameters by position`), l.numberOfParams !== s.params.length && I.error(`Notification ${s.method} defines ${l.numberOfParams} params but received ${v.length} arguments`)), m(...v));
|
|
1616
1616
|
} else
|
|
1617
1617
|
l !== void 0 && l.parameterStructures === n.ParameterStructures.byPosition && I.error(`Notification ${s.method} defines parameters by position but received parameters by name`), m(s.params);
|
|
1618
|
-
else
|
|
1618
|
+
else je && je(s.method, s.params);
|
|
1619
1619
|
} catch (v) {
|
|
1620
1620
|
v.message ? I.error(`Notification handler '${s.method}' failed with message: ${v.message}`) : I.error(`Notification handler '${s.method}' failed unexpectedly.`);
|
|
1621
1621
|
}
|
|
@@ -1668,7 +1668,7 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
1668
1668
|
} else
|
|
1669
1669
|
we("send-notification", s);
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function Ze(s, l, m) {
|
|
1672
1672
|
if (!(E === y.Off || !$))
|
|
1673
1673
|
if (ye === q.Text) {
|
|
1674
1674
|
let v;
|
|
@@ -1733,21 +1733,21 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
1733
1733
|
};
|
|
1734
1734
|
$.log(m);
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1736
|
+
function qe() {
|
|
1737
1737
|
if (jt())
|
|
1738
1738
|
throw new ge(ne.Closed, "Connection is closed.");
|
|
1739
1739
|
if (De())
|
|
1740
1740
|
throw new ge(ne.Disposed, "Connection is disposed.");
|
|
1741
1741
|
}
|
|
1742
1742
|
function vn() {
|
|
1743
|
-
if (
|
|
1743
|
+
if (Ot())
|
|
1744
1744
|
throw new ge(ne.AlreadyListening, "Connection is already listening");
|
|
1745
1745
|
}
|
|
1746
1746
|
function bn() {
|
|
1747
|
-
if (!
|
|
1747
|
+
if (!Ot())
|
|
1748
1748
|
throw new Error("Call listen() first.");
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function Ie(s) {
|
|
1751
1751
|
return s === void 0 ? null : s;
|
|
1752
1752
|
}
|
|
1753
1753
|
function At(s) {
|
|
@@ -1760,13 +1760,13 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
1760
1760
|
function U(s, l) {
|
|
1761
1761
|
switch (s) {
|
|
1762
1762
|
case n.ParameterStructures.auto:
|
|
1763
|
-
return a(l) ? At(l) : [
|
|
1763
|
+
return a(l) ? At(l) : [Ie(l)];
|
|
1764
1764
|
case n.ParameterStructures.byName:
|
|
1765
1765
|
if (!a(l))
|
|
1766
1766
|
throw new Error("Received parameters by name but param is not an object literal.");
|
|
1767
1767
|
return At(l);
|
|
1768
1768
|
case n.ParameterStructures.byPosition:
|
|
1769
|
-
return [
|
|
1769
|
+
return [Ie(l)];
|
|
1770
1770
|
default:
|
|
1771
1771
|
throw new Error(`Unknown parameter structure ${s.toString()}`);
|
|
1772
1772
|
}
|
|
@@ -1784,7 +1784,7 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
1784
1784
|
default:
|
|
1785
1785
|
m = [];
|
|
1786
1786
|
for (let j = 0; j < l.length && j < v; j++)
|
|
1787
|
-
m.push(
|
|
1787
|
+
m.push(Ie(l[j]));
|
|
1788
1788
|
if (l.length < v)
|
|
1789
1789
|
for (let j = l.length; j < v; j++)
|
|
1790
1790
|
m.push(null);
|
|
@@ -1794,63 +1794,63 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
1794
1794
|
}
|
|
1795
1795
|
const T = {
|
|
1796
1796
|
sendNotification: (s, ...l) => {
|
|
1797
|
-
|
|
1797
|
+
qe();
|
|
1798
1798
|
let m, v;
|
|
1799
1799
|
if (i.string(s)) {
|
|
1800
1800
|
m = s;
|
|
1801
|
-
const
|
|
1802
|
-
let
|
|
1803
|
-
n.ParameterStructures.is(
|
|
1801
|
+
const N = l[0];
|
|
1802
|
+
let O = 0, z = n.ParameterStructures.auto;
|
|
1803
|
+
n.ParameterStructures.is(N) && (O = 1, z = N);
|
|
1804
1804
|
let M = l.length;
|
|
1805
|
-
const L = M -
|
|
1805
|
+
const L = M - O;
|
|
1806
1806
|
switch (L) {
|
|
1807
1807
|
case 0:
|
|
1808
1808
|
v = void 0;
|
|
1809
1809
|
break;
|
|
1810
1810
|
case 1:
|
|
1811
|
-
v = U(z, l[
|
|
1811
|
+
v = U(z, l[O]);
|
|
1812
1812
|
break;
|
|
1813
1813
|
default:
|
|
1814
1814
|
if (z === n.ParameterStructures.byName)
|
|
1815
1815
|
throw new Error(`Received ${L} parameters for 'by Name' notification parameter structure.`);
|
|
1816
|
-
v = l.slice(
|
|
1816
|
+
v = l.slice(O, M).map((k) => Ie(k));
|
|
1817
1817
|
break;
|
|
1818
1818
|
}
|
|
1819
1819
|
} else {
|
|
1820
|
-
const
|
|
1821
|
-
m = s.method, v = V(s,
|
|
1820
|
+
const N = l;
|
|
1821
|
+
m = s.method, v = V(s, N);
|
|
1822
1822
|
}
|
|
1823
1823
|
const j = {
|
|
1824
|
-
jsonrpc:
|
|
1824
|
+
jsonrpc: Ne,
|
|
1825
1825
|
method: m,
|
|
1826
1826
|
params: v
|
|
1827
1827
|
};
|
|
1828
|
-
return mn(j),
|
|
1829
|
-
throw I.error("Sending notification failed."),
|
|
1828
|
+
return mn(j), S.write(j).catch((N) => {
|
|
1829
|
+
throw I.error("Sending notification failed."), N;
|
|
1830
1830
|
});
|
|
1831
1831
|
},
|
|
1832
1832
|
onNotification: (s, l) => {
|
|
1833
|
-
|
|
1833
|
+
qe();
|
|
1834
1834
|
let m;
|
|
1835
|
-
return i.func(s) ?
|
|
1835
|
+
return i.func(s) ? je = s : l && (i.string(s) ? (m = s, Xe.set(s, { type: void 0, handler: l })) : (m = s.method, Xe.set(s.method, { type: s, handler: l }))), {
|
|
1836
1836
|
dispose: () => {
|
|
1837
|
-
m !== void 0 ?
|
|
1837
|
+
m !== void 0 ? Xe.delete(m) : je = void 0;
|
|
1838
1838
|
}
|
|
1839
1839
|
};
|
|
1840
1840
|
},
|
|
1841
1841
|
onProgress: (s, l, m) => {
|
|
1842
|
-
if (
|
|
1842
|
+
if (Ge.has(l))
|
|
1843
1843
|
throw new Error(`Progress handler for token ${l} already registered`);
|
|
1844
|
-
return
|
|
1844
|
+
return Ge.set(l, m), {
|
|
1845
1845
|
dispose: () => {
|
|
1846
|
-
|
|
1846
|
+
Ge.delete(l);
|
|
1847
1847
|
}
|
|
1848
1848
|
};
|
|
1849
1849
|
},
|
|
1850
1850
|
sendProgress: (s, l, m) => T.sendNotification(f.type, { token: l, value: m }),
|
|
1851
1851
|
onUnhandledProgress: kt.event,
|
|
1852
1852
|
sendRequest: (s, ...l) => {
|
|
1853
|
-
|
|
1853
|
+
qe(), bn();
|
|
1854
1854
|
let m, v, j;
|
|
1855
1855
|
if (i.string(s)) {
|
|
1856
1856
|
m = s;
|
|
@@ -1870,7 +1870,7 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
1870
1870
|
default:
|
|
1871
1871
|
if (J === n.ParameterStructures.byName)
|
|
1872
1872
|
throw new Error(`Received ${ve} parameters for 'by Name' request parameter structure.`);
|
|
1873
|
-
v = l.slice(k, ee).map((va) =>
|
|
1873
|
+
v = l.slice(k, ee).map((va) => Ie(va));
|
|
1874
1874
|
break;
|
|
1875
1875
|
}
|
|
1876
1876
|
} else {
|
|
@@ -1879,53 +1879,53 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
1879
1879
|
const L = s.numberOfParams;
|
|
1880
1880
|
j = c.CancellationToken.is(M[L]) ? M[L] : void 0;
|
|
1881
1881
|
}
|
|
1882
|
-
const
|
|
1883
|
-
let
|
|
1884
|
-
j && (
|
|
1885
|
-
const M = ue.sender.sendCancellation(T,
|
|
1886
|
-
return M === void 0 ? (I.log(`Received no promise from cancellation strategy when cancelling id ${
|
|
1887
|
-
I.log(`Sending cancellation messages for id ${
|
|
1882
|
+
const N = Zt++;
|
|
1883
|
+
let O;
|
|
1884
|
+
j && (O = j.onCancellationRequested(() => {
|
|
1885
|
+
const M = ue.sender.sendCancellation(T, N);
|
|
1886
|
+
return M === void 0 ? (I.log(`Received no promise from cancellation strategy when cancelling id ${N}`), Promise.resolve()) : M.catch(() => {
|
|
1887
|
+
I.log(`Sending cancellation messages for id ${N} failed`);
|
|
1888
1888
|
});
|
|
1889
1889
|
}));
|
|
1890
1890
|
const z = {
|
|
1891
|
-
jsonrpc:
|
|
1892
|
-
id:
|
|
1891
|
+
jsonrpc: Ne,
|
|
1892
|
+
id: N,
|
|
1893
1893
|
method: m,
|
|
1894
1894
|
params: v
|
|
1895
1895
|
};
|
|
1896
1896
|
return hn(z), typeof ue.sender.enableCancellation == "function" && ue.sender.enableCancellation(z), new Promise(async (M, L) => {
|
|
1897
1897
|
const k = (ve) => {
|
|
1898
|
-
M(ve), ue.sender.cleanup(
|
|
1898
|
+
M(ve), ue.sender.cleanup(N), O == null || O.dispose();
|
|
1899
1899
|
}, J = (ve) => {
|
|
1900
|
-
L(ve), ue.sender.cleanup(
|
|
1900
|
+
L(ve), ue.sender.cleanup(N), O == null || O.dispose();
|
|
1901
1901
|
}, ee = { method: m, timerStart: Date.now(), resolve: k, reject: J };
|
|
1902
1902
|
try {
|
|
1903
|
-
await
|
|
1903
|
+
await S.write(z), pe.set(N, ee);
|
|
1904
1904
|
} catch (ve) {
|
|
1905
1905
|
throw I.error("Sending request failed."), ee.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError, ve.message ? ve.message : "Unknown reason")), ve;
|
|
1906
1906
|
}
|
|
1907
1907
|
});
|
|
1908
1908
|
},
|
|
1909
1909
|
onRequest: (s, l) => {
|
|
1910
|
-
|
|
1910
|
+
qe();
|
|
1911
1911
|
let m = null;
|
|
1912
|
-
return R.is(s) ? (m = void 0, Oe = s) : i.string(s) ? (m = null, l !== void 0 && (m = s,
|
|
1912
|
+
return R.is(s) ? (m = void 0, Oe = s) : i.string(s) ? (m = null, l !== void 0 && (m = s, Qe.set(s, { handler: l, type: void 0 }))) : l !== void 0 && (m = s.method, Qe.set(s.method, { type: s, handler: l })), {
|
|
1913
1913
|
dispose: () => {
|
|
1914
|
-
m !== null && (m !== void 0 ?
|
|
1914
|
+
m !== null && (m !== void 0 ? Qe.delete(m) : Oe = void 0);
|
|
1915
1915
|
}
|
|
1916
1916
|
};
|
|
1917
1917
|
},
|
|
1918
1918
|
hasPendingResponse: () => pe.size > 0,
|
|
1919
1919
|
trace: async (s, l, m) => {
|
|
1920
1920
|
let v = !1, j = q.Text;
|
|
1921
|
-
m !== void 0 && (i.boolean(m) ? v = m : (v = m.sendNotification || !1, j = m.traceFormat || q.Text)), E = s, ye = j, E === y.Off ? $ = void 0 : $ = l, v && !jt() && !De() && await T.sendNotification(
|
|
1921
|
+
m !== void 0 && (i.boolean(m) ? v = m : (v = m.sendNotification || !1, j = m.traceFormat || q.Text)), E = s, ye = j, E === y.Off ? $ = void 0 : $ = l, v && !jt() && !De() && await T.sendNotification(ze.type, { value: y.toString(s) });
|
|
1922
1922
|
},
|
|
1923
1923
|
onError: ct.event,
|
|
1924
|
-
onClose:
|
|
1924
|
+
onClose: Pt.event,
|
|
1925
1925
|
onUnhandledNotification: Mt.event,
|
|
1926
1926
|
onDispose: Et.event,
|
|
1927
1927
|
end: () => {
|
|
1928
|
-
|
|
1928
|
+
S.end();
|
|
1929
1929
|
},
|
|
1930
1930
|
dispose: () => {
|
|
1931
1931
|
if (De())
|
|
@@ -1934,10 +1934,10 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
1934
1934
|
const s = new n.ResponseError(n.ErrorCodes.PendingResponseRejected, "Pending response rejected since connection got disposed");
|
|
1935
1935
|
for (const l of pe.values())
|
|
1936
1936
|
l.reject(s);
|
|
1937
|
-
pe = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map(),
|
|
1937
|
+
pe = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Set(), me = new r.LinkedMap(), i.func(S.dispose) && S.dispose(), i.func(g.dispose) && g.dispose();
|
|
1938
1938
|
},
|
|
1939
1939
|
listen: () => {
|
|
1940
|
-
|
|
1940
|
+
qe(), vn(), ce = x.Listening, g.listen(un);
|
|
1941
1941
|
},
|
|
1942
1942
|
inspect: () => {
|
|
1943
1943
|
(0, t.default)().console.log("inspect");
|
|
@@ -1949,11 +1949,11 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
1949
1949
|
const l = E === y.Verbose || E === y.Compact;
|
|
1950
1950
|
$.log(s.message, l ? s.verbose : void 0);
|
|
1951
1951
|
}), T.onNotification(f.type, (s) => {
|
|
1952
|
-
const l =
|
|
1952
|
+
const l = Ge.get(s.token);
|
|
1953
1953
|
l ? l(s.value) : kt.fire(s);
|
|
1954
1954
|
}), T;
|
|
1955
1955
|
}
|
|
1956
|
-
e.createMessageConnection =
|
|
1956
|
+
e.createMessageConnection = Ct;
|
|
1957
1957
|
})(sa);
|
|
1958
1958
|
(function(e) {
|
|
1959
1959
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ProgressType = e.ProgressToken = e.createMessageConnection = e.NullLogger = e.ConnectionOptions = e.ConnectionStrategy = e.AbstractMessageBuffer = e.WriteableStreamMessageWriter = e.AbstractMessageWriter = e.MessageWriter = e.ReadableStreamMessageReader = e.AbstractMessageReader = e.MessageReader = e.SharedArrayReceiverStrategy = e.SharedArraySenderStrategy = e.CancellationToken = e.CancellationTokenSource = e.Emitter = e.Event = e.Disposable = e.LRUCache = e.Touch = e.LinkedMap = e.ParameterStructures = e.NotificationType9 = e.NotificationType8 = e.NotificationType7 = e.NotificationType6 = e.NotificationType5 = e.NotificationType4 = e.NotificationType3 = e.NotificationType2 = e.NotificationType1 = e.NotificationType0 = e.NotificationType = e.ErrorCodes = e.ResponseError = e.RequestType9 = e.RequestType8 = e.RequestType7 = e.RequestType6 = e.RequestType5 = e.RequestType4 = e.RequestType3 = e.RequestType2 = e.RequestType1 = e.RequestType0 = e.RequestType = e.Message = e.RAL = void 0, e.MessageStrategy = e.CancellationStrategy = e.CancellationSenderStrategy = e.CancellationReceiverStrategy = e.ConnectionError = e.ConnectionErrors = e.LogTraceNotification = e.SetTraceNotification = e.TraceFormat = e.TraceValues = e.Trace = void 0;
|
|
@@ -2029,7 +2029,7 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
2029
2029
|
} }), Object.defineProperty(e, "Emitter", { enumerable: !0, get: function() {
|
|
2030
2030
|
return r.Emitter;
|
|
2031
2031
|
} });
|
|
2032
|
-
const o =
|
|
2032
|
+
const o = Ve;
|
|
2033
2033
|
Object.defineProperty(e, "CancellationTokenSource", { enumerable: !0, get: function() {
|
|
2034
2034
|
return o.CancellationTokenSource;
|
|
2035
2035
|
} }), Object.defineProperty(e, "CancellationToken", { enumerable: !0, get: function() {
|
|
@@ -2041,7 +2041,7 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
2041
2041
|
} }), Object.defineProperty(e, "SharedArrayReceiverStrategy", { enumerable: !0, get: function() {
|
|
2042
2042
|
return c.SharedArrayReceiverStrategy;
|
|
2043
2043
|
} });
|
|
2044
|
-
const d =
|
|
2044
|
+
const d = Le;
|
|
2045
2045
|
Object.defineProperty(e, "MessageReader", { enumerable: !0, get: function() {
|
|
2046
2046
|
return d.MessageReader;
|
|
2047
2047
|
} }), Object.defineProperty(e, "AbstractMessageReader", { enumerable: !0, get: function() {
|
|
@@ -2049,7 +2049,7 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
2049
2049
|
} }), Object.defineProperty(e, "ReadableStreamMessageReader", { enumerable: !0, get: function() {
|
|
2050
2050
|
return d.ReadableStreamMessageReader;
|
|
2051
2051
|
} });
|
|
2052
|
-
const h =
|
|
2052
|
+
const h = Ae;
|
|
2053
2053
|
Object.defineProperty(e, "MessageWriter", { enumerable: !0, get: function() {
|
|
2054
2054
|
return h.MessageWriter;
|
|
2055
2055
|
} }), Object.defineProperty(e, "AbstractMessageWriter", { enumerable: !0, get: function() {
|
|
@@ -2097,10 +2097,10 @@ ${JSON.stringify(s, null, 4)}`);
|
|
|
2097
2097
|
} }), Object.defineProperty(e, "MessageStrategy", { enumerable: !0, get: function() {
|
|
2098
2098
|
return p.MessageStrategy;
|
|
2099
2099
|
} });
|
|
2100
|
-
const R =
|
|
2100
|
+
const R = ke;
|
|
2101
2101
|
e.RAL = R.default;
|
|
2102
2102
|
})(Tn);
|
|
2103
|
-
Object.defineProperty(
|
|
2103
|
+
Object.defineProperty(fi, "__esModule", { value: !0 });
|
|
2104
2104
|
const be = Tn;
|
|
2105
2105
|
class Hn extends be.AbstractMessageBuffer {
|
|
2106
2106
|
constructor(t = "utf-8") {
|
|
@@ -2146,7 +2146,7 @@ class Es {
|
|
|
2146
2146
|
return this._onData.event(t);
|
|
2147
2147
|
}
|
|
2148
2148
|
}
|
|
2149
|
-
class
|
|
2149
|
+
class Ns {
|
|
2150
2150
|
constructor(t) {
|
|
2151
2151
|
this.socket = t;
|
|
2152
2152
|
}
|
|
@@ -2172,7 +2172,7 @@ class Os {
|
|
|
2172
2172
|
this.socket.close();
|
|
2173
2173
|
}
|
|
2174
2174
|
}
|
|
2175
|
-
const
|
|
2175
|
+
const Os = new TextEncoder(), ca = Object.freeze({
|
|
2176
2176
|
messageBuffer: Object.freeze({
|
|
2177
2177
|
create: (e) => new Hn(e)
|
|
2178
2178
|
}),
|
|
@@ -2182,7 +2182,7 @@ const Ns = new TextEncoder(), ca = Object.freeze({
|
|
|
2182
2182
|
encode: (e, t) => {
|
|
2183
2183
|
if (t.charset !== "utf-8")
|
|
2184
2184
|
throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);
|
|
2185
|
-
return Promise.resolve(
|
|
2185
|
+
return Promise.resolve(Os.encode(JSON.stringify(e, void 0, 0)));
|
|
2186
2186
|
}
|
|
2187
2187
|
}),
|
|
2188
2188
|
decoder: Object.freeze({
|
|
@@ -2196,7 +2196,7 @@ const Ns = new TextEncoder(), ca = Object.freeze({
|
|
|
2196
2196
|
}),
|
|
2197
2197
|
stream: Object.freeze({
|
|
2198
2198
|
asReadableStream: (e) => new Es(e),
|
|
2199
|
-
asWritableStream: (e) => new
|
|
2199
|
+
asWritableStream: (e) => new Ns(e)
|
|
2200
2200
|
}),
|
|
2201
2201
|
console,
|
|
2202
2202
|
timer: Object.freeze({
|
|
@@ -2214,7 +2214,7 @@ const Ns = new TextEncoder(), ca = Object.freeze({
|
|
|
2214
2214
|
}
|
|
2215
2215
|
})
|
|
2216
2216
|
});
|
|
2217
|
-
function
|
|
2217
|
+
function ar() {
|
|
2218
2218
|
return ca;
|
|
2219
2219
|
}
|
|
2220
2220
|
(function(e) {
|
|
@@ -2222,8 +2222,8 @@ function or() {
|
|
|
2222
2222
|
be.RAL.install(ca);
|
|
2223
2223
|
}
|
|
2224
2224
|
e.install = t;
|
|
2225
|
-
})(
|
|
2226
|
-
|
|
2225
|
+
})(ar || (ar = {}));
|
|
2226
|
+
fi.default = ar;
|
|
2227
2227
|
(function(e) {
|
|
2228
2228
|
var t = ae && ae.__createBinding || (Object.create ? function(h, f, p, R) {
|
|
2229
2229
|
R === void 0 && (R = p);
|
|
@@ -2236,7 +2236,7 @@ di.default = or;
|
|
|
2236
2236
|
}), i = ae && ae.__exportStar || function(h, f) {
|
|
2237
2237
|
for (var p in h) p !== "default" && !Object.prototype.hasOwnProperty.call(f, p) && t(f, h, p);
|
|
2238
2238
|
};
|
|
2239
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.createMessageConnection = e.BrowserMessageWriter = e.BrowserMessageReader = void 0,
|
|
2239
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.createMessageConnection = e.BrowserMessageWriter = e.BrowserMessageReader = void 0, fi.default.install();
|
|
2240
2240
|
const r = Tn;
|
|
2241
2241
|
i(Tn, e);
|
|
2242
2242
|
class o extends r.AbstractMessageReader {
|
|
@@ -2273,13 +2273,13 @@ di.default = or;
|
|
|
2273
2273
|
}
|
|
2274
2274
|
e.createMessageConnection = d;
|
|
2275
2275
|
})(rt);
|
|
2276
|
-
var
|
|
2276
|
+
var Oi = rt, ua = {}, sr;
|
|
2277
2277
|
(function(e) {
|
|
2278
2278
|
function t(i) {
|
|
2279
2279
|
return typeof i == "string";
|
|
2280
2280
|
}
|
|
2281
2281
|
e.is = t;
|
|
2282
|
-
})(
|
|
2282
|
+
})(sr || (sr = {}));
|
|
2283
2283
|
var Dn;
|
|
2284
2284
|
(function(e) {
|
|
2285
2285
|
function t(i) {
|
|
@@ -2287,14 +2287,14 @@ var Dn;
|
|
|
2287
2287
|
}
|
|
2288
2288
|
e.is = t;
|
|
2289
2289
|
})(Dn || (Dn = {}));
|
|
2290
|
-
var
|
|
2290
|
+
var cr;
|
|
2291
2291
|
(function(e) {
|
|
2292
2292
|
e.MIN_VALUE = -2147483648, e.MAX_VALUE = 2147483647;
|
|
2293
2293
|
function t(i) {
|
|
2294
2294
|
return typeof i == "number" && e.MIN_VALUE <= i && i <= e.MAX_VALUE;
|
|
2295
2295
|
}
|
|
2296
2296
|
e.is = t;
|
|
2297
|
-
})(
|
|
2297
|
+
})(cr || (cr = {}));
|
|
2298
2298
|
var Wt;
|
|
2299
2299
|
(function(e) {
|
|
2300
2300
|
e.MIN_VALUE = 0, e.MAX_VALUE = 2147483647;
|
|
@@ -2343,7 +2343,7 @@ var Ut;
|
|
|
2343
2343
|
}
|
|
2344
2344
|
e.is = i;
|
|
2345
2345
|
})(Ut || (Ut = {}));
|
|
2346
|
-
var
|
|
2346
|
+
var ur;
|
|
2347
2347
|
(function(e) {
|
|
2348
2348
|
function t(n, r, o, c) {
|
|
2349
2349
|
return { targetUri: n, targetRange: r, targetSelectionRange: o, originSelectionRange: c };
|
|
@@ -2354,7 +2354,7 @@ var cr;
|
|
|
2354
2354
|
return u.objectLiteral(r) && W.is(r.targetRange) && u.string(r.targetUri) && W.is(r.targetSelectionRange) && (W.is(r.originSelectionRange) || u.undefined(r.originSelectionRange));
|
|
2355
2355
|
}
|
|
2356
2356
|
e.is = i;
|
|
2357
|
-
})(
|
|
2357
|
+
})(ur || (ur = {}));
|
|
2358
2358
|
var wn;
|
|
2359
2359
|
(function(e) {
|
|
2360
2360
|
function t(n, r, o, c) {
|
|
@@ -2372,7 +2372,7 @@ var wn;
|
|
|
2372
2372
|
}
|
|
2373
2373
|
e.is = i;
|
|
2374
2374
|
})(wn || (wn = {}));
|
|
2375
|
-
var
|
|
2375
|
+
var lr;
|
|
2376
2376
|
(function(e) {
|
|
2377
2377
|
function t(n, r) {
|
|
2378
2378
|
return {
|
|
@@ -2386,8 +2386,8 @@ var ur;
|
|
|
2386
2386
|
return u.objectLiteral(r) && W.is(r.range) && wn.is(r.color);
|
|
2387
2387
|
}
|
|
2388
2388
|
e.is = i;
|
|
2389
|
-
})(
|
|
2390
|
-
var
|
|
2389
|
+
})(lr || (lr = {}));
|
|
2390
|
+
var dr;
|
|
2391
2391
|
(function(e) {
|
|
2392
2392
|
function t(n, r, o) {
|
|
2393
2393
|
return {
|
|
@@ -2402,12 +2402,12 @@ var lr;
|
|
|
2402
2402
|
return u.objectLiteral(r) && u.string(r.label) && (u.undefined(r.textEdit) || _e.is(r)) && (u.undefined(r.additionalTextEdits) || u.typedArray(r.additionalTextEdits, _e.is));
|
|
2403
2403
|
}
|
|
2404
2404
|
e.is = i;
|
|
2405
|
-
})(lr || (lr = {}));
|
|
2406
|
-
var dr;
|
|
2407
|
-
(function(e) {
|
|
2408
|
-
e.Comment = "comment", e.Imports = "imports", e.Region = "region";
|
|
2409
2405
|
})(dr || (dr = {}));
|
|
2410
2406
|
var fr;
|
|
2407
|
+
(function(e) {
|
|
2408
|
+
e.Comment = "comment", e.Imports = "imports", e.Region = "region";
|
|
2409
|
+
})(fr || (fr = {}));
|
|
2410
|
+
var gr;
|
|
2411
2411
|
(function(e) {
|
|
2412
2412
|
function t(n, r, o, c, d, h) {
|
|
2413
2413
|
const f = {
|
|
@@ -2422,7 +2422,7 @@ var fr;
|
|
|
2422
2422
|
return u.objectLiteral(r) && u.uinteger(r.startLine) && u.uinteger(r.startLine) && (u.undefined(r.startCharacter) || u.uinteger(r.startCharacter)) && (u.undefined(r.endCharacter) || u.uinteger(r.endCharacter)) && (u.undefined(r.kind) || u.string(r.kind));
|
|
2423
2423
|
}
|
|
2424
2424
|
e.is = i;
|
|
2425
|
-
})(
|
|
2425
|
+
})(gr || (gr = {}));
|
|
2426
2426
|
var Sn;
|
|
2427
2427
|
(function(e) {
|
|
2428
2428
|
function t(n, r) {
|
|
@@ -2438,22 +2438,22 @@ var Sn;
|
|
|
2438
2438
|
}
|
|
2439
2439
|
e.is = i;
|
|
2440
2440
|
})(Sn || (Sn = {}));
|
|
2441
|
-
var gr;
|
|
2442
|
-
(function(e) {
|
|
2443
|
-
e.Error = 1, e.Warning = 2, e.Information = 3, e.Hint = 4;
|
|
2444
|
-
})(gr || (gr = {}));
|
|
2445
2441
|
var hr;
|
|
2446
2442
|
(function(e) {
|
|
2447
|
-
e.
|
|
2443
|
+
e.Error = 1, e.Warning = 2, e.Information = 3, e.Hint = 4;
|
|
2448
2444
|
})(hr || (hr = {}));
|
|
2449
2445
|
var mr;
|
|
2446
|
+
(function(e) {
|
|
2447
|
+
e.Unnecessary = 1, e.Deprecated = 2;
|
|
2448
|
+
})(mr || (mr = {}));
|
|
2449
|
+
var pr;
|
|
2450
2450
|
(function(e) {
|
|
2451
2451
|
function t(i) {
|
|
2452
2452
|
const n = i;
|
|
2453
2453
|
return u.objectLiteral(n) && u.string(n.href);
|
|
2454
2454
|
}
|
|
2455
2455
|
e.is = t;
|
|
2456
|
-
})(
|
|
2456
|
+
})(pr || (pr = {}));
|
|
2457
2457
|
var Vt;
|
|
2458
2458
|
(function(e) {
|
|
2459
2459
|
function t(n, r, o, c, d, h) {
|
|
@@ -2522,7 +2522,7 @@ var K;
|
|
|
2522
2522
|
}
|
|
2523
2523
|
e.is = t;
|
|
2524
2524
|
})(K || (K = {}));
|
|
2525
|
-
var
|
|
2525
|
+
var Ce;
|
|
2526
2526
|
(function(e) {
|
|
2527
2527
|
function t(o, c, d) {
|
|
2528
2528
|
return { range: o, newText: c, annotationId: d };
|
|
@@ -2541,7 +2541,7 @@ var Se;
|
|
|
2541
2541
|
return _e.is(c) && (et.is(c.annotationId) || K.is(c.annotationId));
|
|
2542
2542
|
}
|
|
2543
2543
|
e.is = r;
|
|
2544
|
-
})(
|
|
2544
|
+
})(Ce || (Ce = {}));
|
|
2545
2545
|
var zt;
|
|
2546
2546
|
(function(e) {
|
|
2547
2547
|
function t(n, r) {
|
|
@@ -2603,31 +2603,31 @@ var ht;
|
|
|
2603
2603
|
}
|
|
2604
2604
|
e.is = i;
|
|
2605
2605
|
})(ht || (ht = {}));
|
|
2606
|
-
var
|
|
2606
|
+
var Cn;
|
|
2607
2607
|
(function(e) {
|
|
2608
2608
|
function t(i) {
|
|
2609
2609
|
let n = i;
|
|
2610
2610
|
return n && (n.changes !== void 0 || n.documentChanges !== void 0) && (n.documentChanges === void 0 || n.documentChanges.every((r) => u.string(r.kind) ? ft.is(r) || gt.is(r) || ht.is(r) : zt.is(r)));
|
|
2611
2611
|
}
|
|
2612
2612
|
e.is = t;
|
|
2613
|
-
})(
|
|
2613
|
+
})(Cn || (Cn = {}));
|
|
2614
2614
|
class _n {
|
|
2615
2615
|
constructor(t, i) {
|
|
2616
2616
|
this.edits = t, this.changeAnnotations = i;
|
|
2617
2617
|
}
|
|
2618
2618
|
insert(t, i, n) {
|
|
2619
2619
|
let r, o;
|
|
2620
|
-
if (n === void 0 ? r = _e.insert(t, i) : K.is(n) ? (o = n, r =
|
|
2620
|
+
if (n === void 0 ? r = _e.insert(t, i) : K.is(n) ? (o = n, r = Ce.insert(t, i, n)) : (this.assertChangeAnnotations(this.changeAnnotations), o = this.changeAnnotations.manage(n), r = Ce.insert(t, i, o)), this.edits.push(r), o !== void 0)
|
|
2621
2621
|
return o;
|
|
2622
2622
|
}
|
|
2623
2623
|
replace(t, i, n) {
|
|
2624
2624
|
let r, o;
|
|
2625
|
-
if (n === void 0 ? r = _e.replace(t, i) : K.is(n) ? (o = n, r =
|
|
2625
|
+
if (n === void 0 ? r = _e.replace(t, i) : K.is(n) ? (o = n, r = Ce.replace(t, i, n)) : (this.assertChangeAnnotations(this.changeAnnotations), o = this.changeAnnotations.manage(n), r = Ce.replace(t, i, o)), this.edits.push(r), o !== void 0)
|
|
2626
2626
|
return o;
|
|
2627
2627
|
}
|
|
2628
2628
|
delete(t, i) {
|
|
2629
2629
|
let n, r;
|
|
2630
|
-
if (i === void 0 ? n = _e.del(t) : K.is(i) ? (r = i, n =
|
|
2630
|
+
if (i === void 0 ? n = _e.del(t) : K.is(i) ? (r = i, n = Ce.del(t, i)) : (this.assertChangeAnnotations(this.changeAnnotations), r = this.changeAnnotations.manage(i), n = Ce.del(t, r)), this.edits.push(n), r !== void 0)
|
|
2631
2631
|
return r;
|
|
2632
2632
|
}
|
|
2633
2633
|
add(t) {
|
|
@@ -2744,7 +2744,7 @@ class js {
|
|
|
2744
2744
|
return c;
|
|
2745
2745
|
}
|
|
2746
2746
|
}
|
|
2747
|
-
var
|
|
2747
|
+
var yr;
|
|
2748
2748
|
(function(e) {
|
|
2749
2749
|
function t(n) {
|
|
2750
2750
|
return { uri: n };
|
|
@@ -2755,8 +2755,8 @@ var pr;
|
|
|
2755
2755
|
return u.defined(r) && u.string(r.uri);
|
|
2756
2756
|
}
|
|
2757
2757
|
e.is = i;
|
|
2758
|
-
})(
|
|
2759
|
-
var
|
|
2758
|
+
})(yr || (yr = {}));
|
|
2759
|
+
var vr;
|
|
2760
2760
|
(function(e) {
|
|
2761
2761
|
function t(n, r) {
|
|
2762
2762
|
return { uri: n, version: r };
|
|
@@ -2767,7 +2767,7 @@ var yr;
|
|
|
2767
2767
|
return u.defined(r) && u.string(r.uri) && u.integer(r.version);
|
|
2768
2768
|
}
|
|
2769
2769
|
e.is = i;
|
|
2770
|
-
})(
|
|
2770
|
+
})(vr || (vr = {}));
|
|
2771
2771
|
var Bt;
|
|
2772
2772
|
(function(e) {
|
|
2773
2773
|
function t(n, r) {
|
|
@@ -2780,7 +2780,7 @@ var Bt;
|
|
|
2780
2780
|
}
|
|
2781
2781
|
e.is = i;
|
|
2782
2782
|
})(Bt || (Bt = {}));
|
|
2783
|
-
var
|
|
2783
|
+
var br;
|
|
2784
2784
|
(function(e) {
|
|
2785
2785
|
function t(n, r, o, c) {
|
|
2786
2786
|
return { uri: n, languageId: r, version: o, text: c };
|
|
@@ -2791,8 +2791,8 @@ var vr;
|
|
|
2791
2791
|
return u.defined(r) && u.string(r.uri) && u.string(r.languageId) && u.integer(r.version) && u.string(r.text);
|
|
2792
2792
|
}
|
|
2793
2793
|
e.is = i;
|
|
2794
|
-
})(
|
|
2795
|
-
var
|
|
2794
|
+
})(br || (br = {}));
|
|
2795
|
+
var Pn;
|
|
2796
2796
|
(function(e) {
|
|
2797
2797
|
e.PlainText = "plaintext", e.Markdown = "markdown";
|
|
2798
2798
|
function t(i) {
|
|
@@ -2800,28 +2800,28 @@ var Cn;
|
|
|
2800
2800
|
return n === e.PlainText || n === e.Markdown;
|
|
2801
2801
|
}
|
|
2802
2802
|
e.is = t;
|
|
2803
|
-
})(
|
|
2803
|
+
})(Pn || (Pn = {}));
|
|
2804
2804
|
var mt;
|
|
2805
2805
|
(function(e) {
|
|
2806
2806
|
function t(i) {
|
|
2807
2807
|
const n = i;
|
|
2808
|
-
return u.objectLiteral(i) &&
|
|
2808
|
+
return u.objectLiteral(i) && Pn.is(n.kind) && u.string(n.value);
|
|
2809
2809
|
}
|
|
2810
2810
|
e.is = t;
|
|
2811
2811
|
})(mt || (mt = {}));
|
|
2812
|
-
var br;
|
|
2813
|
-
(function(e) {
|
|
2814
|
-
e.Text = 1, e.Method = 2, e.Function = 3, e.Constructor = 4, e.Field = 5, e.Variable = 6, e.Class = 7, e.Interface = 8, e.Module = 9, e.Property = 10, e.Unit = 11, e.Value = 12, e.Enum = 13, e.Keyword = 14, e.Snippet = 15, e.Color = 16, e.File = 17, e.Reference = 18, e.Folder = 19, e.EnumMember = 20, e.Constant = 21, e.Struct = 22, e.Event = 23, e.Operator = 24, e.TypeParameter = 25;
|
|
2815
|
-
})(br || (br = {}));
|
|
2816
2812
|
var _r;
|
|
2817
2813
|
(function(e) {
|
|
2818
|
-
e.
|
|
2814
|
+
e.Text = 1, e.Method = 2, e.Function = 3, e.Constructor = 4, e.Field = 5, e.Variable = 6, e.Class = 7, e.Interface = 8, e.Module = 9, e.Property = 10, e.Unit = 11, e.Value = 12, e.Enum = 13, e.Keyword = 14, e.Snippet = 15, e.Color = 16, e.File = 17, e.Reference = 18, e.Folder = 19, e.EnumMember = 20, e.Constant = 21, e.Struct = 22, e.Event = 23, e.Operator = 24, e.TypeParameter = 25;
|
|
2819
2815
|
})(_r || (_r = {}));
|
|
2820
2816
|
var Tr;
|
|
2821
2817
|
(function(e) {
|
|
2822
|
-
e.
|
|
2818
|
+
e.PlainText = 1, e.Snippet = 2;
|
|
2823
2819
|
})(Tr || (Tr = {}));
|
|
2824
2820
|
var Rr;
|
|
2821
|
+
(function(e) {
|
|
2822
|
+
e.Deprecated = 1;
|
|
2823
|
+
})(Rr || (Rr = {}));
|
|
2824
|
+
var Dr;
|
|
2825
2825
|
(function(e) {
|
|
2826
2826
|
function t(n, r, o) {
|
|
2827
2827
|
return { newText: n, insert: r, replace: o };
|
|
@@ -2832,26 +2832,26 @@ var Rr;
|
|
|
2832
2832
|
return r && u.string(r.newText) && W.is(r.insert) && W.is(r.replace);
|
|
2833
2833
|
}
|
|
2834
2834
|
e.is = i;
|
|
2835
|
-
})(Rr || (Rr = {}));
|
|
2836
|
-
var Dr;
|
|
2837
|
-
(function(e) {
|
|
2838
|
-
e.asIs = 1, e.adjustIndentation = 2;
|
|
2839
2835
|
})(Dr || (Dr = {}));
|
|
2840
2836
|
var wr;
|
|
2837
|
+
(function(e) {
|
|
2838
|
+
e.asIs = 1, e.adjustIndentation = 2;
|
|
2839
|
+
})(wr || (wr = {}));
|
|
2840
|
+
var Sr;
|
|
2841
2841
|
(function(e) {
|
|
2842
2842
|
function t(i) {
|
|
2843
2843
|
const n = i;
|
|
2844
2844
|
return n && (u.string(n.detail) || n.detail === void 0) && (u.string(n.description) || n.description === void 0);
|
|
2845
2845
|
}
|
|
2846
2846
|
e.is = t;
|
|
2847
|
-
})(
|
|
2848
|
-
var
|
|
2847
|
+
})(Sr || (Sr = {}));
|
|
2848
|
+
var Cr;
|
|
2849
2849
|
(function(e) {
|
|
2850
2850
|
function t(i) {
|
|
2851
2851
|
return { label: i };
|
|
2852
2852
|
}
|
|
2853
2853
|
e.create = t;
|
|
2854
|
-
})(
|
|
2854
|
+
})(Cr || (Cr = {}));
|
|
2855
2855
|
var Pr;
|
|
2856
2856
|
(function(e) {
|
|
2857
2857
|
function t(i, n) {
|
|
@@ -2871,33 +2871,33 @@ var Jt;
|
|
|
2871
2871
|
}
|
|
2872
2872
|
e.is = i;
|
|
2873
2873
|
})(Jt || (Jt = {}));
|
|
2874
|
-
var
|
|
2874
|
+
var Mr;
|
|
2875
2875
|
(function(e) {
|
|
2876
2876
|
function t(i) {
|
|
2877
2877
|
let n = i;
|
|
2878
2878
|
return !!n && u.objectLiteral(n) && (mt.is(n.contents) || Jt.is(n.contents) || u.typedArray(n.contents, Jt.is)) && (i.range === void 0 || W.is(i.range));
|
|
2879
2879
|
}
|
|
2880
2880
|
e.is = t;
|
|
2881
|
-
})(
|
|
2882
|
-
var
|
|
2881
|
+
})(Mr || (Mr = {}));
|
|
2882
|
+
var kr;
|
|
2883
2883
|
(function(e) {
|
|
2884
2884
|
function t(i, n) {
|
|
2885
2885
|
return n ? { label: i, documentation: n } : { label: i };
|
|
2886
2886
|
}
|
|
2887
2887
|
e.create = t;
|
|
2888
|
-
})(
|
|
2889
|
-
var
|
|
2888
|
+
})(kr || (kr = {}));
|
|
2889
|
+
var Er;
|
|
2890
2890
|
(function(e) {
|
|
2891
2891
|
function t(i, n, ...r) {
|
|
2892
2892
|
let o = { label: i };
|
|
2893
2893
|
return u.defined(n) && (o.documentation = n), u.defined(r) ? o.parameters = r : o.parameters = [], o;
|
|
2894
2894
|
}
|
|
2895
2895
|
e.create = t;
|
|
2896
|
-
})(
|
|
2897
|
-
var
|
|
2896
|
+
})(Er || (Er = {}));
|
|
2897
|
+
var Nr;
|
|
2898
2898
|
(function(e) {
|
|
2899
2899
|
e.Text = 1, e.Read = 2, e.Write = 3;
|
|
2900
|
-
})(
|
|
2900
|
+
})(Nr || (Nr = {}));
|
|
2901
2901
|
var Or;
|
|
2902
2902
|
(function(e) {
|
|
2903
2903
|
function t(i, n) {
|
|
@@ -2906,15 +2906,15 @@ var Or;
|
|
|
2906
2906
|
}
|
|
2907
2907
|
e.create = t;
|
|
2908
2908
|
})(Or || (Or = {}));
|
|
2909
|
-
var Nr;
|
|
2910
|
-
(function(e) {
|
|
2911
|
-
e.File = 1, e.Module = 2, e.Namespace = 3, e.Package = 4, e.Class = 5, e.Method = 6, e.Property = 7, e.Field = 8, e.Constructor = 9, e.Enum = 10, e.Interface = 11, e.Function = 12, e.Variable = 13, e.Constant = 14, e.String = 15, e.Number = 16, e.Boolean = 17, e.Array = 18, e.Object = 19, e.Key = 20, e.Null = 21, e.EnumMember = 22, e.Struct = 23, e.Event = 24, e.Operator = 25, e.TypeParameter = 26;
|
|
2912
|
-
})(Nr || (Nr = {}));
|
|
2913
2909
|
var jr;
|
|
2914
2910
|
(function(e) {
|
|
2915
|
-
e.
|
|
2911
|
+
e.File = 1, e.Module = 2, e.Namespace = 3, e.Package = 4, e.Class = 5, e.Method = 6, e.Property = 7, e.Field = 8, e.Constructor = 9, e.Enum = 10, e.Interface = 11, e.Function = 12, e.Variable = 13, e.Constant = 14, e.String = 15, e.Number = 16, e.Boolean = 17, e.Array = 18, e.Object = 19, e.Key = 20, e.Null = 21, e.EnumMember = 22, e.Struct = 23, e.Event = 24, e.Operator = 25, e.TypeParameter = 26;
|
|
2916
2912
|
})(jr || (jr = {}));
|
|
2917
2913
|
var qr;
|
|
2914
|
+
(function(e) {
|
|
2915
|
+
e.Deprecated = 1;
|
|
2916
|
+
})(qr || (qr = {}));
|
|
2917
|
+
var Ir;
|
|
2918
2918
|
(function(e) {
|
|
2919
2919
|
function t(i, n, r, o, c) {
|
|
2920
2920
|
let d = {
|
|
@@ -2925,15 +2925,15 @@ var qr;
|
|
|
2925
2925
|
return c && (d.containerName = c), d;
|
|
2926
2926
|
}
|
|
2927
2927
|
e.create = t;
|
|
2928
|
-
})(
|
|
2929
|
-
var
|
|
2928
|
+
})(Ir || (Ir = {}));
|
|
2929
|
+
var Lr;
|
|
2930
2930
|
(function(e) {
|
|
2931
2931
|
function t(i, n, r, o) {
|
|
2932
2932
|
return o !== void 0 ? { name: i, kind: n, location: { uri: r, range: o } } : { name: i, kind: n, location: { uri: r } };
|
|
2933
2933
|
}
|
|
2934
2934
|
e.create = t;
|
|
2935
|
-
})(
|
|
2936
|
-
var
|
|
2935
|
+
})(Lr || (Lr = {}));
|
|
2936
|
+
var Ar;
|
|
2937
2937
|
(function(e) {
|
|
2938
2938
|
function t(n, r, o, c, d, h) {
|
|
2939
2939
|
let f = {
|
|
@@ -2951,16 +2951,16 @@ var Lr;
|
|
|
2951
2951
|
return r && u.string(r.name) && u.number(r.kind) && W.is(r.range) && W.is(r.selectionRange) && (r.detail === void 0 || u.string(r.detail)) && (r.deprecated === void 0 || u.boolean(r.deprecated)) && (r.children === void 0 || Array.isArray(r.children)) && (r.tags === void 0 || Array.isArray(r.tags));
|
|
2952
2952
|
}
|
|
2953
2953
|
e.is = i;
|
|
2954
|
-
})(
|
|
2955
|
-
var
|
|
2954
|
+
})(Ar || (Ar = {}));
|
|
2955
|
+
var $r;
|
|
2956
2956
|
(function(e) {
|
|
2957
2957
|
e.Empty = "", e.QuickFix = "quickfix", e.Refactor = "refactor", e.RefactorExtract = "refactor.extract", e.RefactorInline = "refactor.inline", e.RefactorRewrite = "refactor.rewrite", e.Source = "source", e.SourceOrganizeImports = "source.organizeImports", e.SourceFixAll = "source.fixAll";
|
|
2958
|
-
})(
|
|
2958
|
+
})($r || ($r = {}));
|
|
2959
2959
|
var Kt;
|
|
2960
2960
|
(function(e) {
|
|
2961
2961
|
e.Invoked = 1, e.Automatic = 2;
|
|
2962
2962
|
})(Kt || (Kt = {}));
|
|
2963
|
-
var
|
|
2963
|
+
var Fr;
|
|
2964
2964
|
(function(e) {
|
|
2965
2965
|
function t(n, r, o) {
|
|
2966
2966
|
let c = { diagnostics: n };
|
|
@@ -2972,8 +2972,8 @@ var $r;
|
|
|
2972
2972
|
return u.defined(r) && u.typedArray(r.diagnostics, Vt.is) && (r.only === void 0 || u.typedArray(r.only, u.string)) && (r.triggerKind === void 0 || r.triggerKind === Kt.Invoked || r.triggerKind === Kt.Automatic);
|
|
2973
2973
|
}
|
|
2974
2974
|
e.is = i;
|
|
2975
|
-
})(
|
|
2976
|
-
var
|
|
2975
|
+
})(Fr || (Fr = {}));
|
|
2976
|
+
var Hr;
|
|
2977
2977
|
(function(e) {
|
|
2978
2978
|
function t(n, r, o) {
|
|
2979
2979
|
let c = { title: n }, d = !0;
|
|
@@ -2982,11 +2982,11 @@ var Fr;
|
|
|
2982
2982
|
e.create = t;
|
|
2983
2983
|
function i(n) {
|
|
2984
2984
|
let r = n;
|
|
2985
|
-
return r && u.string(r.title) && (r.diagnostics === void 0 || u.typedArray(r.diagnostics, Vt.is)) && (r.kind === void 0 || u.string(r.kind)) && (r.edit !== void 0 || r.command !== void 0) && (r.command === void 0 || nt.is(r.command)) && (r.isPreferred === void 0 || u.boolean(r.isPreferred)) && (r.edit === void 0 ||
|
|
2985
|
+
return r && u.string(r.title) && (r.diagnostics === void 0 || u.typedArray(r.diagnostics, Vt.is)) && (r.kind === void 0 || u.string(r.kind)) && (r.edit !== void 0 || r.command !== void 0) && (r.command === void 0 || nt.is(r.command)) && (r.isPreferred === void 0 || u.boolean(r.isPreferred)) && (r.edit === void 0 || Cn.is(r.edit));
|
|
2986
2986
|
}
|
|
2987
2987
|
e.is = i;
|
|
2988
|
-
})(
|
|
2989
|
-
var
|
|
2988
|
+
})(Hr || (Hr = {}));
|
|
2989
|
+
var Wr;
|
|
2990
2990
|
(function(e) {
|
|
2991
2991
|
function t(n, r) {
|
|
2992
2992
|
let o = { range: n };
|
|
@@ -2998,8 +2998,8 @@ var Hr;
|
|
|
2998
2998
|
return u.defined(r) && W.is(r.range) && (u.undefined(r.command) || nt.is(r.command));
|
|
2999
2999
|
}
|
|
3000
3000
|
e.is = i;
|
|
3001
|
-
})(
|
|
3002
|
-
var
|
|
3001
|
+
})(Wr || (Wr = {}));
|
|
3002
|
+
var Ur;
|
|
3003
3003
|
(function(e) {
|
|
3004
3004
|
function t(n, r) {
|
|
3005
3005
|
return { tabSize: n, insertSpaces: r };
|
|
@@ -3010,8 +3010,8 @@ var Wr;
|
|
|
3010
3010
|
return u.defined(r) && u.uinteger(r.tabSize) && u.boolean(r.insertSpaces);
|
|
3011
3011
|
}
|
|
3012
3012
|
e.is = i;
|
|
3013
|
-
})(
|
|
3014
|
-
var
|
|
3013
|
+
})(Ur || (Ur = {}));
|
|
3014
|
+
var Vr;
|
|
3015
3015
|
(function(e) {
|
|
3016
3016
|
function t(n, r, o) {
|
|
3017
3017
|
return { range: n, target: r, data: o };
|
|
@@ -3022,8 +3022,8 @@ var Ur;
|
|
|
3022
3022
|
return u.defined(r) && W.is(r.range) && (u.undefined(r.target) || u.string(r.target));
|
|
3023
3023
|
}
|
|
3024
3024
|
e.is = i;
|
|
3025
|
-
})(
|
|
3026
|
-
var
|
|
3025
|
+
})(Vr || (Vr = {}));
|
|
3026
|
+
var zr;
|
|
3027
3027
|
(function(e) {
|
|
3028
3028
|
function t(n, r) {
|
|
3029
3029
|
return { range: n, parent: r };
|
|
@@ -3034,24 +3034,24 @@ var Vr;
|
|
|
3034
3034
|
return u.objectLiteral(r) && W.is(r.range) && (r.parent === void 0 || e.is(r.parent));
|
|
3035
3035
|
}
|
|
3036
3036
|
e.is = i;
|
|
3037
|
-
})(Vr || (Vr = {}));
|
|
3038
|
-
var zr;
|
|
3039
|
-
(function(e) {
|
|
3040
|
-
e.namespace = "namespace", e.type = "type", e.class = "class", e.enum = "enum", e.interface = "interface", e.struct = "struct", e.typeParameter = "typeParameter", e.parameter = "parameter", e.variable = "variable", e.property = "property", e.enumMember = "enumMember", e.event = "event", e.function = "function", e.method = "method", e.macro = "macro", e.keyword = "keyword", e.modifier = "modifier", e.comment = "comment", e.string = "string", e.number = "number", e.regexp = "regexp", e.operator = "operator", e.decorator = "decorator";
|
|
3041
3037
|
})(zr || (zr = {}));
|
|
3042
3038
|
var Br;
|
|
3043
3039
|
(function(e) {
|
|
3044
|
-
e.
|
|
3040
|
+
e.namespace = "namespace", e.type = "type", e.class = "class", e.enum = "enum", e.interface = "interface", e.struct = "struct", e.typeParameter = "typeParameter", e.parameter = "parameter", e.variable = "variable", e.property = "property", e.enumMember = "enumMember", e.event = "event", e.function = "function", e.method = "method", e.macro = "macro", e.keyword = "keyword", e.modifier = "modifier", e.comment = "comment", e.string = "string", e.number = "number", e.regexp = "regexp", e.operator = "operator", e.decorator = "decorator";
|
|
3045
3041
|
})(Br || (Br = {}));
|
|
3046
3042
|
var Jr;
|
|
3043
|
+
(function(e) {
|
|
3044
|
+
e.declaration = "declaration", e.definition = "definition", e.readonly = "readonly", e.static = "static", e.deprecated = "deprecated", e.abstract = "abstract", e.async = "async", e.modification = "modification", e.documentation = "documentation", e.defaultLibrary = "defaultLibrary";
|
|
3045
|
+
})(Jr || (Jr = {}));
|
|
3046
|
+
var Kr;
|
|
3047
3047
|
(function(e) {
|
|
3048
3048
|
function t(i) {
|
|
3049
3049
|
const n = i;
|
|
3050
3050
|
return u.objectLiteral(n) && (n.resultId === void 0 || typeof n.resultId == "string") && Array.isArray(n.data) && (n.data.length === 0 || typeof n.data[0] == "number");
|
|
3051
3051
|
}
|
|
3052
3052
|
e.is = t;
|
|
3053
|
-
})(
|
|
3054
|
-
var
|
|
3053
|
+
})(Kr || (Kr = {}));
|
|
3054
|
+
var Qr;
|
|
3055
3055
|
(function(e) {
|
|
3056
3056
|
function t(n, r) {
|
|
3057
3057
|
return { range: n, text: r };
|
|
@@ -3062,8 +3062,8 @@ var Kr;
|
|
|
3062
3062
|
return r != null && W.is(r.range) && u.string(r.text);
|
|
3063
3063
|
}
|
|
3064
3064
|
e.is = i;
|
|
3065
|
-
})(
|
|
3066
|
-
var
|
|
3065
|
+
})(Qr || (Qr = {}));
|
|
3066
|
+
var Xr;
|
|
3067
3067
|
(function(e) {
|
|
3068
3068
|
function t(n, r, o) {
|
|
3069
3069
|
return { range: n, variableName: r, caseSensitiveLookup: o };
|
|
@@ -3074,8 +3074,8 @@ var Qr;
|
|
|
3074
3074
|
return r != null && W.is(r.range) && u.boolean(r.caseSensitiveLookup) && (u.string(r.variableName) || r.variableName === void 0);
|
|
3075
3075
|
}
|
|
3076
3076
|
e.is = i;
|
|
3077
|
-
})(
|
|
3078
|
-
var
|
|
3077
|
+
})(Xr || (Xr = {}));
|
|
3078
|
+
var Gr;
|
|
3079
3079
|
(function(e) {
|
|
3080
3080
|
function t(n, r) {
|
|
3081
3081
|
return { range: n, expression: r };
|
|
@@ -3086,8 +3086,8 @@ var Xr;
|
|
|
3086
3086
|
return r != null && W.is(r.range) && (u.string(r.expression) || r.expression === void 0);
|
|
3087
3087
|
}
|
|
3088
3088
|
e.is = i;
|
|
3089
|
-
})(
|
|
3090
|
-
var
|
|
3089
|
+
})(Gr || (Gr = {}));
|
|
3090
|
+
var Yr;
|
|
3091
3091
|
(function(e) {
|
|
3092
3092
|
function t(n, r) {
|
|
3093
3093
|
return { frameId: n, stoppedLocation: r };
|
|
@@ -3098,7 +3098,7 @@ var Gr;
|
|
|
3098
3098
|
return u.defined(r) && W.is(n.stoppedLocation);
|
|
3099
3099
|
}
|
|
3100
3100
|
e.is = i;
|
|
3101
|
-
})(
|
|
3101
|
+
})(Yr || (Yr = {}));
|
|
3102
3102
|
var Mn;
|
|
3103
3103
|
(function(e) {
|
|
3104
3104
|
e.Type = 1, e.Parameter = 2;
|
|
@@ -3119,7 +3119,7 @@ var kn;
|
|
|
3119
3119
|
}
|
|
3120
3120
|
e.is = i;
|
|
3121
3121
|
})(kn || (kn = {}));
|
|
3122
|
-
var
|
|
3122
|
+
var Zr;
|
|
3123
3123
|
(function(e) {
|
|
3124
3124
|
function t(n, r, o) {
|
|
3125
3125
|
const c = { position: n, label: r };
|
|
@@ -3131,58 +3131,58 @@ var Yr;
|
|
|
3131
3131
|
return u.objectLiteral(r) && ie.is(r.position) && (u.string(r.label) || u.typedArray(r.label, kn.is)) && (r.kind === void 0 || Mn.is(r.kind)) && r.textEdits === void 0 || u.typedArray(r.textEdits, _e.is) && (r.tooltip === void 0 || u.string(r.tooltip) || mt.is(r.tooltip)) && (r.paddingLeft === void 0 || u.boolean(r.paddingLeft)) && (r.paddingRight === void 0 || u.boolean(r.paddingRight));
|
|
3132
3132
|
}
|
|
3133
3133
|
e.is = i;
|
|
3134
|
-
})(
|
|
3135
|
-
var
|
|
3134
|
+
})(Zr || (Zr = {}));
|
|
3135
|
+
var xr;
|
|
3136
3136
|
(function(e) {
|
|
3137
3137
|
function t(i) {
|
|
3138
3138
|
return { kind: "snippet", value: i };
|
|
3139
3139
|
}
|
|
3140
3140
|
e.createSnippet = t;
|
|
3141
|
-
})(
|
|
3142
|
-
var
|
|
3141
|
+
})(xr || (xr = {}));
|
|
3142
|
+
var ei;
|
|
3143
3143
|
(function(e) {
|
|
3144
3144
|
function t(i, n, r, o) {
|
|
3145
3145
|
return { insertText: i, filterText: n, range: r, command: o };
|
|
3146
3146
|
}
|
|
3147
3147
|
e.create = t;
|
|
3148
|
-
})(
|
|
3149
|
-
var
|
|
3148
|
+
})(ei || (ei = {}));
|
|
3149
|
+
var ti;
|
|
3150
3150
|
(function(e) {
|
|
3151
3151
|
function t(i) {
|
|
3152
3152
|
return { items: i };
|
|
3153
3153
|
}
|
|
3154
3154
|
e.create = t;
|
|
3155
|
-
})(ei || (ei = {}));
|
|
3156
|
-
var ti;
|
|
3157
|
-
(function(e) {
|
|
3158
|
-
e.Invoked = 0, e.Automatic = 1;
|
|
3159
3155
|
})(ti || (ti = {}));
|
|
3160
3156
|
var ni;
|
|
3157
|
+
(function(e) {
|
|
3158
|
+
e.Invoked = 0, e.Automatic = 1;
|
|
3159
|
+
})(ni || (ni = {}));
|
|
3160
|
+
var ri;
|
|
3161
3161
|
(function(e) {
|
|
3162
3162
|
function t(i, n) {
|
|
3163
3163
|
return { range: i, text: n };
|
|
3164
3164
|
}
|
|
3165
3165
|
e.create = t;
|
|
3166
|
-
})(
|
|
3167
|
-
var
|
|
3166
|
+
})(ri || (ri = {}));
|
|
3167
|
+
var ii;
|
|
3168
3168
|
(function(e) {
|
|
3169
3169
|
function t(i, n) {
|
|
3170
3170
|
return { triggerKind: i, selectedCompletionInfo: n };
|
|
3171
3171
|
}
|
|
3172
3172
|
e.create = t;
|
|
3173
|
-
})(
|
|
3174
|
-
var
|
|
3173
|
+
})(ii || (ii = {}));
|
|
3174
|
+
var oi;
|
|
3175
3175
|
(function(e) {
|
|
3176
3176
|
function t(i) {
|
|
3177
3177
|
const n = i;
|
|
3178
3178
|
return u.objectLiteral(n) && Dn.is(n.uri) && u.string(n.name);
|
|
3179
3179
|
}
|
|
3180
3180
|
e.is = t;
|
|
3181
|
-
})(
|
|
3181
|
+
})(oi || (oi = {}));
|
|
3182
3182
|
const qs = [`
|
|
3183
3183
|
`, `\r
|
|
3184
3184
|
`, "\r"];
|
|
3185
|
-
var
|
|
3185
|
+
var ai;
|
|
3186
3186
|
(function(e) {
|
|
3187
3187
|
function t(o, c, d, h) {
|
|
3188
3188
|
return new Is(o, c, d, h);
|
|
@@ -3199,9 +3199,9 @@ var oi;
|
|
|
3199
3199
|
return y === 0 ? p.range.start.character - R.range.start.character : y;
|
|
3200
3200
|
}), f = d.length;
|
|
3201
3201
|
for (let p = h.length - 1; p >= 0; p--) {
|
|
3202
|
-
let R = h[p], y = o.offsetAt(R.range.start),
|
|
3203
|
-
if (
|
|
3204
|
-
d = d.substring(0, y) + R.newText + d.substring(
|
|
3202
|
+
let R = h[p], y = o.offsetAt(R.range.start), w = o.offsetAt(R.range.end);
|
|
3203
|
+
if (w <= f)
|
|
3204
|
+
d = d.substring(0, y) + R.newText + d.substring(w, d.length);
|
|
3205
3205
|
else
|
|
3206
3206
|
throw new Error("Overlapping edit");
|
|
3207
3207
|
f = y;
|
|
@@ -3223,7 +3223,7 @@ var oi;
|
|
|
3223
3223
|
o[y++] = f[R++];
|
|
3224
3224
|
return o;
|
|
3225
3225
|
}
|
|
3226
|
-
})(
|
|
3226
|
+
})(ai || (ai = {}));
|
|
3227
3227
|
class Is {
|
|
3228
3228
|
constructor(t, i, n, r) {
|
|
3229
3229
|
this._uri = t, this._languageId = i, this._version = n, this._content = r, this._lineOffsets = void 0;
|
|
@@ -3289,55 +3289,55 @@ class Is {
|
|
|
3289
3289
|
var u;
|
|
3290
3290
|
(function(e) {
|
|
3291
3291
|
const t = Object.prototype.toString;
|
|
3292
|
-
function i(
|
|
3293
|
-
return typeof
|
|
3292
|
+
function i(w) {
|
|
3293
|
+
return typeof w < "u";
|
|
3294
3294
|
}
|
|
3295
3295
|
e.defined = i;
|
|
3296
|
-
function n(
|
|
3297
|
-
return typeof
|
|
3296
|
+
function n(w) {
|
|
3297
|
+
return typeof w > "u";
|
|
3298
3298
|
}
|
|
3299
3299
|
e.undefined = n;
|
|
3300
|
-
function r(
|
|
3301
|
-
return
|
|
3300
|
+
function r(w) {
|
|
3301
|
+
return w === !0 || w === !1;
|
|
3302
3302
|
}
|
|
3303
3303
|
e.boolean = r;
|
|
3304
|
-
function o(
|
|
3305
|
-
return t.call(
|
|
3304
|
+
function o(w) {
|
|
3305
|
+
return t.call(w) === "[object String]";
|
|
3306
3306
|
}
|
|
3307
3307
|
e.string = o;
|
|
3308
|
-
function c(
|
|
3309
|
-
return t.call(
|
|
3308
|
+
function c(w) {
|
|
3309
|
+
return t.call(w) === "[object Number]";
|
|
3310
3310
|
}
|
|
3311
3311
|
e.number = c;
|
|
3312
|
-
function d(
|
|
3313
|
-
return t.call(
|
|
3312
|
+
function d(w, q, ze) {
|
|
3313
|
+
return t.call(w) === "[object Number]" && q <= w && w <= ze;
|
|
3314
3314
|
}
|
|
3315
3315
|
e.numberRange = d;
|
|
3316
|
-
function h(
|
|
3317
|
-
return t.call(
|
|
3316
|
+
function h(w) {
|
|
3317
|
+
return t.call(w) === "[object Number]" && -2147483648 <= w && w <= 2147483647;
|
|
3318
3318
|
}
|
|
3319
3319
|
e.integer = h;
|
|
3320
|
-
function f(
|
|
3321
|
-
return t.call(
|
|
3320
|
+
function f(w) {
|
|
3321
|
+
return t.call(w) === "[object Number]" && 0 <= w && w <= 2147483647;
|
|
3322
3322
|
}
|
|
3323
3323
|
e.uinteger = f;
|
|
3324
|
-
function p(
|
|
3325
|
-
return t.call(
|
|
3324
|
+
function p(w) {
|
|
3325
|
+
return t.call(w) === "[object Function]";
|
|
3326
3326
|
}
|
|
3327
3327
|
e.func = p;
|
|
3328
|
-
function R(
|
|
3329
|
-
return
|
|
3328
|
+
function R(w) {
|
|
3329
|
+
return w !== null && typeof w == "object";
|
|
3330
3330
|
}
|
|
3331
3331
|
e.objectLiteral = R;
|
|
3332
|
-
function y(
|
|
3333
|
-
return Array.isArray(
|
|
3332
|
+
function y(w, q) {
|
|
3333
|
+
return Array.isArray(w) && w.every(q);
|
|
3334
3334
|
}
|
|
3335
3335
|
e.typedArray = y;
|
|
3336
3336
|
})(u || (u = {}));
|
|
3337
3337
|
const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3338
3338
|
__proto__: null,
|
|
3339
3339
|
get AnnotatedTextEdit() {
|
|
3340
|
-
return
|
|
3340
|
+
return Ce;
|
|
3341
3341
|
},
|
|
3342
3342
|
get ChangeAnnotation() {
|
|
3343
3343
|
return et;
|
|
@@ -3346,46 +3346,46 @@ const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3346
3346
|
return K;
|
|
3347
3347
|
},
|
|
3348
3348
|
get CodeAction() {
|
|
3349
|
-
return
|
|
3349
|
+
return Hr;
|
|
3350
3350
|
},
|
|
3351
3351
|
get CodeActionContext() {
|
|
3352
|
-
return
|
|
3352
|
+
return Fr;
|
|
3353
3353
|
},
|
|
3354
3354
|
get CodeActionKind() {
|
|
3355
|
-
return
|
|
3355
|
+
return $r;
|
|
3356
3356
|
},
|
|
3357
3357
|
get CodeActionTriggerKind() {
|
|
3358
3358
|
return Kt;
|
|
3359
3359
|
},
|
|
3360
3360
|
get CodeDescription() {
|
|
3361
|
-
return
|
|
3361
|
+
return pr;
|
|
3362
3362
|
},
|
|
3363
3363
|
get CodeLens() {
|
|
3364
|
-
return
|
|
3364
|
+
return Wr;
|
|
3365
3365
|
},
|
|
3366
3366
|
get Color() {
|
|
3367
3367
|
return wn;
|
|
3368
3368
|
},
|
|
3369
3369
|
get ColorInformation() {
|
|
3370
|
-
return
|
|
3370
|
+
return lr;
|
|
3371
3371
|
},
|
|
3372
3372
|
get ColorPresentation() {
|
|
3373
|
-
return
|
|
3373
|
+
return dr;
|
|
3374
3374
|
},
|
|
3375
3375
|
get Command() {
|
|
3376
3376
|
return nt;
|
|
3377
3377
|
},
|
|
3378
3378
|
get CompletionItem() {
|
|
3379
|
-
return
|
|
3379
|
+
return Cr;
|
|
3380
3380
|
},
|
|
3381
3381
|
get CompletionItemKind() {
|
|
3382
|
-
return
|
|
3382
|
+
return _r;
|
|
3383
3383
|
},
|
|
3384
3384
|
get CompletionItemLabelDetails() {
|
|
3385
|
-
return
|
|
3385
|
+
return Sr;
|
|
3386
3386
|
},
|
|
3387
3387
|
get CompletionItemTag() {
|
|
3388
|
-
return
|
|
3388
|
+
return Rr;
|
|
3389
3389
|
},
|
|
3390
3390
|
get CompletionList() {
|
|
3391
3391
|
return Pr;
|
|
@@ -3403,41 +3403,41 @@ const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3403
3403
|
return Sn;
|
|
3404
3404
|
},
|
|
3405
3405
|
get DiagnosticSeverity() {
|
|
3406
|
-
return
|
|
3406
|
+
return hr;
|
|
3407
3407
|
},
|
|
3408
3408
|
get DiagnosticTag() {
|
|
3409
|
-
return
|
|
3409
|
+
return mr;
|
|
3410
3410
|
},
|
|
3411
3411
|
get DocumentHighlight() {
|
|
3412
3412
|
return Or;
|
|
3413
3413
|
},
|
|
3414
3414
|
get DocumentHighlightKind() {
|
|
3415
|
-
return
|
|
3415
|
+
return Nr;
|
|
3416
3416
|
},
|
|
3417
3417
|
get DocumentLink() {
|
|
3418
|
-
return
|
|
3418
|
+
return Vr;
|
|
3419
3419
|
},
|
|
3420
3420
|
get DocumentSymbol() {
|
|
3421
|
-
return
|
|
3421
|
+
return Ar;
|
|
3422
3422
|
},
|
|
3423
3423
|
get DocumentUri() {
|
|
3424
|
-
return
|
|
3424
|
+
return sr;
|
|
3425
3425
|
},
|
|
3426
3426
|
EOL: qs,
|
|
3427
3427
|
get FoldingRange() {
|
|
3428
|
-
return
|
|
3428
|
+
return gr;
|
|
3429
3429
|
},
|
|
3430
3430
|
get FoldingRangeKind() {
|
|
3431
|
-
return
|
|
3431
|
+
return fr;
|
|
3432
3432
|
},
|
|
3433
3433
|
get FormattingOptions() {
|
|
3434
|
-
return
|
|
3434
|
+
return Ur;
|
|
3435
3435
|
},
|
|
3436
3436
|
get Hover() {
|
|
3437
|
-
return
|
|
3437
|
+
return Mr;
|
|
3438
3438
|
},
|
|
3439
3439
|
get InlayHint() {
|
|
3440
|
-
return
|
|
3440
|
+
return Zr;
|
|
3441
3441
|
},
|
|
3442
3442
|
get InlayHintKind() {
|
|
3443
3443
|
return Mn;
|
|
@@ -3446,43 +3446,43 @@ const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3446
3446
|
return kn;
|
|
3447
3447
|
},
|
|
3448
3448
|
get InlineCompletionContext() {
|
|
3449
|
-
return
|
|
3449
|
+
return ii;
|
|
3450
3450
|
},
|
|
3451
3451
|
get InlineCompletionItem() {
|
|
3452
|
-
return
|
|
3452
|
+
return ei;
|
|
3453
3453
|
},
|
|
3454
3454
|
get InlineCompletionList() {
|
|
3455
|
-
return
|
|
3455
|
+
return ti;
|
|
3456
3456
|
},
|
|
3457
3457
|
get InlineCompletionTriggerKind() {
|
|
3458
|
-
return
|
|
3458
|
+
return ni;
|
|
3459
3459
|
},
|
|
3460
3460
|
get InlineValueContext() {
|
|
3461
|
-
return
|
|
3461
|
+
return Yr;
|
|
3462
3462
|
},
|
|
3463
3463
|
get InlineValueEvaluatableExpression() {
|
|
3464
|
-
return
|
|
3464
|
+
return Gr;
|
|
3465
3465
|
},
|
|
3466
3466
|
get InlineValueText() {
|
|
3467
|
-
return
|
|
3467
|
+
return Qr;
|
|
3468
3468
|
},
|
|
3469
3469
|
get InlineValueVariableLookup() {
|
|
3470
|
-
return
|
|
3470
|
+
return Xr;
|
|
3471
3471
|
},
|
|
3472
3472
|
get InsertReplaceEdit() {
|
|
3473
|
-
return
|
|
3473
|
+
return Dr;
|
|
3474
3474
|
},
|
|
3475
3475
|
get InsertTextFormat() {
|
|
3476
|
-
return
|
|
3476
|
+
return Tr;
|
|
3477
3477
|
},
|
|
3478
3478
|
get InsertTextMode() {
|
|
3479
|
-
return
|
|
3479
|
+
return wr;
|
|
3480
3480
|
},
|
|
3481
3481
|
get Location() {
|
|
3482
3482
|
return Ut;
|
|
3483
3483
|
},
|
|
3484
3484
|
get LocationLink() {
|
|
3485
|
-
return
|
|
3485
|
+
return ur;
|
|
3486
3486
|
},
|
|
3487
3487
|
get MarkedString() {
|
|
3488
3488
|
return Jt;
|
|
@@ -3491,13 +3491,13 @@ const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3491
3491
|
return mt;
|
|
3492
3492
|
},
|
|
3493
3493
|
get MarkupKind() {
|
|
3494
|
-
return
|
|
3494
|
+
return Pn;
|
|
3495
3495
|
},
|
|
3496
3496
|
get OptionalVersionedTextDocumentIdentifier() {
|
|
3497
3497
|
return Bt;
|
|
3498
3498
|
},
|
|
3499
3499
|
get ParameterInformation() {
|
|
3500
|
-
return
|
|
3500
|
+
return kr;
|
|
3501
3501
|
},
|
|
3502
3502
|
get Position() {
|
|
3503
3503
|
return ie;
|
|
@@ -3509,46 +3509,46 @@ const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3509
3509
|
return gt;
|
|
3510
3510
|
},
|
|
3511
3511
|
get SelectedCompletionInfo() {
|
|
3512
|
-
return
|
|
3512
|
+
return ri;
|
|
3513
3513
|
},
|
|
3514
3514
|
get SelectionRange() {
|
|
3515
|
-
return
|
|
3515
|
+
return zr;
|
|
3516
3516
|
},
|
|
3517
3517
|
get SemanticTokenModifiers() {
|
|
3518
|
-
return
|
|
3518
|
+
return Jr;
|
|
3519
3519
|
},
|
|
3520
3520
|
get SemanticTokenTypes() {
|
|
3521
|
-
return
|
|
3521
|
+
return Br;
|
|
3522
3522
|
},
|
|
3523
3523
|
get SemanticTokens() {
|
|
3524
|
-
return
|
|
3524
|
+
return Kr;
|
|
3525
3525
|
},
|
|
3526
3526
|
get SignatureInformation() {
|
|
3527
|
-
return
|
|
3527
|
+
return Er;
|
|
3528
3528
|
},
|
|
3529
3529
|
get StringValue() {
|
|
3530
|
-
return
|
|
3530
|
+
return xr;
|
|
3531
3531
|
},
|
|
3532
3532
|
get SymbolInformation() {
|
|
3533
|
-
return
|
|
3533
|
+
return Ir;
|
|
3534
3534
|
},
|
|
3535
3535
|
get SymbolKind() {
|
|
3536
|
-
return
|
|
3536
|
+
return jr;
|
|
3537
3537
|
},
|
|
3538
3538
|
get SymbolTag() {
|
|
3539
|
-
return
|
|
3539
|
+
return qr;
|
|
3540
3540
|
},
|
|
3541
3541
|
get TextDocument() {
|
|
3542
|
-
return
|
|
3542
|
+
return ai;
|
|
3543
3543
|
},
|
|
3544
3544
|
get TextDocumentEdit() {
|
|
3545
3545
|
return zt;
|
|
3546
3546
|
},
|
|
3547
3547
|
get TextDocumentIdentifier() {
|
|
3548
|
-
return
|
|
3548
|
+
return yr;
|
|
3549
3549
|
},
|
|
3550
3550
|
get TextDocumentItem() {
|
|
3551
|
-
return
|
|
3551
|
+
return br;
|
|
3552
3552
|
},
|
|
3553
3553
|
get TextEdit() {
|
|
3554
3554
|
return _e;
|
|
@@ -3557,63 +3557,63 @@ const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3557
3557
|
return Dn;
|
|
3558
3558
|
},
|
|
3559
3559
|
get VersionedTextDocumentIdentifier() {
|
|
3560
|
-
return
|
|
3560
|
+
return vr;
|
|
3561
3561
|
},
|
|
3562
3562
|
WorkspaceChange: js,
|
|
3563
3563
|
get WorkspaceEdit() {
|
|
3564
|
-
return
|
|
3564
|
+
return Cn;
|
|
3565
3565
|
},
|
|
3566
3566
|
get WorkspaceFolder() {
|
|
3567
|
-
return
|
|
3567
|
+
return oi;
|
|
3568
3568
|
},
|
|
3569
3569
|
get WorkspaceSymbol() {
|
|
3570
|
-
return
|
|
3570
|
+
return Lr;
|
|
3571
3571
|
},
|
|
3572
3572
|
get integer() {
|
|
3573
|
-
return
|
|
3573
|
+
return cr;
|
|
3574
3574
|
},
|
|
3575
3575
|
get uinteger() {
|
|
3576
3576
|
return Wt;
|
|
3577
3577
|
}
|
|
3578
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3579
|
-
var
|
|
3580
|
-
Object.defineProperty(
|
|
3581
|
-
|
|
3578
|
+
}, Symbol.toStringTag, { value: "Module" })), hi = /* @__PURE__ */ Ma(Ls);
|
|
3579
|
+
var P = {};
|
|
3580
|
+
Object.defineProperty(P, "__esModule", { value: !0 });
|
|
3581
|
+
P.ProtocolNotificationType = P.ProtocolNotificationType0 = P.ProtocolRequestType = P.ProtocolRequestType0 = P.RegistrationType = P.MessageDirection = void 0;
|
|
3582
3582
|
const pt = rt;
|
|
3583
3583
|
var qi;
|
|
3584
3584
|
(function(e) {
|
|
3585
3585
|
e.clientToServer = "clientToServer", e.serverToClient = "serverToClient", e.both = "both";
|
|
3586
|
-
})(qi || (
|
|
3586
|
+
})(qi || (P.MessageDirection = qi = {}));
|
|
3587
3587
|
class As {
|
|
3588
3588
|
constructor(t) {
|
|
3589
3589
|
this.method = t;
|
|
3590
3590
|
}
|
|
3591
3591
|
}
|
|
3592
|
-
|
|
3592
|
+
P.RegistrationType = As;
|
|
3593
3593
|
class $s extends pt.RequestType0 {
|
|
3594
3594
|
constructor(t) {
|
|
3595
3595
|
super(t);
|
|
3596
3596
|
}
|
|
3597
3597
|
}
|
|
3598
|
-
|
|
3598
|
+
P.ProtocolRequestType0 = $s;
|
|
3599
3599
|
class Fs extends pt.RequestType {
|
|
3600
3600
|
constructor(t) {
|
|
3601
3601
|
super(t, pt.ParameterStructures.byName);
|
|
3602
3602
|
}
|
|
3603
3603
|
}
|
|
3604
|
-
|
|
3604
|
+
P.ProtocolRequestType = Fs;
|
|
3605
3605
|
class Hs extends pt.NotificationType0 {
|
|
3606
3606
|
constructor(t) {
|
|
3607
3607
|
super(t);
|
|
3608
3608
|
}
|
|
3609
3609
|
}
|
|
3610
|
-
|
|
3610
|
+
P.ProtocolNotificationType0 = Hs;
|
|
3611
3611
|
class Ws extends pt.NotificationType {
|
|
3612
3612
|
constructor(t) {
|
|
3613
3613
|
super(t, pt.ParameterStructures.byName);
|
|
3614
3614
|
}
|
|
3615
3615
|
}
|
|
3616
|
-
|
|
3616
|
+
P.ProtocolNotificationType = Ws;
|
|
3617
3617
|
var la = {}, H = {};
|
|
3618
3618
|
Object.defineProperty(H, "__esModule", { value: !0 });
|
|
3619
3619
|
H.objectLiteral = H.typedArray = H.stringArray = H.array = H.func = H.error = H.number = H.string = H.boolean = void 0;
|
|
@@ -3656,7 +3656,7 @@ H.objectLiteral = Qs;
|
|
|
3656
3656
|
var Wn = {};
|
|
3657
3657
|
Object.defineProperty(Wn, "__esModule", { value: !0 });
|
|
3658
3658
|
Wn.ImplementationRequest = void 0;
|
|
3659
|
-
const Ii =
|
|
3659
|
+
const Ii = P;
|
|
3660
3660
|
var Li;
|
|
3661
3661
|
(function(e) {
|
|
3662
3662
|
e.method = "textDocument/implementation", e.messageDirection = Ii.MessageDirection.clientToServer, e.type = new Ii.ProtocolRequestType(e.method);
|
|
@@ -3664,7 +3664,7 @@ var Li;
|
|
|
3664
3664
|
var Un = {};
|
|
3665
3665
|
Object.defineProperty(Un, "__esModule", { value: !0 });
|
|
3666
3666
|
Un.TypeDefinitionRequest = void 0;
|
|
3667
|
-
const Ai =
|
|
3667
|
+
const Ai = P;
|
|
3668
3668
|
var $i;
|
|
3669
3669
|
(function(e) {
|
|
3670
3670
|
e.method = "textDocument/typeDefinition", e.messageDirection = Ai.MessageDirection.clientToServer, e.type = new Ai.ProtocolRequestType(e.method);
|
|
@@ -3672,7 +3672,7 @@ var $i;
|
|
|
3672
3672
|
var yt = {};
|
|
3673
3673
|
Object.defineProperty(yt, "__esModule", { value: !0 });
|
|
3674
3674
|
yt.DidChangeWorkspaceFoldersNotification = yt.WorkspaceFoldersRequest = void 0;
|
|
3675
|
-
const En =
|
|
3675
|
+
const En = P;
|
|
3676
3676
|
var Fi;
|
|
3677
3677
|
(function(e) {
|
|
3678
3678
|
e.method = "workspace/workspaceFolders", e.messageDirection = En.MessageDirection.serverToClient, e.type = new En.ProtocolRequestType0(e.method);
|
|
@@ -3684,7 +3684,7 @@ var Hi;
|
|
|
3684
3684
|
var Vn = {};
|
|
3685
3685
|
Object.defineProperty(Vn, "__esModule", { value: !0 });
|
|
3686
3686
|
Vn.ConfigurationRequest = void 0;
|
|
3687
|
-
const Wi =
|
|
3687
|
+
const Wi = P;
|
|
3688
3688
|
var Ui;
|
|
3689
3689
|
(function(e) {
|
|
3690
3690
|
e.method = "workspace/configuration", e.messageDirection = Wi.MessageDirection.serverToClient, e.type = new Wi.ProtocolRequestType(e.method);
|
|
@@ -3692,31 +3692,31 @@ var Ui;
|
|
|
3692
3692
|
var vt = {};
|
|
3693
3693
|
Object.defineProperty(vt, "__esModule", { value: !0 });
|
|
3694
3694
|
vt.ColorPresentationRequest = vt.DocumentColorRequest = void 0;
|
|
3695
|
-
const
|
|
3695
|
+
const Nn = P;
|
|
3696
3696
|
var Vi;
|
|
3697
3697
|
(function(e) {
|
|
3698
|
-
e.method = "textDocument/documentColor", e.messageDirection =
|
|
3698
|
+
e.method = "textDocument/documentColor", e.messageDirection = Nn.MessageDirection.clientToServer, e.type = new Nn.ProtocolRequestType(e.method);
|
|
3699
3699
|
})(Vi || (vt.DocumentColorRequest = Vi = {}));
|
|
3700
3700
|
var zi;
|
|
3701
3701
|
(function(e) {
|
|
3702
|
-
e.method = "textDocument/colorPresentation", e.messageDirection =
|
|
3702
|
+
e.method = "textDocument/colorPresentation", e.messageDirection = Nn.MessageDirection.clientToServer, e.type = new Nn.ProtocolRequestType(e.method);
|
|
3703
3703
|
})(zi || (vt.ColorPresentationRequest = zi = {}));
|
|
3704
3704
|
var bt = {};
|
|
3705
3705
|
Object.defineProperty(bt, "__esModule", { value: !0 });
|
|
3706
3706
|
bt.FoldingRangeRefreshRequest = bt.FoldingRangeRequest = void 0;
|
|
3707
|
-
const
|
|
3707
|
+
const On = P;
|
|
3708
3708
|
var Bi;
|
|
3709
3709
|
(function(e) {
|
|
3710
|
-
e.method = "textDocument/foldingRange", e.messageDirection =
|
|
3710
|
+
e.method = "textDocument/foldingRange", e.messageDirection = On.MessageDirection.clientToServer, e.type = new On.ProtocolRequestType(e.method);
|
|
3711
3711
|
})(Bi || (bt.FoldingRangeRequest = Bi = {}));
|
|
3712
3712
|
var Ji;
|
|
3713
3713
|
(function(e) {
|
|
3714
|
-
e.method = "workspace/foldingRange/refresh", e.messageDirection =
|
|
3714
|
+
e.method = "workspace/foldingRange/refresh", e.messageDirection = On.MessageDirection.serverToClient, e.type = new On.ProtocolRequestType0(e.method);
|
|
3715
3715
|
})(Ji || (bt.FoldingRangeRefreshRequest = Ji = {}));
|
|
3716
3716
|
var zn = {};
|
|
3717
3717
|
Object.defineProperty(zn, "__esModule", { value: !0 });
|
|
3718
3718
|
zn.DeclarationRequest = void 0;
|
|
3719
|
-
const Ki =
|
|
3719
|
+
const Ki = P;
|
|
3720
3720
|
var Qi;
|
|
3721
3721
|
(function(e) {
|
|
3722
3722
|
e.method = "textDocument/declaration", e.messageDirection = Ki.MessageDirection.clientToServer, e.type = new Ki.ProtocolRequestType(e.method);
|
|
@@ -3724,15 +3724,15 @@ var Qi;
|
|
|
3724
3724
|
var Bn = {};
|
|
3725
3725
|
Object.defineProperty(Bn, "__esModule", { value: !0 });
|
|
3726
3726
|
Bn.SelectionRangeRequest = void 0;
|
|
3727
|
-
const Xi =
|
|
3727
|
+
const Xi = P;
|
|
3728
3728
|
var Gi;
|
|
3729
3729
|
(function(e) {
|
|
3730
3730
|
e.method = "textDocument/selectionRange", e.messageDirection = Xi.MessageDirection.clientToServer, e.type = new Xi.ProtocolRequestType(e.method);
|
|
3731
3731
|
})(Gi || (Bn.SelectionRangeRequest = Gi = {}));
|
|
3732
|
-
var
|
|
3733
|
-
Object.defineProperty(
|
|
3734
|
-
|
|
3735
|
-
const Xs = rt, jn =
|
|
3732
|
+
var $e = {};
|
|
3733
|
+
Object.defineProperty($e, "__esModule", { value: !0 });
|
|
3734
|
+
$e.WorkDoneProgressCancelNotification = $e.WorkDoneProgressCreateRequest = $e.WorkDoneProgress = void 0;
|
|
3735
|
+
const Xs = rt, jn = P;
|
|
3736
3736
|
var Yi;
|
|
3737
3737
|
(function(e) {
|
|
3738
3738
|
e.type = new Xs.ProgressType();
|
|
@@ -3740,63 +3740,63 @@ var Yi;
|
|
|
3740
3740
|
return i === e.type;
|
|
3741
3741
|
}
|
|
3742
3742
|
e.is = t;
|
|
3743
|
-
})(Yi || (
|
|
3743
|
+
})(Yi || ($e.WorkDoneProgress = Yi = {}));
|
|
3744
3744
|
var Zi;
|
|
3745
3745
|
(function(e) {
|
|
3746
3746
|
e.method = "window/workDoneProgress/create", e.messageDirection = jn.MessageDirection.serverToClient, e.type = new jn.ProtocolRequestType(e.method);
|
|
3747
|
-
})(Zi || (
|
|
3747
|
+
})(Zi || ($e.WorkDoneProgressCreateRequest = Zi = {}));
|
|
3748
3748
|
var xi;
|
|
3749
3749
|
(function(e) {
|
|
3750
3750
|
e.method = "window/workDoneProgress/cancel", e.messageDirection = jn.MessageDirection.clientToServer, e.type = new jn.ProtocolNotificationType(e.method);
|
|
3751
|
-
})(xi || (
|
|
3752
|
-
var
|
|
3753
|
-
Object.defineProperty(
|
|
3754
|
-
|
|
3755
|
-
const _t =
|
|
3751
|
+
})(xi || ($e.WorkDoneProgressCancelNotification = xi = {}));
|
|
3752
|
+
var Fe = {};
|
|
3753
|
+
Object.defineProperty(Fe, "__esModule", { value: !0 });
|
|
3754
|
+
Fe.CallHierarchyOutgoingCallsRequest = Fe.CallHierarchyIncomingCallsRequest = Fe.CallHierarchyPrepareRequest = void 0;
|
|
3755
|
+
const _t = P;
|
|
3756
3756
|
var eo;
|
|
3757
3757
|
(function(e) {
|
|
3758
3758
|
e.method = "textDocument/prepareCallHierarchy", e.messageDirection = _t.MessageDirection.clientToServer, e.type = new _t.ProtocolRequestType(e.method);
|
|
3759
|
-
})(eo || (
|
|
3759
|
+
})(eo || (Fe.CallHierarchyPrepareRequest = eo = {}));
|
|
3760
3760
|
var to;
|
|
3761
3761
|
(function(e) {
|
|
3762
3762
|
e.method = "callHierarchy/incomingCalls", e.messageDirection = _t.MessageDirection.clientToServer, e.type = new _t.ProtocolRequestType(e.method);
|
|
3763
|
-
})(to || (
|
|
3763
|
+
})(to || (Fe.CallHierarchyIncomingCallsRequest = to = {}));
|
|
3764
3764
|
var no;
|
|
3765
3765
|
(function(e) {
|
|
3766
3766
|
e.method = "callHierarchy/outgoingCalls", e.messageDirection = _t.MessageDirection.clientToServer, e.type = new _t.ProtocolRequestType(e.method);
|
|
3767
|
-
})(no || (
|
|
3767
|
+
})(no || (Fe.CallHierarchyOutgoingCallsRequest = no = {}));
|
|
3768
3768
|
var te = {};
|
|
3769
3769
|
Object.defineProperty(te, "__esModule", { value: !0 });
|
|
3770
3770
|
te.SemanticTokensRefreshRequest = te.SemanticTokensRangeRequest = te.SemanticTokensDeltaRequest = te.SemanticTokensRequest = te.SemanticTokensRegistrationType = te.TokenFormat = void 0;
|
|
3771
|
-
const
|
|
3771
|
+
const Me = P;
|
|
3772
3772
|
var ro;
|
|
3773
3773
|
(function(e) {
|
|
3774
3774
|
e.Relative = "relative";
|
|
3775
3775
|
})(ro || (te.TokenFormat = ro = {}));
|
|
3776
3776
|
var Qt;
|
|
3777
3777
|
(function(e) {
|
|
3778
|
-
e.method = "textDocument/semanticTokens", e.type = new
|
|
3778
|
+
e.method = "textDocument/semanticTokens", e.type = new Me.RegistrationType(e.method);
|
|
3779
3779
|
})(Qt || (te.SemanticTokensRegistrationType = Qt = {}));
|
|
3780
3780
|
var io;
|
|
3781
3781
|
(function(e) {
|
|
3782
|
-
e.method = "textDocument/semanticTokens/full", e.messageDirection =
|
|
3782
|
+
e.method = "textDocument/semanticTokens/full", e.messageDirection = Me.MessageDirection.clientToServer, e.type = new Me.ProtocolRequestType(e.method), e.registrationMethod = Qt.method;
|
|
3783
3783
|
})(io || (te.SemanticTokensRequest = io = {}));
|
|
3784
3784
|
var oo;
|
|
3785
3785
|
(function(e) {
|
|
3786
|
-
e.method = "textDocument/semanticTokens/full/delta", e.messageDirection =
|
|
3786
|
+
e.method = "textDocument/semanticTokens/full/delta", e.messageDirection = Me.MessageDirection.clientToServer, e.type = new Me.ProtocolRequestType(e.method), e.registrationMethod = Qt.method;
|
|
3787
3787
|
})(oo || (te.SemanticTokensDeltaRequest = oo = {}));
|
|
3788
3788
|
var ao;
|
|
3789
3789
|
(function(e) {
|
|
3790
|
-
e.method = "textDocument/semanticTokens/range", e.messageDirection =
|
|
3790
|
+
e.method = "textDocument/semanticTokens/range", e.messageDirection = Me.MessageDirection.clientToServer, e.type = new Me.ProtocolRequestType(e.method), e.registrationMethod = Qt.method;
|
|
3791
3791
|
})(ao || (te.SemanticTokensRangeRequest = ao = {}));
|
|
3792
3792
|
var so;
|
|
3793
3793
|
(function(e) {
|
|
3794
|
-
e.method = "workspace/semanticTokens/refresh", e.messageDirection =
|
|
3794
|
+
e.method = "workspace/semanticTokens/refresh", e.messageDirection = Me.MessageDirection.serverToClient, e.type = new Me.ProtocolRequestType0(e.method);
|
|
3795
3795
|
})(so || (te.SemanticTokensRefreshRequest = so = {}));
|
|
3796
3796
|
var Jn = {};
|
|
3797
3797
|
Object.defineProperty(Jn, "__esModule", { value: !0 });
|
|
3798
3798
|
Jn.ShowDocumentRequest = void 0;
|
|
3799
|
-
const co =
|
|
3799
|
+
const co = P;
|
|
3800
3800
|
var uo;
|
|
3801
3801
|
(function(e) {
|
|
3802
3802
|
e.method = "window/showDocument", e.messageDirection = co.MessageDirection.serverToClient, e.type = new co.ProtocolRequestType(e.method);
|
|
@@ -3804,7 +3804,7 @@ var uo;
|
|
|
3804
3804
|
var Kn = {};
|
|
3805
3805
|
Object.defineProperty(Kn, "__esModule", { value: !0 });
|
|
3806
3806
|
Kn.LinkedEditingRangeRequest = void 0;
|
|
3807
|
-
const lo =
|
|
3807
|
+
const lo = P;
|
|
3808
3808
|
var fo;
|
|
3809
3809
|
(function(e) {
|
|
3810
3810
|
e.method = "textDocument/linkedEditingRange", e.messageDirection = lo.MessageDirection.clientToServer, e.type = new lo.ProtocolRequestType(e.method);
|
|
@@ -3812,7 +3812,7 @@ var fo;
|
|
|
3812
3812
|
var X = {};
|
|
3813
3813
|
Object.defineProperty(X, "__esModule", { value: !0 });
|
|
3814
3814
|
X.WillDeleteFilesRequest = X.DidDeleteFilesNotification = X.DidRenameFilesNotification = X.WillRenameFilesRequest = X.DidCreateFilesNotification = X.WillCreateFilesRequest = X.FileOperationPatternKind = void 0;
|
|
3815
|
-
const se =
|
|
3815
|
+
const se = P;
|
|
3816
3816
|
var go;
|
|
3817
3817
|
(function(e) {
|
|
3818
3818
|
e.file = "file", e.folder = "folder";
|
|
@@ -3841,78 +3841,78 @@ var bo;
|
|
|
3841
3841
|
(function(e) {
|
|
3842
3842
|
e.method = "workspace/willDeleteFiles", e.messageDirection = se.MessageDirection.clientToServer, e.type = new se.ProtocolRequestType(e.method);
|
|
3843
3843
|
})(bo || (X.WillDeleteFilesRequest = bo = {}));
|
|
3844
|
-
var
|
|
3845
|
-
Object.defineProperty(
|
|
3846
|
-
|
|
3847
|
-
const _o =
|
|
3844
|
+
var He = {};
|
|
3845
|
+
Object.defineProperty(He, "__esModule", { value: !0 });
|
|
3846
|
+
He.MonikerRequest = He.MonikerKind = He.UniquenessLevel = void 0;
|
|
3847
|
+
const _o = P;
|
|
3848
3848
|
var To;
|
|
3849
3849
|
(function(e) {
|
|
3850
3850
|
e.document = "document", e.project = "project", e.group = "group", e.scheme = "scheme", e.global = "global";
|
|
3851
|
-
})(To || (
|
|
3851
|
+
})(To || (He.UniquenessLevel = To = {}));
|
|
3852
3852
|
var Ro;
|
|
3853
3853
|
(function(e) {
|
|
3854
3854
|
e.$import = "import", e.$export = "export", e.local = "local";
|
|
3855
|
-
})(Ro || (
|
|
3855
|
+
})(Ro || (He.MonikerKind = Ro = {}));
|
|
3856
3856
|
var Do;
|
|
3857
3857
|
(function(e) {
|
|
3858
3858
|
e.method = "textDocument/moniker", e.messageDirection = _o.MessageDirection.clientToServer, e.type = new _o.ProtocolRequestType(e.method);
|
|
3859
|
-
})(Do || (
|
|
3860
|
-
var
|
|
3861
|
-
Object.defineProperty(
|
|
3862
|
-
|
|
3863
|
-
const Tt =
|
|
3859
|
+
})(Do || (He.MonikerRequest = Do = {}));
|
|
3860
|
+
var We = {};
|
|
3861
|
+
Object.defineProperty(We, "__esModule", { value: !0 });
|
|
3862
|
+
We.TypeHierarchySubtypesRequest = We.TypeHierarchySupertypesRequest = We.TypeHierarchyPrepareRequest = void 0;
|
|
3863
|
+
const Tt = P;
|
|
3864
3864
|
var wo;
|
|
3865
3865
|
(function(e) {
|
|
3866
3866
|
e.method = "textDocument/prepareTypeHierarchy", e.messageDirection = Tt.MessageDirection.clientToServer, e.type = new Tt.ProtocolRequestType(e.method);
|
|
3867
|
-
})(wo || (
|
|
3867
|
+
})(wo || (We.TypeHierarchyPrepareRequest = wo = {}));
|
|
3868
3868
|
var So;
|
|
3869
3869
|
(function(e) {
|
|
3870
3870
|
e.method = "typeHierarchy/supertypes", e.messageDirection = Tt.MessageDirection.clientToServer, e.type = new Tt.ProtocolRequestType(e.method);
|
|
3871
|
-
})(So || (
|
|
3872
|
-
var
|
|
3871
|
+
})(So || (We.TypeHierarchySupertypesRequest = So = {}));
|
|
3872
|
+
var Co;
|
|
3873
3873
|
(function(e) {
|
|
3874
3874
|
e.method = "typeHierarchy/subtypes", e.messageDirection = Tt.MessageDirection.clientToServer, e.type = new Tt.ProtocolRequestType(e.method);
|
|
3875
|
-
})(
|
|
3875
|
+
})(Co || (We.TypeHierarchySubtypesRequest = Co = {}));
|
|
3876
3876
|
var Rt = {};
|
|
3877
3877
|
Object.defineProperty(Rt, "__esModule", { value: !0 });
|
|
3878
3878
|
Rt.InlineValueRefreshRequest = Rt.InlineValueRequest = void 0;
|
|
3879
|
-
const qn =
|
|
3880
|
-
var
|
|
3879
|
+
const qn = P;
|
|
3880
|
+
var Po;
|
|
3881
3881
|
(function(e) {
|
|
3882
3882
|
e.method = "textDocument/inlineValue", e.messageDirection = qn.MessageDirection.clientToServer, e.type = new qn.ProtocolRequestType(e.method);
|
|
3883
|
-
})(
|
|
3883
|
+
})(Po || (Rt.InlineValueRequest = Po = {}));
|
|
3884
3884
|
var Mo;
|
|
3885
3885
|
(function(e) {
|
|
3886
3886
|
e.method = "workspace/inlineValue/refresh", e.messageDirection = qn.MessageDirection.serverToClient, e.type = new qn.ProtocolRequestType0(e.method);
|
|
3887
3887
|
})(Mo || (Rt.InlineValueRefreshRequest = Mo = {}));
|
|
3888
|
-
var
|
|
3889
|
-
Object.defineProperty(
|
|
3890
|
-
|
|
3891
|
-
const Dt =
|
|
3888
|
+
var Ue = {};
|
|
3889
|
+
Object.defineProperty(Ue, "__esModule", { value: !0 });
|
|
3890
|
+
Ue.InlayHintRefreshRequest = Ue.InlayHintResolveRequest = Ue.InlayHintRequest = void 0;
|
|
3891
|
+
const Dt = P;
|
|
3892
3892
|
var ko;
|
|
3893
3893
|
(function(e) {
|
|
3894
3894
|
e.method = "textDocument/inlayHint", e.messageDirection = Dt.MessageDirection.clientToServer, e.type = new Dt.ProtocolRequestType(e.method);
|
|
3895
|
-
})(ko || (
|
|
3895
|
+
})(ko || (Ue.InlayHintRequest = ko = {}));
|
|
3896
3896
|
var Eo;
|
|
3897
3897
|
(function(e) {
|
|
3898
3898
|
e.method = "inlayHint/resolve", e.messageDirection = Dt.MessageDirection.clientToServer, e.type = new Dt.ProtocolRequestType(e.method);
|
|
3899
|
-
})(Eo || (
|
|
3900
|
-
var
|
|
3899
|
+
})(Eo || (Ue.InlayHintResolveRequest = Eo = {}));
|
|
3900
|
+
var No;
|
|
3901
3901
|
(function(e) {
|
|
3902
3902
|
e.method = "workspace/inlayHint/refresh", e.messageDirection = Dt.MessageDirection.serverToClient, e.type = new Dt.ProtocolRequestType0(e.method);
|
|
3903
|
-
})(
|
|
3903
|
+
})(No || (Ue.InlayHintRefreshRequest = No = {}));
|
|
3904
3904
|
var oe = {};
|
|
3905
3905
|
Object.defineProperty(oe, "__esModule", { value: !0 });
|
|
3906
3906
|
oe.DiagnosticRefreshRequest = oe.WorkspaceDiagnosticRequest = oe.DocumentDiagnosticRequest = oe.DocumentDiagnosticReportKind = oe.DiagnosticServerCancellationData = void 0;
|
|
3907
|
-
const ga = rt, Gs = H, wt =
|
|
3908
|
-
var
|
|
3907
|
+
const ga = rt, Gs = H, wt = P;
|
|
3908
|
+
var Oo;
|
|
3909
3909
|
(function(e) {
|
|
3910
3910
|
function t(i) {
|
|
3911
3911
|
const n = i;
|
|
3912
3912
|
return n && Gs.boolean(n.retriggerRequest);
|
|
3913
3913
|
}
|
|
3914
3914
|
e.is = t;
|
|
3915
|
-
})(
|
|
3915
|
+
})(Oo || (oe.DiagnosticServerCancellationData = Oo = {}));
|
|
3916
3916
|
var jo;
|
|
3917
3917
|
(function(e) {
|
|
3918
3918
|
e.Full = "full", e.Unchanged = "unchanged";
|
|
@@ -3932,16 +3932,16 @@ var Lo;
|
|
|
3932
3932
|
var F = {};
|
|
3933
3933
|
Object.defineProperty(F, "__esModule", { value: !0 });
|
|
3934
3934
|
F.DidCloseNotebookDocumentNotification = F.DidSaveNotebookDocumentNotification = F.DidChangeNotebookDocumentNotification = F.NotebookCellArrayChange = F.DidOpenNotebookDocumentNotification = F.NotebookDocumentSyncRegistrationType = F.NotebookDocument = F.NotebookCell = F.ExecutionSummary = F.NotebookCellKind = void 0;
|
|
3935
|
-
const Xt =
|
|
3936
|
-
var
|
|
3935
|
+
const Xt = hi, de = H, Re = P;
|
|
3936
|
+
var si;
|
|
3937
3937
|
(function(e) {
|
|
3938
3938
|
e.Markup = 1, e.Code = 2;
|
|
3939
3939
|
function t(i) {
|
|
3940
3940
|
return i === 1 || i === 2;
|
|
3941
3941
|
}
|
|
3942
3942
|
e.is = t;
|
|
3943
|
-
})(
|
|
3944
|
-
var
|
|
3943
|
+
})(si || (F.NotebookCellKind = si = {}));
|
|
3944
|
+
var ci;
|
|
3945
3945
|
(function(e) {
|
|
3946
3946
|
function t(r, o) {
|
|
3947
3947
|
const c = { executionOrder: r };
|
|
@@ -3957,7 +3957,7 @@ var si;
|
|
|
3957
3957
|
return r === o ? !0 : r == null || o === null || o === void 0 ? !1 : r.executionOrder === o.executionOrder && r.success === o.success;
|
|
3958
3958
|
}
|
|
3959
3959
|
e.equals = n;
|
|
3960
|
-
})(
|
|
3960
|
+
})(ci || (F.ExecutionSummary = ci = {}));
|
|
3961
3961
|
var In;
|
|
3962
3962
|
(function(e) {
|
|
3963
3963
|
function t(o, c) {
|
|
@@ -3966,12 +3966,12 @@ var In;
|
|
|
3966
3966
|
e.create = t;
|
|
3967
3967
|
function i(o) {
|
|
3968
3968
|
const c = o;
|
|
3969
|
-
return de.objectLiteral(c) &&
|
|
3969
|
+
return de.objectLiteral(c) && si.is(c.kind) && Xt.DocumentUri.is(c.document) && (c.metadata === void 0 || de.objectLiteral(c.metadata));
|
|
3970
3970
|
}
|
|
3971
3971
|
e.is = i;
|
|
3972
3972
|
function n(o, c) {
|
|
3973
3973
|
const d = /* @__PURE__ */ new Set();
|
|
3974
|
-
return o.document !== c.document && d.add("document"), o.kind !== c.kind && d.add("kind"), o.executionSummary !== c.executionSummary && d.add("executionSummary"), (o.metadata !== void 0 || c.metadata !== void 0) && !r(o.metadata, c.metadata) && d.add("metadata"), (o.executionSummary !== void 0 || c.executionSummary !== void 0) && !
|
|
3974
|
+
return o.document !== c.document && d.add("document"), o.kind !== c.kind && d.add("kind"), o.executionSummary !== c.executionSummary && d.add("executionSummary"), (o.metadata !== void 0 || c.metadata !== void 0) && !r(o.metadata, c.metadata) && d.add("metadata"), (o.executionSummary !== void 0 || c.executionSummary !== void 0) && !ci.equals(o.executionSummary, c.executionSummary) && d.add("executionSummary"), d;
|
|
3975
3975
|
}
|
|
3976
3976
|
e.diff = n;
|
|
3977
3977
|
function r(o, c) {
|
|
@@ -4050,14 +4050,14 @@ var Uo;
|
|
|
4050
4050
|
var Qn = {};
|
|
4051
4051
|
Object.defineProperty(Qn, "__esModule", { value: !0 });
|
|
4052
4052
|
Qn.InlineCompletionRequest = void 0;
|
|
4053
|
-
const Vo =
|
|
4053
|
+
const Vo = P;
|
|
4054
4054
|
var zo;
|
|
4055
4055
|
(function(e) {
|
|
4056
4056
|
e.method = "textDocument/inlineCompletion", e.messageDirection = Vo.MessageDirection.clientToServer, e.type = new Vo.ProtocolRequestType(e.method);
|
|
4057
4057
|
})(zo || (Qn.InlineCompletionRequest = zo = {}));
|
|
4058
4058
|
(function(e) {
|
|
4059
4059
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.WorkspaceSymbolRequest = e.CodeActionResolveRequest = e.CodeActionRequest = e.DocumentSymbolRequest = e.DocumentHighlightRequest = e.ReferencesRequest = e.DefinitionRequest = e.SignatureHelpRequest = e.SignatureHelpTriggerKind = e.HoverRequest = e.CompletionResolveRequest = e.CompletionRequest = e.CompletionTriggerKind = e.PublishDiagnosticsNotification = e.WatchKind = e.RelativePattern = e.FileChangeType = e.DidChangeWatchedFilesNotification = e.WillSaveTextDocumentWaitUntilRequest = e.WillSaveTextDocumentNotification = e.TextDocumentSaveReason = e.DidSaveTextDocumentNotification = e.DidCloseTextDocumentNotification = e.DidChangeTextDocumentNotification = e.TextDocumentContentChangeEvent = e.DidOpenTextDocumentNotification = e.TextDocumentSyncKind = e.TelemetryEventNotification = e.LogMessageNotification = e.ShowMessageRequest = e.ShowMessageNotification = e.MessageType = e.DidChangeConfigurationNotification = e.ExitNotification = e.ShutdownRequest = e.InitializedNotification = e.InitializeErrorCodes = e.InitializeRequest = e.WorkDoneProgressOptions = e.TextDocumentRegistrationOptions = e.StaticRegistrationOptions = e.PositionEncodingKind = e.FailureHandlingKind = e.ResourceOperationKind = e.UnregistrationRequest = e.RegistrationRequest = e.DocumentSelector = e.NotebookCellTextDocumentFilter = e.NotebookDocumentFilter = e.TextDocumentFilter = void 0, e.MonikerRequest = e.MonikerKind = e.UniquenessLevel = e.WillDeleteFilesRequest = e.DidDeleteFilesNotification = e.WillRenameFilesRequest = e.DidRenameFilesNotification = e.WillCreateFilesRequest = e.DidCreateFilesNotification = e.FileOperationPatternKind = e.LinkedEditingRangeRequest = e.ShowDocumentRequest = e.SemanticTokensRegistrationType = e.SemanticTokensRefreshRequest = e.SemanticTokensRangeRequest = e.SemanticTokensDeltaRequest = e.SemanticTokensRequest = e.TokenFormat = e.CallHierarchyPrepareRequest = e.CallHierarchyOutgoingCallsRequest = e.CallHierarchyIncomingCallsRequest = e.WorkDoneProgressCancelNotification = e.WorkDoneProgressCreateRequest = e.WorkDoneProgress = e.SelectionRangeRequest = e.DeclarationRequest = e.FoldingRangeRefreshRequest = e.FoldingRangeRequest = e.ColorPresentationRequest = e.DocumentColorRequest = e.ConfigurationRequest = e.DidChangeWorkspaceFoldersNotification = e.WorkspaceFoldersRequest = e.TypeDefinitionRequest = e.ImplementationRequest = e.ApplyWorkspaceEditRequest = e.ExecuteCommandRequest = e.PrepareRenameRequest = e.RenameRequest = e.PrepareSupportDefaultBehavior = e.DocumentOnTypeFormattingRequest = e.DocumentRangesFormattingRequest = e.DocumentRangeFormattingRequest = e.DocumentFormattingRequest = e.DocumentLinkResolveRequest = e.DocumentLinkRequest = e.CodeLensRefreshRequest = e.CodeLensResolveRequest = e.CodeLensRequest = e.WorkspaceSymbolResolveRequest = void 0, e.InlineCompletionRequest = e.DidCloseNotebookDocumentNotification = e.DidSaveNotebookDocumentNotification = e.DidChangeNotebookDocumentNotification = e.NotebookCellArrayChange = e.DidOpenNotebookDocumentNotification = e.NotebookDocumentSyncRegistrationType = e.NotebookDocument = e.NotebookCell = e.ExecutionSummary = e.NotebookCellKind = e.DiagnosticRefreshRequest = e.WorkspaceDiagnosticRequest = e.DocumentDiagnosticRequest = e.DocumentDiagnosticReportKind = e.DiagnosticServerCancellationData = e.InlayHintRefreshRequest = e.InlayHintResolveRequest = e.InlayHintRequest = e.InlineValueRefreshRequest = e.InlineValueRequest = e.TypeHierarchySupertypesRequest = e.TypeHierarchySubtypesRequest = e.TypeHierarchyPrepareRequest = void 0;
|
|
4060
|
-
const t =
|
|
4060
|
+
const t = P, i = hi, n = H, r = Wn;
|
|
4061
4061
|
Object.defineProperty(e, "ImplementationRequest", { enumerable: !0, get: function() {
|
|
4062
4062
|
return r.ImplementationRequest;
|
|
4063
4063
|
} });
|
|
@@ -4095,7 +4095,7 @@ var zo;
|
|
|
4095
4095
|
Object.defineProperty(e, "SelectionRangeRequest", { enumerable: !0, get: function() {
|
|
4096
4096
|
return R.SelectionRangeRequest;
|
|
4097
4097
|
} });
|
|
4098
|
-
const y =
|
|
4098
|
+
const y = $e;
|
|
4099
4099
|
Object.defineProperty(e, "WorkDoneProgress", { enumerable: !0, get: function() {
|
|
4100
4100
|
return y.WorkDoneProgress;
|
|
4101
4101
|
} }), Object.defineProperty(e, "WorkDoneProgressCreateRequest", { enumerable: !0, get: function() {
|
|
@@ -4103,13 +4103,13 @@ var zo;
|
|
|
4103
4103
|
} }), Object.defineProperty(e, "WorkDoneProgressCancelNotification", { enumerable: !0, get: function() {
|
|
4104
4104
|
return y.WorkDoneProgressCancelNotification;
|
|
4105
4105
|
} });
|
|
4106
|
-
const
|
|
4106
|
+
const w = Fe;
|
|
4107
4107
|
Object.defineProperty(e, "CallHierarchyIncomingCallsRequest", { enumerable: !0, get: function() {
|
|
4108
|
-
return
|
|
4108
|
+
return w.CallHierarchyIncomingCallsRequest;
|
|
4109
4109
|
} }), Object.defineProperty(e, "CallHierarchyOutgoingCallsRequest", { enumerable: !0, get: function() {
|
|
4110
|
-
return
|
|
4110
|
+
return w.CallHierarchyOutgoingCallsRequest;
|
|
4111
4111
|
} }), Object.defineProperty(e, "CallHierarchyPrepareRequest", { enumerable: !0, get: function() {
|
|
4112
|
-
return
|
|
4112
|
+
return w.CallHierarchyPrepareRequest;
|
|
4113
4113
|
} });
|
|
4114
4114
|
const q = te;
|
|
4115
4115
|
Object.defineProperty(e, "TokenFormat", { enumerable: !0, get: function() {
|
|
@@ -4125,9 +4125,9 @@ var zo;
|
|
|
4125
4125
|
} }), Object.defineProperty(e, "SemanticTokensRegistrationType", { enumerable: !0, get: function() {
|
|
4126
4126
|
return q.SemanticTokensRegistrationType;
|
|
4127
4127
|
} });
|
|
4128
|
-
const
|
|
4128
|
+
const ze = Jn;
|
|
4129
4129
|
Object.defineProperty(e, "ShowDocumentRequest", { enumerable: !0, get: function() {
|
|
4130
|
-
return
|
|
4130
|
+
return ze.ShowDocumentRequest;
|
|
4131
4131
|
} });
|
|
4132
4132
|
const it = Kn;
|
|
4133
4133
|
Object.defineProperty(e, "LinkedEditingRangeRequest", { enumerable: !0, get: function() {
|
|
@@ -4149,7 +4149,7 @@ var zo;
|
|
|
4149
4149
|
} }), Object.defineProperty(e, "WillDeleteFilesRequest", { enumerable: !0, get: function() {
|
|
4150
4150
|
return ne.WillDeleteFilesRequest;
|
|
4151
4151
|
} });
|
|
4152
|
-
const ge =
|
|
4152
|
+
const ge = He;
|
|
4153
4153
|
Object.defineProperty(e, "UniquenessLevel", { enumerable: !0, get: function() {
|
|
4154
4154
|
return ge.UniquenessLevel;
|
|
4155
4155
|
} }), Object.defineProperty(e, "MonikerKind", { enumerable: !0, get: function() {
|
|
@@ -4157,27 +4157,27 @@ var zo;
|
|
|
4157
4157
|
} }), Object.defineProperty(e, "MonikerRequest", { enumerable: !0, get: function() {
|
|
4158
4158
|
return ge.MonikerRequest;
|
|
4159
4159
|
} });
|
|
4160
|
-
const
|
|
4160
|
+
const Be = We;
|
|
4161
4161
|
Object.defineProperty(e, "TypeHierarchyPrepareRequest", { enumerable: !0, get: function() {
|
|
4162
|
-
return
|
|
4162
|
+
return Be.TypeHierarchyPrepareRequest;
|
|
4163
4163
|
} }), Object.defineProperty(e, "TypeHierarchySubtypesRequest", { enumerable: !0, get: function() {
|
|
4164
|
-
return
|
|
4164
|
+
return Be.TypeHierarchySubtypesRequest;
|
|
4165
4165
|
} }), Object.defineProperty(e, "TypeHierarchySupertypesRequest", { enumerable: !0, get: function() {
|
|
4166
|
-
return
|
|
4166
|
+
return Be.TypeHierarchySupertypesRequest;
|
|
4167
4167
|
} });
|
|
4168
|
-
const
|
|
4168
|
+
const Je = Rt;
|
|
4169
4169
|
Object.defineProperty(e, "InlineValueRequest", { enumerable: !0, get: function() {
|
|
4170
|
-
return
|
|
4170
|
+
return Je.InlineValueRequest;
|
|
4171
4171
|
} }), Object.defineProperty(e, "InlineValueRefreshRequest", { enumerable: !0, get: function() {
|
|
4172
|
-
return
|
|
4172
|
+
return Je.InlineValueRefreshRequest;
|
|
4173
4173
|
} });
|
|
4174
|
-
const
|
|
4174
|
+
const Ke = Ue;
|
|
4175
4175
|
Object.defineProperty(e, "InlayHintRequest", { enumerable: !0, get: function() {
|
|
4176
|
-
return
|
|
4176
|
+
return Ke.InlayHintRequest;
|
|
4177
4177
|
} }), Object.defineProperty(e, "InlayHintResolveRequest", { enumerable: !0, get: function() {
|
|
4178
|
-
return
|
|
4178
|
+
return Ke.InlayHintResolveRequest;
|
|
4179
4179
|
} }), Object.defineProperty(e, "InlayHintRefreshRequest", { enumerable: !0, get: function() {
|
|
4180
|
-
return
|
|
4180
|
+
return Ke.InlayHintRefreshRequest;
|
|
4181
4181
|
} });
|
|
4182
4182
|
const he = oe;
|
|
4183
4183
|
Object.defineProperty(e, "DiagnosticServerCancellationData", { enumerable: !0, get: function() {
|
|
@@ -4217,14 +4217,14 @@ var zo;
|
|
|
4217
4217
|
Object.defineProperty(e, "InlineCompletionRequest", { enumerable: !0, get: function() {
|
|
4218
4218
|
return ot.InlineCompletionRequest;
|
|
4219
4219
|
} });
|
|
4220
|
-
var
|
|
4220
|
+
var Ee;
|
|
4221
4221
|
(function(a) {
|
|
4222
4222
|
function U(V) {
|
|
4223
4223
|
const T = V;
|
|
4224
4224
|
return n.string(T) || n.string(T.language) || n.string(T.scheme) || n.string(T.pattern);
|
|
4225
4225
|
}
|
|
4226
4226
|
a.is = U;
|
|
4227
|
-
})(
|
|
4227
|
+
})(Ee || (e.TextDocumentFilter = Ee = {}));
|
|
4228
4228
|
var at;
|
|
4229
4229
|
(function(a) {
|
|
4230
4230
|
function U(V) {
|
|
@@ -4241,30 +4241,30 @@ var zo;
|
|
|
4241
4241
|
}
|
|
4242
4242
|
a.is = U;
|
|
4243
4243
|
})(x || (e.NotebookCellTextDocumentFilter = x = {}));
|
|
4244
|
-
var
|
|
4244
|
+
var Ct;
|
|
4245
4245
|
(function(a) {
|
|
4246
4246
|
function U(V) {
|
|
4247
4247
|
if (!Array.isArray(V))
|
|
4248
4248
|
return !1;
|
|
4249
4249
|
for (let T of V)
|
|
4250
|
-
if (!n.string(T) && !
|
|
4250
|
+
if (!n.string(T) && !Ee.is(T) && !x.is(T))
|
|
4251
4251
|
return !1;
|
|
4252
4252
|
return !0;
|
|
4253
4253
|
}
|
|
4254
4254
|
a.is = U;
|
|
4255
|
-
})(
|
|
4255
|
+
})(Ct || (e.DocumentSelector = Ct = {}));
|
|
4256
4256
|
var g;
|
|
4257
4257
|
(function(a) {
|
|
4258
4258
|
a.method = "client/registerCapability", a.messageDirection = t.MessageDirection.serverToClient, a.type = new t.ProtocolRequestType(a.method);
|
|
4259
4259
|
})(g || (e.RegistrationRequest = g = {}));
|
|
4260
|
-
var
|
|
4260
|
+
var S;
|
|
4261
4261
|
(function(a) {
|
|
4262
4262
|
a.method = "client/unregisterCapability", a.messageDirection = t.MessageDirection.serverToClient, a.type = new t.ProtocolRequestType(a.method);
|
|
4263
|
-
})(
|
|
4264
|
-
var
|
|
4263
|
+
})(S || (e.UnregistrationRequest = S = {}));
|
|
4264
|
+
var C;
|
|
4265
4265
|
(function(a) {
|
|
4266
4266
|
a.Create = "create", a.Rename = "rename", a.Delete = "delete";
|
|
4267
|
-
})(
|
|
4267
|
+
})(C || (e.ResourceOperationKind = C = {}));
|
|
4268
4268
|
var _;
|
|
4269
4269
|
(function(a) {
|
|
4270
4270
|
a.Abort = "abort", a.Transactional = "transactional", a.TextOnlyTransactional = "textOnlyTransactional", a.Undo = "undo";
|
|
@@ -4285,7 +4285,7 @@ var zo;
|
|
|
4285
4285
|
(function(a) {
|
|
4286
4286
|
function U(V) {
|
|
4287
4287
|
const T = V;
|
|
4288
|
-
return T && (T.documentSelector === null ||
|
|
4288
|
+
return T && (T.documentSelector === null || Ct.is(T.documentSelector));
|
|
4289
4289
|
}
|
|
4290
4290
|
a.is = U;
|
|
4291
4291
|
})(xt || (e.TextDocumentRegistrationOptions = xt = {}));
|
|
@@ -4302,30 +4302,30 @@ var zo;
|
|
|
4302
4302
|
}
|
|
4303
4303
|
a.hasWorkDoneProgress = V;
|
|
4304
4304
|
})(en || (e.WorkDoneProgressOptions = en = {}));
|
|
4305
|
-
var
|
|
4305
|
+
var Ne;
|
|
4306
4306
|
(function(a) {
|
|
4307
4307
|
a.method = "initialize", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolRequestType(a.method);
|
|
4308
|
-
})(
|
|
4308
|
+
})(Ne || (e.InitializeRequest = Ne = {}));
|
|
4309
4309
|
var Oe;
|
|
4310
4310
|
(function(a) {
|
|
4311
4311
|
a.unknownProtocolVersion = 1;
|
|
4312
4312
|
})(Oe || (e.InitializeErrorCodes = Oe = {}));
|
|
4313
|
-
var
|
|
4313
|
+
var Qe;
|
|
4314
4314
|
(function(a) {
|
|
4315
4315
|
a.method = "initialized", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolNotificationType(a.method);
|
|
4316
|
-
})(
|
|
4317
|
-
var
|
|
4316
|
+
})(Qe || (e.InitializedNotification = Qe = {}));
|
|
4317
|
+
var je;
|
|
4318
4318
|
(function(a) {
|
|
4319
4319
|
a.method = "shutdown", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolRequestType0(a.method);
|
|
4320
|
-
})(
|
|
4321
|
-
var
|
|
4320
|
+
})(je || (e.ShutdownRequest = je = {}));
|
|
4321
|
+
var Xe;
|
|
4322
4322
|
(function(a) {
|
|
4323
4323
|
a.method = "exit", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolNotificationType0(a.method);
|
|
4324
|
-
})(
|
|
4325
|
-
var
|
|
4324
|
+
})(Xe || (e.ExitNotification = Xe = {}));
|
|
4325
|
+
var Ge;
|
|
4326
4326
|
(function(a) {
|
|
4327
4327
|
a.method = "workspace/didChangeConfiguration", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolNotificationType(a.method);
|
|
4328
|
-
})(
|
|
4328
|
+
})(Ge || (e.DidChangeConfigurationNotification = Ge = {}));
|
|
4329
4329
|
var st;
|
|
4330
4330
|
(function(a) {
|
|
4331
4331
|
a.Error = 1, a.Warning = 2, a.Info = 3, a.Log = 4, a.Debug = 5;
|
|
@@ -4338,10 +4338,10 @@ var zo;
|
|
|
4338
4338
|
(function(a) {
|
|
4339
4339
|
a.method = "window/showMessageRequest", a.messageDirection = t.MessageDirection.serverToClient, a.type = new t.ProtocolRequestType(a.method);
|
|
4340
4340
|
})(pe || (e.ShowMessageRequest = pe = {}));
|
|
4341
|
-
var
|
|
4341
|
+
var Ye;
|
|
4342
4342
|
(function(a) {
|
|
4343
4343
|
a.method = "window/logMessage", a.messageDirection = t.MessageDirection.serverToClient, a.type = new t.ProtocolNotificationType(a.method);
|
|
4344
|
-
})(
|
|
4344
|
+
})(Ye || (e.LogMessageNotification = Ye = {}));
|
|
4345
4345
|
var re;
|
|
4346
4346
|
(function(a) {
|
|
4347
4347
|
a.method = "telemetry/event", a.messageDirection = t.MessageDirection.serverToClient, a.type = new t.ProtocolNotificationType(a.method);
|
|
@@ -4375,10 +4375,10 @@ var zo;
|
|
|
4375
4375
|
(function(a) {
|
|
4376
4376
|
a.method = "textDocument/didClose", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolNotificationType(a.method);
|
|
4377
4377
|
})(ct || (e.DidCloseTextDocumentNotification = ct = {}));
|
|
4378
|
-
var
|
|
4378
|
+
var Pt;
|
|
4379
4379
|
(function(a) {
|
|
4380
4380
|
a.method = "textDocument/didSave", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolNotificationType(a.method);
|
|
4381
|
-
})(
|
|
4381
|
+
})(Pt || (e.DidSaveTextDocumentNotification = Pt = {}));
|
|
4382
4382
|
var Mt;
|
|
4383
4383
|
(function(a) {
|
|
4384
4384
|
a.Manual = 1, a.AfterDelay = 2, a.FocusOut = 3;
|
|
@@ -4395,10 +4395,10 @@ var zo;
|
|
|
4395
4395
|
(function(a) {
|
|
4396
4396
|
a.method = "workspace/didChangeWatchedFiles", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolNotificationType(a.method);
|
|
4397
4397
|
})(ue || (e.DidChangeWatchedFilesNotification = ue = {}));
|
|
4398
|
-
var
|
|
4398
|
+
var Nt;
|
|
4399
4399
|
(function(a) {
|
|
4400
4400
|
a.Created = 1, a.Changed = 2, a.Deleted = 3;
|
|
4401
|
-
})(
|
|
4401
|
+
})(Nt || (e.FileChangeType = Nt = {}));
|
|
4402
4402
|
var tn;
|
|
4403
4403
|
(function(a) {
|
|
4404
4404
|
function U(V) {
|
|
@@ -4419,10 +4419,10 @@ var zo;
|
|
|
4419
4419
|
(function(a) {
|
|
4420
4420
|
a.Invoked = 1, a.TriggerCharacter = 2, a.TriggerForIncompleteCompletions = 3;
|
|
4421
4421
|
})(on || (e.CompletionTriggerKind = on = {}));
|
|
4422
|
-
var
|
|
4422
|
+
var Ot;
|
|
4423
4423
|
(function(a) {
|
|
4424
4424
|
a.method = "textDocument/completion", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolRequestType(a.method);
|
|
4425
|
-
})(
|
|
4425
|
+
})(Ot || (e.CompletionRequest = Ot = {}));
|
|
4426
4426
|
var jt;
|
|
4427
4427
|
(function(a) {
|
|
4428
4428
|
a.method = "completionItem/resolve", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolRequestType(a.method);
|
|
@@ -4487,10 +4487,10 @@ var zo;
|
|
|
4487
4487
|
(function(a) {
|
|
4488
4488
|
a.method = "textDocument/documentLink", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolRequestType(a.method);
|
|
4489
4489
|
})(mn || (e.DocumentLinkRequest = mn = {}));
|
|
4490
|
-
var
|
|
4490
|
+
var Ze;
|
|
4491
4491
|
(function(a) {
|
|
4492
4492
|
a.method = "documentLink/resolve", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolRequestType(a.method);
|
|
4493
|
-
})(
|
|
4493
|
+
})(Ze || (e.DocumentLinkResolveRequest = Ze = {}));
|
|
4494
4494
|
var pn;
|
|
4495
4495
|
(function(a) {
|
|
4496
4496
|
a.method = "textDocument/formatting", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolRequestType(a.method);
|
|
@@ -4507,10 +4507,10 @@ var zo;
|
|
|
4507
4507
|
(function(a) {
|
|
4508
4508
|
a.method = "textDocument/onTypeFormatting", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolRequestType(a.method);
|
|
4509
4509
|
})(we || (e.DocumentOnTypeFormattingRequest = we = {}));
|
|
4510
|
-
var
|
|
4510
|
+
var qe;
|
|
4511
4511
|
(function(a) {
|
|
4512
4512
|
a.Identifier = 1;
|
|
4513
|
-
})(
|
|
4513
|
+
})(qe || (e.PrepareSupportDefaultBehavior = qe = {}));
|
|
4514
4514
|
var vn;
|
|
4515
4515
|
(function(a) {
|
|
4516
4516
|
a.method = "textDocument/rename", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolRequestType(a.method);
|
|
@@ -4519,10 +4519,10 @@ var zo;
|
|
|
4519
4519
|
(function(a) {
|
|
4520
4520
|
a.method = "textDocument/prepareRename", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolRequestType(a.method);
|
|
4521
4521
|
})(bn || (e.PrepareRenameRequest = bn = {}));
|
|
4522
|
-
var
|
|
4522
|
+
var Ie;
|
|
4523
4523
|
(function(a) {
|
|
4524
4524
|
a.method = "workspace/executeCommand", a.messageDirection = t.MessageDirection.clientToServer, a.type = new t.ProtocolRequestType(a.method);
|
|
4525
|
-
})(
|
|
4525
|
+
})(Ie || (e.ExecuteCommandRequest = Ie = {}));
|
|
4526
4526
|
var At;
|
|
4527
4527
|
(function(a) {
|
|
4528
4528
|
a.method = "workspace/applyEdit", a.messageDirection = t.MessageDirection.serverToClient, a.type = new t.ProtocolRequestType("workspace/applyEdit");
|
|
@@ -4548,7 +4548,7 @@ Xn.createProtocolConnection = Ys;
|
|
|
4548
4548
|
}), i = ae && ae.__exportStar || function(o, c) {
|
|
4549
4549
|
for (var d in o) d !== "default" && !Object.prototype.hasOwnProperty.call(c, d) && t(c, o, d);
|
|
4550
4550
|
};
|
|
4551
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.LSPErrorCodes = e.createProtocolConnection = void 0, i(rt, e), i(
|
|
4551
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.LSPErrorCodes = e.createProtocolConnection = void 0, i(rt, e), i(hi, e), i(P, e), i(la, e);
|
|
4552
4552
|
var n = Xn;
|
|
4553
4553
|
Object.defineProperty(e, "createProtocolConnection", { enumerable: !0, get: function() {
|
|
4554
4554
|
return n.createProtocolConnection;
|
|
@@ -4571,13 +4571,13 @@ Xn.createProtocolConnection = Ys;
|
|
|
4571
4571
|
for (var d in o) d !== "default" && !Object.prototype.hasOwnProperty.call(c, d) && t(c, o, d);
|
|
4572
4572
|
};
|
|
4573
4573
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.createProtocolConnection = void 0;
|
|
4574
|
-
const n =
|
|
4575
|
-
i(
|
|
4574
|
+
const n = Oi;
|
|
4575
|
+
i(Oi, e), i(ua, e);
|
|
4576
4576
|
function r(o, c, d, h) {
|
|
4577
4577
|
return (0, n.createMessageConnection)(o, c, d, h);
|
|
4578
4578
|
}
|
|
4579
4579
|
e.createProtocolConnection = r;
|
|
4580
|
-
})(
|
|
4580
|
+
})(D);
|
|
4581
4581
|
const Zs = (e) => ({
|
|
4582
4582
|
line: e.lineNumber - 1,
|
|
4583
4583
|
character: e.column - 1
|
|
@@ -4602,10 +4602,10 @@ const Zs = (e) => ({
|
|
|
4602
4602
|
line: e.endLineNumber - 1,
|
|
4603
4603
|
character: e.endColumn - 1
|
|
4604
4604
|
}
|
|
4605
|
-
}),
|
|
4605
|
+
}), Gn = (e) => ({
|
|
4606
4606
|
uri: e.uri.toString()
|
|
4607
4607
|
}), mi = (e, t) => ({
|
|
4608
|
-
textDocument:
|
|
4608
|
+
textDocument: Gn(e),
|
|
4609
4609
|
position: Zs(t)
|
|
4610
4610
|
}), ec = (e, t) => {
|
|
4611
4611
|
const i = e.getWordUntilPosition(t);
|
|
@@ -4616,23 +4616,23 @@ const Zs = (e) => ({
|
|
|
4616
4616
|
endColumn: i.endColumn
|
|
4617
4617
|
};
|
|
4618
4618
|
}, tc = (e) => {
|
|
4619
|
-
const t = Object.keys(
|
|
4619
|
+
const t = Object.keys(D.CompletionItemKind).find((i) => D.CompletionItemKind[i] === e);
|
|
4620
4620
|
return t ? G.CompletionItemKind[t] : G.CompletionItemKind.Text;
|
|
4621
|
-
}, nc = (e) => e.flatMap((t) => t ===
|
|
4621
|
+
}, nc = (e) => e.flatMap((t) => t === D.CompletionItemTag.Deprecated ? [G.CompletionItemTag.Deprecated] : []), rc = (e) => {
|
|
4622
4622
|
switch (e) {
|
|
4623
4623
|
case G.CompletionTriggerKind.Invoke:
|
|
4624
|
-
return
|
|
4624
|
+
return D.CompletionTriggerKind.Invoked;
|
|
4625
4625
|
case G.CompletionTriggerKind.TriggerCharacter:
|
|
4626
|
-
return
|
|
4626
|
+
return D.CompletionTriggerKind.TriggerCharacter;
|
|
4627
4627
|
case G.CompletionTriggerKind.TriggerForIncompleteCompletions:
|
|
4628
|
-
return
|
|
4628
|
+
return D.CompletionTriggerKind.TriggerForIncompleteCompletions;
|
|
4629
4629
|
default:
|
|
4630
|
-
return
|
|
4630
|
+
return D.CompletionTriggerKind.Invoked;
|
|
4631
4631
|
}
|
|
4632
4632
|
}, ic = (e) => ({
|
|
4633
4633
|
triggerKind: rc(e.triggerKind),
|
|
4634
4634
|
triggerCharacter: e.triggerCharacter
|
|
4635
|
-
}),
|
|
4635
|
+
}), ui = (e, t) => {
|
|
4636
4636
|
var o, c;
|
|
4637
4637
|
const i = {
|
|
4638
4638
|
label: e.label,
|
|
@@ -4641,9 +4641,9 @@ const Zs = (e) => ({
|
|
|
4641
4641
|
}, n = nc(e.tags ?? []);
|
|
4642
4642
|
e.deprecated && n.push(G.CompletionItemTag.Deprecated);
|
|
4643
4643
|
let r = G.CompletionItemInsertTextRule.None;
|
|
4644
|
-
return e.insertTextFormat ===
|
|
4644
|
+
return e.insertTextFormat === D.InsertTextFormat.Snippet ? r = G.CompletionItemInsertTextRule.InsertAsSnippet : e.insertTextMode === D.InsertTextMode.adjustIndentation && (r = G.CompletionItemInsertTextRule.KeepWhitespace), {
|
|
4645
4645
|
label: i,
|
|
4646
|
-
kind: tc(e.kind ??
|
|
4646
|
+
kind: tc(e.kind ?? D.CompletionItemKind.Text),
|
|
4647
4647
|
tags: n,
|
|
4648
4648
|
detail: e.detail,
|
|
4649
4649
|
...e.documentation ? { documentation: Gt(e.documentation) } : {},
|
|
@@ -4662,7 +4662,7 @@ const Zs = (e) => ({
|
|
|
4662
4662
|
commitCharactersSupport: !0,
|
|
4663
4663
|
deprecatedSupport: !0,
|
|
4664
4664
|
tagSupport: {
|
|
4665
|
-
valueSet: [
|
|
4665
|
+
valueSet: [D.CompletionItemTag.Deprecated]
|
|
4666
4666
|
},
|
|
4667
4667
|
documentationFormat: ["markdown", "plaintext"],
|
|
4668
4668
|
preselectSupport: !0,
|
|
@@ -4671,7 +4671,7 @@ const Zs = (e) => ({
|
|
|
4671
4671
|
properties: ["documentation", "detail"]
|
|
4672
4672
|
}
|
|
4673
4673
|
},
|
|
4674
|
-
insertTextMode:
|
|
4674
|
+
insertTextMode: D.InsertTextMode.asIs,
|
|
4675
4675
|
contextSupport: !1
|
|
4676
4676
|
}, ac = (e, t, i) => ({
|
|
4677
4677
|
...mi(e, t),
|
|
@@ -4679,9 +4679,9 @@ const Zs = (e) => ({
|
|
|
4679
4679
|
}), sc = (e, t, i) => {
|
|
4680
4680
|
const n = ec(t, i);
|
|
4681
4681
|
return Array.isArray(e) ? {
|
|
4682
|
-
suggestions: e.map((r) =>
|
|
4682
|
+
suggestions: e.map((r) => ui(r, n))
|
|
4683
4683
|
} : {
|
|
4684
|
-
suggestions: e.items.map((r) =>
|
|
4684
|
+
suggestions: e.items.map((r) => ui(r, n)),
|
|
4685
4685
|
incomplete: e.isIncomplete
|
|
4686
4686
|
};
|
|
4687
4687
|
}, cc = (e) => {
|
|
@@ -4689,24 +4689,24 @@ const Zs = (e) => ({
|
|
|
4689
4689
|
label: typeof e.label == "string" ? e.label : e.label.label
|
|
4690
4690
|
};
|
|
4691
4691
|
return "data" in e && (t.data = e.data), t;
|
|
4692
|
-
}, uc = (e, t) =>
|
|
4692
|
+
}, uc = (e, t) => ui(e, t), lc = (e) => {
|
|
4693
4693
|
switch (e) {
|
|
4694
|
-
case
|
|
4694
|
+
case D.DiagnosticSeverity.Error:
|
|
4695
4695
|
return $t.Error;
|
|
4696
|
-
case
|
|
4696
|
+
case D.DiagnosticSeverity.Warning:
|
|
4697
4697
|
return $t.Warning;
|
|
4698
|
-
case
|
|
4698
|
+
case D.DiagnosticSeverity.Information:
|
|
4699
4699
|
return $t.Info;
|
|
4700
|
-
case
|
|
4700
|
+
case D.DiagnosticSeverity.Hint:
|
|
4701
4701
|
return $t.Hint;
|
|
4702
4702
|
default:
|
|
4703
4703
|
return $t.Info;
|
|
4704
4704
|
}
|
|
4705
4705
|
}, dc = (e) => e.flatMap((t) => {
|
|
4706
4706
|
switch (t) {
|
|
4707
|
-
case
|
|
4707
|
+
case D.DiagnosticTag.Unnecessary:
|
|
4708
4708
|
return [Ti.Unnecessary];
|
|
4709
|
-
case
|
|
4709
|
+
case D.DiagnosticTag.Deprecated:
|
|
4710
4710
|
return [Ti.Deprecated];
|
|
4711
4711
|
default:
|
|
4712
4712
|
return [];
|
|
@@ -4717,7 +4717,7 @@ const Zs = (e) => ({
|
|
|
4717
4717
|
versionSupport: !1,
|
|
4718
4718
|
dataSupport: !1,
|
|
4719
4719
|
tagSupport: {
|
|
4720
|
-
valueSet: [
|
|
4720
|
+
valueSet: [D.DiagnosticTag.Unnecessary, D.DiagnosticTag.Deprecated]
|
|
4721
4721
|
}
|
|
4722
4722
|
}, gc = (e) => {
|
|
4723
4723
|
const t = (i) => {
|
|
@@ -4725,7 +4725,7 @@ const Zs = (e) => ({
|
|
|
4725
4725
|
return i.code && (typeof i.code == "number" ? n = `${i.code}` : n = i.code), {
|
|
4726
4726
|
code: n,
|
|
4727
4727
|
severity: lc(
|
|
4728
|
-
i.severity ??
|
|
4728
|
+
i.severity ?? D.DiagnosticSeverity.Information
|
|
4729
4729
|
),
|
|
4730
4730
|
message: i.message,
|
|
4731
4731
|
source: i.source,
|
|
@@ -4743,21 +4743,27 @@ const Zs = (e) => ({
|
|
|
4743
4743
|
text: e.text
|
|
4744
4744
|
}), pc = (e) => ({
|
|
4745
4745
|
textDocument: {
|
|
4746
|
-
...
|
|
4746
|
+
...Gn(e),
|
|
4747
4747
|
languageId: e.getLanguageId(),
|
|
4748
4748
|
version: e.getVersionId(),
|
|
4749
4749
|
text: e.getValue()
|
|
4750
4750
|
}
|
|
4751
4751
|
}), yc = (e, t) => ({
|
|
4752
4752
|
textDocument: {
|
|
4753
|
-
...
|
|
4753
|
+
...Gn(e),
|
|
4754
4754
|
version: t.versionId
|
|
4755
4755
|
},
|
|
4756
4756
|
contentChanges: t.changes.map(mc)
|
|
4757
|
-
}), vc = {
|
|
4757
|
+
}), vc = (e) => ({
|
|
4758
|
+
textDocument: {
|
|
4759
|
+
...Gn(e),
|
|
4760
|
+
version: e.getVersionId()
|
|
4761
|
+
},
|
|
4762
|
+
contentChanges: [{ text: e.getValue() }]
|
|
4763
|
+
}), bc = {
|
|
4758
4764
|
dynamicRegistration: !1,
|
|
4759
4765
|
contentFormat: ["markdown", "plaintext"]
|
|
4760
|
-
},
|
|
4766
|
+
}, _c = (e, t) => mi(e, t), Tc = (e) => {
|
|
4761
4767
|
const t = (n) => {
|
|
4762
4768
|
let r;
|
|
4763
4769
|
return typeof n == "string" ? r = n : r = `\`\`\`${n.language}
|
|
@@ -4783,7 +4789,7 @@ ${n.value}
|
|
|
4783
4789
|
};
|
|
4784
4790
|
} else
|
|
4785
4791
|
throw Error(`Got invalid hover result: ${JSON.stringify(e)}`);
|
|
4786
|
-
},
|
|
4792
|
+
}, Rc = {
|
|
4787
4793
|
dynamicRegistration: !1,
|
|
4788
4794
|
contextSupport: !0,
|
|
4789
4795
|
signatureInformation: {
|
|
@@ -4792,52 +4798,54 @@ ${n.value}
|
|
|
4792
4798
|
labelOffsetSupport: !0
|
|
4793
4799
|
}
|
|
4794
4800
|
}
|
|
4795
|
-
},
|
|
4801
|
+
}, Dc = (e) => {
|
|
4796
4802
|
switch (e) {
|
|
4797
4803
|
case G.SignatureHelpTriggerKind.Invoke:
|
|
4798
|
-
return
|
|
4804
|
+
return D.SignatureHelpTriggerKind.Invoked;
|
|
4799
4805
|
case G.SignatureHelpTriggerKind.TriggerCharacter:
|
|
4800
|
-
return
|
|
4806
|
+
return D.SignatureHelpTriggerKind.TriggerCharacter;
|
|
4801
4807
|
case G.SignatureHelpTriggerKind.ContentChange:
|
|
4802
|
-
return
|
|
4808
|
+
return D.SignatureHelpTriggerKind.ContentChange;
|
|
4803
4809
|
default:
|
|
4804
|
-
return
|
|
4810
|
+
return D.SignatureHelpTriggerKind.Invoked;
|
|
4805
4811
|
}
|
|
4806
|
-
},
|
|
4807
|
-
triggerKind:
|
|
4812
|
+
}, wc = (e) => ({
|
|
4813
|
+
triggerKind: Dc(e.triggerKind),
|
|
4808
4814
|
triggerCharacter: e.triggerCharacter,
|
|
4809
4815
|
isRetrigger: e.isRetrigger
|
|
4810
|
-
}),
|
|
4816
|
+
}), Sc = (e) => ({
|
|
4811
4817
|
label: e.label,
|
|
4812
4818
|
...e.documentation ? { documentation: Gt(e.documentation) } : {}
|
|
4813
|
-
}),
|
|
4819
|
+
}), Cc = (e) => ({
|
|
4814
4820
|
label: e.label,
|
|
4815
4821
|
...e.documentation ? { documentation: Gt(e.documentation) } : {},
|
|
4816
|
-
parameters: e.parameters ? e.parameters.map(
|
|
4822
|
+
parameters: e.parameters ? e.parameters.map(Sc) : [],
|
|
4817
4823
|
activeParameter: e.activeParameter
|
|
4818
4824
|
}), Pc = (e) => ({
|
|
4819
|
-
signatures: e.signatures.map(
|
|
4825
|
+
signatures: e.signatures.map(Cc),
|
|
4820
4826
|
activeSignature: e.activeSignature ?? 0,
|
|
4821
4827
|
activeParameter: e.activeParameter ?? 0
|
|
4822
|
-
}),
|
|
4828
|
+
}), Mc = (e, t, i) => ({
|
|
4823
4829
|
...mi(e, t),
|
|
4824
|
-
context:
|
|
4825
|
-
}),
|
|
4830
|
+
context: wc(i)
|
|
4831
|
+
}), kc = (e) => ({
|
|
4826
4832
|
value: Pc(e),
|
|
4827
4833
|
dispose: () => {
|
|
4828
4834
|
}
|
|
4829
4835
|
});
|
|
4830
4836
|
class pi {
|
|
4831
4837
|
constructor(t, i, n) {
|
|
4832
|
-
|
|
4838
|
+
Se(this, "_connection");
|
|
4833
4839
|
/**
|
|
4834
4840
|
* Used to wait for the last change to be sent to the server. Monaco will
|
|
4835
4841
|
* always call onDidChangeContent first. While we send this change to the
|
|
4836
4842
|
* language server this promise is pending. Other requests that depend on
|
|
4837
4843
|
* the latest content must wait for this promise to resolve.
|
|
4838
4844
|
*/
|
|
4839
|
-
|
|
4840
|
-
this
|
|
4845
|
+
Se(this, "_onChangeLock");
|
|
4846
|
+
Se(this, "_disposables", []);
|
|
4847
|
+
Se(this, "_changeContentDisposable", null);
|
|
4848
|
+
this._editorModel = t, this._connection = D.createMessageConnection(i, n), this._connection.listen(), this._onChangeLock = Promise.resolve();
|
|
4841
4849
|
}
|
|
4842
4850
|
/**
|
|
4843
4851
|
* Create a new connection to a language server.
|
|
@@ -4848,12 +4856,22 @@ class pi {
|
|
|
4848
4856
|
* @returns a fully initialized connection
|
|
4849
4857
|
*/
|
|
4850
4858
|
static async create(t, i, n) {
|
|
4851
|
-
const r = new pi(t, i, n), o = await r.initializeLanguageServer();
|
|
4852
|
-
r.syncDocument(), o.capabilities.hoverProvider && r.registerHoverProvider();
|
|
4853
|
-
const
|
|
4854
|
-
|
|
4855
|
-
const
|
|
4856
|
-
return
|
|
4859
|
+
const r = new pi(t, i, n), o = await r.initializeLanguageServer(), c = o.capabilities.textDocumentSync;
|
|
4860
|
+
r.syncDocument(c), o.capabilities.hoverProvider && r.registerHoverProvider();
|
|
4861
|
+
const h = o.capabilities.completionProvider;
|
|
4862
|
+
h && r.registerCompletionProvider(h);
|
|
4863
|
+
const f = o.capabilities.signatureHelpProvider;
|
|
4864
|
+
return f && r.registerSignatureHelpProvider(f), r.registerOnPublishDiagnostic(), await r.notifyInitialized(), r;
|
|
4865
|
+
}
|
|
4866
|
+
/**
|
|
4867
|
+
* Dispose this connection. Unregisters all providers and stops
|
|
4868
|
+
* document synchronization.
|
|
4869
|
+
*/
|
|
4870
|
+
dispose() {
|
|
4871
|
+
var t;
|
|
4872
|
+
for (const i of this._disposables)
|
|
4873
|
+
i.dispose();
|
|
4874
|
+
this._disposables = [], (t = this._changeContentDisposable) == null || t.dispose(), this._changeContentDisposable = null, this._connection.dispose();
|
|
4857
4875
|
}
|
|
4858
4876
|
/**
|
|
4859
4877
|
* Change the configuration of the language server.
|
|
@@ -4863,7 +4881,7 @@ class pi {
|
|
|
4863
4881
|
*/
|
|
4864
4882
|
async changeConfiguration(t) {
|
|
4865
4883
|
await this._connection.sendNotification(
|
|
4866
|
-
|
|
4884
|
+
D.DidChangeConfigurationNotification.type,
|
|
4867
4885
|
{ settings: t }
|
|
4868
4886
|
);
|
|
4869
4887
|
}
|
|
@@ -4878,10 +4896,10 @@ class pi {
|
|
|
4878
4896
|
processId: null,
|
|
4879
4897
|
capabilities: {
|
|
4880
4898
|
textDocument: {
|
|
4881
|
-
hover:
|
|
4899
|
+
hover: bc,
|
|
4882
4900
|
completion: oc,
|
|
4883
4901
|
publishDiagnostics: fc,
|
|
4884
|
-
signatureHelp:
|
|
4902
|
+
signatureHelp: Rc,
|
|
4885
4903
|
synchronization: hc
|
|
4886
4904
|
},
|
|
4887
4905
|
workspace: {
|
|
@@ -4895,86 +4913,108 @@ class pi {
|
|
|
4895
4913
|
rootUri: null
|
|
4896
4914
|
// No folder open
|
|
4897
4915
|
};
|
|
4898
|
-
return this._connection.sendRequest(
|
|
4916
|
+
return this._connection.sendRequest(D.InitializeRequest.type, t);
|
|
4899
4917
|
}
|
|
4900
4918
|
async notifyInitialized() {
|
|
4901
|
-
await this._connection.sendNotification(
|
|
4919
|
+
await this._connection.sendNotification(D.InitializedNotification.type, {});
|
|
4902
4920
|
}
|
|
4903
4921
|
/**
|
|
4904
4922
|
* Document synchronization
|
|
4905
4923
|
*/
|
|
4906
|
-
syncDocument() {
|
|
4924
|
+
syncDocument(t) {
|
|
4907
4925
|
this._connection.sendNotification(
|
|
4908
|
-
|
|
4926
|
+
D.DidOpenTextDocumentNotification.type,
|
|
4909
4927
|
pc(this._editorModel)
|
|
4910
|
-
), this._editorModel.onDidChangeContent(
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4928
|
+
), t === D.TextDocumentSyncKind.Full || typeof t == "object" && t.change === D.TextDocumentSyncKind.Full ? this._changeContentDisposable = this._editorModel.onDidChangeContent(
|
|
4929
|
+
() => {
|
|
4930
|
+
this._onChangeLock = this._connection.sendNotification(
|
|
4931
|
+
D.DidChangeTextDocumentNotification.type,
|
|
4932
|
+
vc(this._editorModel)
|
|
4933
|
+
);
|
|
4934
|
+
}
|
|
4935
|
+
) : (t === D.TextDocumentSyncKind.Incremental || typeof t == "object" && t.change === D.TextDocumentSyncKind.Incremental) && (this._changeContentDisposable = this._editorModel.onDidChangeContent(
|
|
4936
|
+
(i) => {
|
|
4937
|
+
this._onChangeLock = this._connection.sendNotification(
|
|
4938
|
+
D.DidChangeTextDocumentNotification.type,
|
|
4939
|
+
yc(this._editorModel, i)
|
|
4940
|
+
);
|
|
4941
|
+
}
|
|
4942
|
+
));
|
|
4916
4943
|
}
|
|
4917
4944
|
/**
|
|
4918
4945
|
* Hover
|
|
4919
4946
|
*/
|
|
4920
4947
|
registerHoverProvider() {
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4948
|
+
this._disposables.push(
|
|
4949
|
+
G.registerHoverProvider(this.getLanguageId(), {
|
|
4950
|
+
provideHover: async (t, i) => {
|
|
4951
|
+
if (t !== this._editorModel)
|
|
4952
|
+
return null;
|
|
4953
|
+
await this._onChangeLock;
|
|
4954
|
+
const n = await this._connection.sendRequest(
|
|
4955
|
+
D.HoverRequest.type,
|
|
4956
|
+
_c(t, i)
|
|
4957
|
+
);
|
|
4958
|
+
return n === null ? null : Tc(n);
|
|
4959
|
+
}
|
|
4960
|
+
})
|
|
4961
|
+
);
|
|
4931
4962
|
}
|
|
4932
4963
|
/**
|
|
4933
4964
|
* Auto-completion
|
|
4934
4965
|
*/
|
|
4935
4966
|
registerCompletionProvider(t) {
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4967
|
+
let i;
|
|
4968
|
+
t.resolveProvider && (i = async (n) => {
|
|
4969
|
+
const r = await this._connection.sendRequest(
|
|
4970
|
+
D.CompletionResolveRequest.type,
|
|
4971
|
+
cc(n)
|
|
4972
|
+
);
|
|
4973
|
+
return uc(r, n.range);
|
|
4974
|
+
}), this._disposables.push(
|
|
4975
|
+
G.registerCompletionItemProvider(this.getLanguageId(), {
|
|
4976
|
+
triggerCharacters: t.triggerCharacters,
|
|
4977
|
+
provideCompletionItems: async (n, r, o) => {
|
|
4978
|
+
if (n !== this._editorModel)
|
|
4979
|
+
return null;
|
|
4980
|
+
await this._onChangeLock;
|
|
4981
|
+
const c = await this._connection.sendRequest(
|
|
4982
|
+
D.CompletionRequest.type,
|
|
4983
|
+
ac(n, r, o)
|
|
4984
|
+
);
|
|
4985
|
+
return c === null ? null : sc(c, n, r);
|
|
4986
|
+
},
|
|
4987
|
+
resolveCompletionItem: i
|
|
4988
|
+
})
|
|
4989
|
+
);
|
|
4954
4990
|
}
|
|
4955
4991
|
/**
|
|
4956
4992
|
* Signature help
|
|
4957
4993
|
*/
|
|
4958
4994
|
registerSignatureHelpProvider(t) {
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4995
|
+
this._disposables.push(
|
|
4996
|
+
G.registerSignatureHelpProvider(this.getLanguageId(), {
|
|
4997
|
+
signatureHelpTriggerCharacters: t.triggerCharacters,
|
|
4998
|
+
signatureHelpRetriggerCharacters: t.retriggerCharacters,
|
|
4999
|
+
provideSignatureHelp: async (i, n, r, o) => {
|
|
5000
|
+
if (i !== this._editorModel)
|
|
5001
|
+
return null;
|
|
5002
|
+
await this._onChangeLock;
|
|
5003
|
+
const c = await this._connection.sendRequest(
|
|
5004
|
+
D.SignatureHelpRequest.type,
|
|
5005
|
+
Mc(i, n, o)
|
|
5006
|
+
);
|
|
5007
|
+
return c === null ? null : kc(c);
|
|
5008
|
+
}
|
|
5009
|
+
})
|
|
5010
|
+
);
|
|
4971
5011
|
}
|
|
4972
5012
|
/**
|
|
4973
5013
|
* Diagnostics
|
|
4974
5014
|
*/
|
|
4975
5015
|
registerOnPublishDiagnostic() {
|
|
4976
5016
|
this._connection.onNotification(
|
|
4977
|
-
|
|
5017
|
+
D.PublishDiagnosticsNotification.type,
|
|
4978
5018
|
(t) => {
|
|
4979
5019
|
wa.setModelMarkers(
|
|
4980
5020
|
this._editorModel,
|
|
@@ -4985,11 +5025,11 @@ class pi {
|
|
|
4985
5025
|
);
|
|
4986
5026
|
}
|
|
4987
5027
|
}
|
|
4988
|
-
class
|
|
5028
|
+
class Ec extends D.AbstractMessageReader {
|
|
4989
5029
|
constructor(i) {
|
|
4990
5030
|
super();
|
|
4991
|
-
|
|
4992
|
-
|
|
5031
|
+
Se(this, "messageCache", []);
|
|
5032
|
+
Se(this, "callback");
|
|
4993
5033
|
i((n) => this.readMessage(n)), this.callback = null;
|
|
4994
5034
|
}
|
|
4995
5035
|
listen(i) {
|
|
@@ -5013,7 +5053,7 @@ class kc extends P.AbstractMessageReader {
|
|
|
5013
5053
|
this.messageCache.push(i);
|
|
5014
5054
|
}
|
|
5015
5055
|
}
|
|
5016
|
-
class
|
|
5056
|
+
class Nc extends D.AbstractMessageWriter {
|
|
5017
5057
|
constructor(t) {
|
|
5018
5058
|
super(), this.sendMessage = t;
|
|
5019
5059
|
}
|
|
@@ -5026,7 +5066,7 @@ class Ec extends P.AbstractMessageWriter {
|
|
|
5026
5066
|
}
|
|
5027
5067
|
class Oc {
|
|
5028
5068
|
constructor(t) {
|
|
5029
|
-
|
|
5069
|
+
Se(this, "_eventHandlers", {});
|
|
5030
5070
|
this.jsonDataService = t, this.startPolling().catch(() => {
|
|
5031
5071
|
});
|
|
5032
5072
|
}
|
|
@@ -5048,7 +5088,7 @@ class Oc {
|
|
|
5048
5088
|
this._eventHandlers[t] = i;
|
|
5049
5089
|
}
|
|
5050
5090
|
}
|
|
5051
|
-
class
|
|
5091
|
+
class jc {
|
|
5052
5092
|
/**
|
|
5053
5093
|
* Internal constructor — use `getScriptingService()` from `init.ts` instead.
|
|
5054
5094
|
*
|
|
@@ -5063,7 +5103,7 @@ class Nc {
|
|
|
5063
5103
|
* @param alertingService The alerting service used to send alerts.
|
|
5064
5104
|
*/
|
|
5065
5105
|
constructor(t, i) {
|
|
5066
|
-
|
|
5106
|
+
Se(this, "eventPoller");
|
|
5067
5107
|
this.jsonDataService = t, this.alertingService = i, this.eventPoller = new Oc(this.jsonDataService);
|
|
5068
5108
|
}
|
|
5069
5109
|
sendToService(t, i) {
|
|
@@ -5087,7 +5127,7 @@ class Nc {
|
|
|
5087
5127
|
// scripting-service to the main editor state
|
|
5088
5128
|
async connectToLanguageServer() {
|
|
5089
5129
|
var n;
|
|
5090
|
-
const t = (n =
|
|
5130
|
+
const t = (n = di().value) == null ? void 0 : n.editorModel;
|
|
5091
5131
|
if (typeof t > "u")
|
|
5092
5132
|
throw Error("Editor model has not yet been initialized");
|
|
5093
5133
|
const i = await this.sendToService(
|
|
@@ -5096,10 +5136,10 @@ class Nc {
|
|
|
5096
5136
|
if (i.status === "RUNNING")
|
|
5097
5137
|
return pi.create(
|
|
5098
5138
|
t,
|
|
5099
|
-
new
|
|
5139
|
+
new Ec(
|
|
5100
5140
|
(r) => this.registerEventHandler("language-server", r)
|
|
5101
5141
|
),
|
|
5102
|
-
new
|
|
5142
|
+
new Nc(
|
|
5103
5143
|
(r) => this.sendToService("sendLanguageServerMessage", [r])
|
|
5104
5144
|
)
|
|
5105
5145
|
);
|
|
@@ -5133,7 +5173,7 @@ class Nc {
|
|
|
5133
5173
|
(i = this.alertingService) == null || i.sendAlert(t);
|
|
5134
5174
|
}
|
|
5135
5175
|
}
|
|
5136
|
-
class
|
|
5176
|
+
class qc {
|
|
5137
5177
|
/**
|
|
5138
5178
|
* Internal constructor — do not call directly.
|
|
5139
5179
|
*
|
|
@@ -5178,7 +5218,7 @@ class jc {
|
|
|
5178
5218
|
return this.dialogService.registerSettings(t);
|
|
5179
5219
|
}
|
|
5180
5220
|
}
|
|
5181
|
-
const
|
|
5221
|
+
const Xc = (e, t) => {
|
|
5182
5222
|
const i = ma().mainScriptConfigKey ?? "script";
|
|
5183
5223
|
if (!t)
|
|
5184
5224
|
return { data: { model: { [i]: e.script } } };
|
|
@@ -5189,31 +5229,31 @@ const Qc = (e, t) => {
|
|
|
5189
5229
|
return t.data.model[i] = e.script, t;
|
|
5190
5230
|
};
|
|
5191
5231
|
let yi;
|
|
5192
|
-
const
|
|
5232
|
+
const Ic = () => yi;
|
|
5193
5233
|
let vi;
|
|
5194
5234
|
const ma = () => vi;
|
|
5195
5235
|
let bi;
|
|
5196
|
-
const
|
|
5197
|
-
const e = await Sa.getInstance(), t = await
|
|
5198
|
-
yi = new
|
|
5236
|
+
const Gc = () => bi, Yc = async () => {
|
|
5237
|
+
const e = await Sa.getInstance(), t = await Ca.getInstance(), i = await Pa.getInstance();
|
|
5238
|
+
yi = new jc(e, i);
|
|
5199
5239
|
const n = await e.initialData();
|
|
5200
|
-
vi = n.initialData, bi = new
|
|
5240
|
+
vi = n.initialData, bi = new qc(
|
|
5201
5241
|
n.settings,
|
|
5202
5242
|
n.settingsInitialData ? JSON.parse(n.settingsInitialData) : void 0,
|
|
5203
5243
|
t,
|
|
5204
5244
|
e
|
|
5205
|
-
),
|
|
5206
|
-
|
|
5245
|
+
), Zn.value = t.getInitialDisplayMode(), t.addOnDisplayModeChangeCallback(({ mode: r }) => {
|
|
5246
|
+
Zn.value = r;
|
|
5207
5247
|
}), ya();
|
|
5208
|
-
},
|
|
5209
|
-
e.scriptingService && (yi = e.scriptingService), e.initialData && (vi = e.initialData), e.settingsService && (bi = e.settingsService), e.displayMode && (
|
|
5210
|
-
},
|
|
5211
|
-
|
|
5212
|
-
},
|
|
5248
|
+
}, Zc = (e) => {
|
|
5249
|
+
e.scriptingService && (yi = e.scriptingService), e.initialData && (vi = e.initialData), e.settingsService && (bi = e.settingsService), e.displayMode && (Zn.value = e.displayMode), ya();
|
|
5250
|
+
}, xc = () => {
|
|
5251
|
+
Ic().registerEventHandler("console", ta.write);
|
|
5252
|
+
}, li = Ra(
|
|
5213
5253
|
{}
|
|
5214
|
-
),
|
|
5215
|
-
typeof
|
|
5216
|
-
},
|
|
5254
|
+
), eu = () => li, tu = () => {
|
|
5255
|
+
typeof li.promptResponse < "u" && delete li.promptResponse;
|
|
5256
|
+
}, Lc = (e, t = null) => {
|
|
5217
5257
|
var n;
|
|
5218
5258
|
const i = (n = window == null ? void 0 : window.localStorage) == null ? void 0 : n.getItem(e);
|
|
5219
5259
|
if (i === null)
|
|
@@ -5223,43 +5263,46 @@ const Xc = () => bi, Gc = async () => {
|
|
|
5223
5263
|
} catch {
|
|
5224
5264
|
return consola.warn(`Could not parse "${e}" from local storage.`), t;
|
|
5225
5265
|
}
|
|
5226
|
-
},
|
|
5266
|
+
}, Ac = (e, t) => {
|
|
5227
5267
|
var i;
|
|
5228
5268
|
(i = window == null ? void 0 : window.localStorage) == null || i.setItem(e, JSON.stringify(t));
|
|
5229
5269
|
}, pa = () => {
|
|
5230
5270
|
const e = ma().kAiConfig.hubId ?? "";
|
|
5231
5271
|
return `ai-disclaimer-do-not-show-again-${encodeURIComponent(e.trim().toLowerCase())}`;
|
|
5232
|
-
},
|
|
5233
|
-
|
|
5234
|
-
},
|
|
5235
|
-
|
|
5236
|
-
},
|
|
5237
|
-
|
|
5272
|
+
}, nu = (e) => {
|
|
5273
|
+
Ac(pa(), e);
|
|
5274
|
+
}, $c = tt(!0), ya = () => {
|
|
5275
|
+
$c.value = !Lc(pa(), !1);
|
|
5276
|
+
}, Fc = Ln(), Hc = (e) => {
|
|
5277
|
+
Fc.value = e;
|
|
5238
5278
|
};
|
|
5239
|
-
Da(() =>
|
|
5240
|
-
const
|
|
5279
|
+
Da(() => di().value, Hc);
|
|
5280
|
+
const ru = tt([]), iu = tt({ type: "UNKNOWN" });
|
|
5241
5281
|
export {
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
Gc as
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5282
|
+
Ec as K,
|
|
5283
|
+
pi as M,
|
|
5284
|
+
Nc as a,
|
|
5285
|
+
ae as b,
|
|
5286
|
+
ru as c,
|
|
5287
|
+
Ic as d,
|
|
5288
|
+
Kc as e,
|
|
5289
|
+
Fc as f,
|
|
5290
|
+
Bc as g,
|
|
5291
|
+
eu as h,
|
|
5292
|
+
ma as i,
|
|
5293
|
+
$c as j,
|
|
5294
|
+
iu as k,
|
|
5295
|
+
tu as l,
|
|
5296
|
+
Jc as m,
|
|
5297
|
+
Gc as n,
|
|
5298
|
+
Zn as o,
|
|
5299
|
+
ta as p,
|
|
5300
|
+
Yc as q,
|
|
5301
|
+
xc as r,
|
|
5302
|
+
nu as s,
|
|
5303
|
+
Zc as t,
|
|
5304
|
+
di as u,
|
|
5305
|
+
Xc as v,
|
|
5306
|
+
Hc as w,
|
|
5307
|
+
Qc as x
|
|
5265
5308
|
};
|