reactive-vscode 0.2.0-beta.1 → 0.2.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,1372 +1,324 @@
1
- import { workspace as P, commands as ge, window as f, debug as qe, extensions as De, comments as Wt, env as B, EventEmitter as ot, tasks as J, Uri as kt, languages as jt, ColorThemeKind as Qe, l10n as Xe } from "vscode";
2
- /**
3
- * @vue/shared v3.4.27
4
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
- * @license MIT
6
- **/
7
- /*! #__NO_SIDE_EFFECTS__ */
8
- // @__NO_SIDE_EFFECTS__
9
- function Ft(e, t) {
10
- const n = new Set(e.split(","));
11
- return (s) => n.has(s);
1
+ import { getCurrentScope as A, onScopeDispose as N, shallowRef as l, effectScope as H, computed as d, toValue as a, watchEffect as h, watch as b, ref as x, shallowReactive as U, toRaw as q, isRef as J } from "@reactive-vscode/reactivity";
2
+ export * from "@reactive-vscode/reactivity";
3
+ import { workspace as m, commands as E, window as c, debug as y, extensions as p, comments as K, env as w, EventEmitter as F, tasks as T, Uri as z, languages as Y, ColorThemeKind as R, l10n as V } from "vscode";
4
+ function G(e) {
5
+ return A() ? (N(e), !0) : !1;
12
6
  }
13
- const Kt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
14
- process.env.NODE_ENV !== "production" && Object.freeze([]);
15
- const X = () => {
16
- }, Ee = Object.assign, $t = (e, t) => {
17
- const n = e.indexOf(t);
18
- n > -1 && e.splice(n, 1);
19
- }, Ut = Object.prototype.hasOwnProperty, fe = (e, t) => Ut.call(e, t), D = Array.isArray, z = (e) => we(e) === "[object Map]", zt = (e) => we(e) === "[object Set]", y = (e) => typeof e == "function", Gt = (e) => typeof e == "string", te = (e) => typeof e == "symbol", $ = (e) => e !== null && typeof e == "object", Bt = (e) => ($(e) || y(e)) && y(e.then) && y(e.catch), Yt = Object.prototype.toString, we = (e) => Yt.call(e), ct = (e) => we(e).slice(8, -1), Jt = (e) => we(e) === "[object Object]", Le = (e) => Gt(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, qt = (e) => {
20
- const t = /* @__PURE__ */ Object.create(null);
21
- return (n) => t[n] || (t[n] = e(n));
22
- }, Qt = qt((e) => e.charAt(0).toUpperCase() + e.slice(1)), M = (e, t) => !Object.is(e, t), Xt = (e, t, n, s = !1) => {
23
- Object.defineProperty(e, t, {
24
- configurable: !0,
25
- enumerable: !1,
26
- writable: s,
27
- value: n
28
- });
29
- };
30
- /**
31
- * @vue/reactivity v3.4.27
32
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
33
- * @license MIT
34
- **/
35
- function C(e, ...t) {
36
- console.warn(`[Vue warn] ${e}`, ...t);
37
- }
38
- let m;
39
- class Zt {
40
- constructor(t = !1) {
41
- this.detached = t, this._active = !0, this.effects = [], this.cleanups = [], this.parent = m, !t && m && (this.index = (m.scopes || (m.scopes = [])).push(
42
- this
43
- ) - 1);
44
- }
45
- get active() {
46
- return this._active;
47
- }
48
- run(t) {
49
- if (this._active) {
50
- const n = m;
51
- try {
52
- return m = this, t();
53
- } finally {
54
- m = n;
55
- }
56
- } else
57
- process.env.NODE_ENV !== "production" && C("cannot run an inactive effect scope.");
58
- }
59
- /**
60
- * This should only be called on non-detached scopes
61
- * @internal
62
- */
63
- on() {
64
- m = this;
65
- }
66
- /**
67
- * This should only be called on non-detached scopes
68
- * @internal
69
- */
70
- off() {
71
- m = this.parent;
72
- }
73
- stop(t) {
74
- if (this._active) {
75
- let n, s;
76
- for (n = 0, s = this.effects.length; n < s; n++)
77
- this.effects[n].stop();
78
- for (n = 0, s = this.cleanups.length; n < s; n++)
79
- this.cleanups[n]();
80
- if (this.scopes)
81
- for (n = 0, s = this.scopes.length; n < s; n++)
82
- this.scopes[n].stop(!0);
83
- if (!this.detached && this.parent && !t) {
84
- const i = this.parent.scopes.pop();
85
- i && i !== this && (this.parent.scopes[this.index] = i, i.index = this.index);
86
- }
87
- this.parent = void 0, this._active = !1;
88
- }
89
- }
90
- }
91
- function en(e) {
92
- return new Zt(e);
93
- }
94
- function at(e, t = m) {
95
- t && t.active && t.effects.push(e);
96
- }
97
- function Pe() {
98
- return m;
99
- }
100
- function ut(e) {
101
- m ? m.cleanups.push(e) : process.env.NODE_ENV !== "production" && C(
102
- "onScopeDispose() is called when there is no active effect scope to be associated with."
103
- );
104
- }
105
- let F;
106
- class de {
107
- constructor(t, n, s, i) {
108
- this.fn = t, this.trigger = n, this.scheduler = s, this.active = !0, this.deps = [], this._dirtyLevel = 4, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0, at(this, i);
109
- }
110
- get dirty() {
111
- if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
112
- this._dirtyLevel = 1, Me();
113
- for (let t = 0; t < this._depsLength; t++) {
114
- const n = this.deps[t];
115
- if (n.computed && (tn(n.computed), this._dirtyLevel >= 4))
116
- break;
117
- }
118
- this._dirtyLevel === 1 && (this._dirtyLevel = 0), We();
119
- }
120
- return this._dirtyLevel >= 4;
121
- }
122
- set dirty(t) {
123
- this._dirtyLevel = t ? 4 : 0;
124
- }
125
- run() {
126
- if (this._dirtyLevel = 0, !this.active)
127
- return this.fn();
128
- let t = O, n = F;
129
- try {
130
- return O = !0, F = this, this._runnings++, Ze(this), this.fn();
131
- } finally {
132
- et(this), this._runnings--, F = n, O = t;
133
- }
134
- }
135
- stop() {
136
- this.active && (Ze(this), et(this), this.onStop && this.onStop(), this.active = !1);
137
- }
138
- }
139
- function tn(e) {
140
- return e.value;
141
- }
142
- function Ze(e) {
143
- e._trackId++, e._depsLength = 0;
144
- }
145
- function et(e) {
146
- if (e.deps.length > e._depsLength) {
147
- for (let t = e._depsLength; t < e.deps.length; t++)
148
- lt(e.deps[t], e);
149
- e.deps.length = e._depsLength;
150
- }
151
- }
152
- function lt(e, t) {
153
- const n = e.get(t);
154
- n !== void 0 && t._trackId !== n && (e.delete(t), e.size === 0 && e.cleanup());
155
- }
156
- function es(e, t) {
157
- e.effect instanceof de && (e = e.effect.fn);
158
- const n = new de(e, X, () => {
159
- n.dirty && n.run();
160
- });
161
- t && (Ee(n, t), t.scope && at(n, t.scope)), (!t || !t.lazy) && n.run();
162
- const s = n.run.bind(n);
163
- return s.effect = n, s;
164
- }
165
- function ts(e) {
166
- e.effect.stop();
167
- }
168
- let O = !0, Se = 0;
169
- const He = [];
170
- function Me() {
171
- He.push(O), O = !1;
172
- }
173
- function ns() {
174
- He.push(O), O = !0;
175
- }
176
- function We() {
177
- const e = He.pop();
178
- O = e === void 0 ? !0 : e;
179
- }
180
- function ke() {
181
- Se++;
182
- }
183
- function je() {
184
- for (Se--; !Se && ye.length; )
185
- ye.shift()();
186
- }
187
- function ft(e, t, n) {
188
- var s;
189
- if (t.get(e) !== e._trackId) {
190
- t.set(e, e._trackId);
191
- const i = e.deps[e._depsLength];
192
- i !== t ? (i && lt(i, e), e.deps[e._depsLength++] = t) : e._depsLength++, process.env.NODE_ENV !== "production" && ((s = e.onTrack) == null || s.call(e, Ee({ effect: e }, n)));
193
- }
194
- }
195
- const ye = [];
196
- function dt(e, t, n) {
197
- var s;
198
- ke();
199
- for (const i of e.keys()) {
200
- let r;
201
- i._dirtyLevel < t && (r ?? (r = e.get(i) === i._trackId)) && (i._shouldSchedule || (i._shouldSchedule = i._dirtyLevel === 0), i._dirtyLevel = t), i._shouldSchedule && (r ?? (r = e.get(i) === i._trackId)) && (process.env.NODE_ENV !== "production" && ((s = i.onTrigger) == null || s.call(i, Ee({ effect: i }, n))), i.trigger(), (!i._runnings || i.allowRecurse) && i._dirtyLevel !== 2 && (i._shouldSchedule = !1, i.scheduler && ye.push(i.scheduler)));
202
- }
203
- je();
204
- }
205
- const ht = (e, t) => {
206
- const n = /* @__PURE__ */ new Map();
207
- return n.cleanup = e, n.computed = t, n;
208
- }, he = /* @__PURE__ */ new WeakMap(), K = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), Oe = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
209
- function N(e, t, n) {
210
- if (O && F) {
211
- let s = he.get(e);
212
- s || he.set(e, s = /* @__PURE__ */ new Map());
213
- let i = s.get(n);
214
- i || s.set(n, i = ht(() => s.delete(n))), ft(
215
- F,
216
- i,
217
- process.env.NODE_ENV !== "production" ? {
218
- target: e,
219
- type: t,
220
- key: n
221
- } : void 0
222
- );
223
- }
224
- }
225
- function H(e, t, n, s, i, r) {
226
- const o = he.get(e);
227
- if (!o)
228
- return;
229
- let a = [];
230
- if (t === "clear")
231
- a = [...o.values()];
232
- else if (n === "length" && D(e)) {
233
- const l = Number(s);
234
- o.forEach((_, w) => {
235
- (w === "length" || !te(w) && w >= l) && a.push(_);
236
- });
237
- } else
238
- switch (n !== void 0 && a.push(o.get(n)), t) {
239
- case "add":
240
- D(e) ? Le(n) && a.push(o.get("length")) : (a.push(o.get(K)), z(e) && a.push(o.get(Oe)));
241
- break;
242
- case "delete":
243
- D(e) || (a.push(o.get(K)), z(e) && a.push(o.get(Oe)));
244
- break;
245
- case "set":
246
- z(e) && a.push(o.get(K));
247
- break;
248
- }
249
- ke();
250
- for (const l of a)
251
- l && dt(
252
- l,
253
- 4,
254
- process.env.NODE_ENV !== "production" ? {
255
- target: e,
256
- type: t,
257
- key: n,
258
- newValue: s,
259
- oldValue: i,
260
- oldTarget: r
261
- } : void 0
262
- );
263
- je();
264
- }
265
- function nn(e, t) {
266
- const n = he.get(e);
267
- return n && n.get(t);
268
- }
269
- const sn = /* @__PURE__ */ Ft("__proto__,__v_isRef,__isVue"), pt = new Set(
270
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(te)
271
- ), tt = /* @__PURE__ */ rn();
272
- function rn() {
273
- const e = {};
274
- return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
275
- e[t] = function(...n) {
276
- const s = d(this);
277
- for (let r = 0, o = this.length; r < o; r++)
278
- N(s, "get", r + "");
279
- const i = s[t](...n);
280
- return i === -1 || i === !1 ? s[t](...n.map(d)) : i;
281
- };
282
- }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
283
- e[t] = function(...n) {
284
- Me(), ke();
285
- const s = d(this)[t].apply(this, n);
286
- return je(), We(), s;
287
- };
288
- }), e;
289
- }
290
- function on(e) {
291
- te(e) || (e = String(e));
292
- const t = d(this);
293
- return N(t, "has", e), t.hasOwnProperty(e);
294
- }
295
- class vt {
296
- constructor(t = !1, n = !1) {
297
- this._isReadonly = t, this._isShallow = n;
298
- }
299
- get(t, n, s) {
300
- const i = this._isReadonly, r = this._isShallow;
301
- if (n === "__v_isReactive")
302
- return !i;
303
- if (n === "__v_isReadonly")
304
- return i;
305
- if (n === "__v_isShallow")
306
- return r;
307
- if (n === "__v_raw")
308
- return s === (i ? r ? bt : Tt : r ? mt : wt).get(t) || // receiver is not the reactive proxy, but has the same prototype
309
- // this means the reciever is a user proxy of the reactive proxy
310
- Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
311
- const o = D(t);
312
- if (!i) {
313
- if (o && fe(tt, n))
314
- return Reflect.get(tt, n, s);
315
- if (n === "hasOwnProperty")
316
- return on;
317
- }
318
- const a = Reflect.get(t, n, s);
319
- return (te(n) ? pt.has(n) : sn(n)) || (i || N(t, "get", n), r) ? a : T(a) ? o && Le(n) ? a : a.value : $(a) ? i ? Rt(a) : Nt(a) : a;
320
- }
321
- }
322
- class _t extends vt {
323
- constructor(t = !1) {
324
- super(!1, t);
325
- }
326
- set(t, n, s, i) {
327
- let r = t[n];
328
- if (!this._isShallow) {
329
- const l = Z(r);
330
- if (!pe(s) && !Z(s) && (r = d(r), s = d(s)), !D(t) && T(r) && !T(s))
331
- return l ? !1 : (r.value = s, !0);
332
- }
333
- const o = D(t) && Le(n) ? Number(n) < t.length : fe(t, n), a = Reflect.set(t, n, s, i);
334
- return t === d(i) && (o ? M(s, r) && H(t, "set", n, s, r) : H(t, "add", n, s)), a;
335
- }
336
- deleteProperty(t, n) {
337
- const s = fe(t, n), i = t[n], r = Reflect.deleteProperty(t, n);
338
- return r && s && H(t, "delete", n, void 0, i), r;
339
- }
340
- has(t, n) {
341
- const s = Reflect.has(t, n);
342
- return (!te(n) || !pt.has(n)) && N(t, "has", n), s;
343
- }
344
- ownKeys(t) {
345
- return N(
346
- t,
347
- "iterate",
348
- D(t) ? "length" : K
349
- ), Reflect.ownKeys(t);
350
- }
351
- }
352
- class gt extends vt {
353
- constructor(t = !1) {
354
- super(!0, t);
355
- }
356
- set(t, n) {
357
- return process.env.NODE_ENV !== "production" && C(
358
- `Set operation on key "${String(n)}" failed: target is readonly.`,
359
- t
360
- ), !0;
361
- }
362
- deleteProperty(t, n) {
363
- return process.env.NODE_ENV !== "production" && C(
364
- `Delete operation on key "${String(n)}" failed: target is readonly.`,
365
- t
366
- ), !0;
367
- }
368
- }
369
- const cn = /* @__PURE__ */ new _t(), an = /* @__PURE__ */ new gt(), un = /* @__PURE__ */ new _t(
370
- !0
371
- ), ln = /* @__PURE__ */ new gt(!0), Fe = (e) => e, me = (e) => Reflect.getPrototypeOf(e);
372
- function ie(e, t, n = !1, s = !1) {
373
- e = e.__v_raw;
374
- const i = d(e), r = d(t);
375
- n || (M(t, r) && N(i, "get", t), N(i, "get", r));
376
- const { has: o } = me(i), a = s ? Fe : n ? Ke : ee;
377
- if (o.call(i, t))
378
- return a(e.get(t));
379
- if (o.call(i, r))
380
- return a(e.get(r));
381
- e !== i && e.get(t);
382
- }
383
- function re(e, t = !1) {
384
- const n = this.__v_raw, s = d(n), i = d(e);
385
- return t || (M(e, i) && N(s, "has", e), N(s, "has", i)), e === i ? n.has(e) : n.has(e) || n.has(i);
386
- }
387
- function oe(e, t = !1) {
388
- return e = e.__v_raw, !t && N(d(e), "iterate", K), Reflect.get(e, "size", e);
389
- }
390
- function nt(e) {
391
- e = d(e);
392
- const t = d(this);
393
- return me(t).has.call(t, e) || (t.add(e), H(t, "add", e, e)), this;
394
- }
395
- function st(e, t) {
396
- t = d(t);
397
- const n = d(this), { has: s, get: i } = me(n);
398
- let r = s.call(n, e);
399
- r ? process.env.NODE_ENV !== "production" && Et(n, s, e) : (e = d(e), r = s.call(n, e));
400
- const o = i.call(n, e);
401
- return n.set(e, t), r ? M(t, o) && H(n, "set", e, t, o) : H(n, "add", e, t), this;
402
- }
403
- function it(e) {
404
- const t = d(this), { has: n, get: s } = me(t);
405
- let i = n.call(t, e);
406
- i ? process.env.NODE_ENV !== "production" && Et(t, n, e) : (e = d(e), i = n.call(t, e));
407
- const r = s ? s.call(t, e) : void 0, o = t.delete(e);
408
- return i && H(t, "delete", e, void 0, r), o;
409
- }
410
- function rt() {
411
- const e = d(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? z(e) ? new Map(e) : new Set(e) : void 0, s = e.clear();
412
- return t && H(e, "clear", void 0, void 0, n), s;
413
- }
414
- function ce(e, t) {
415
- return function(s, i) {
416
- const r = this, o = r.__v_raw, a = d(o), l = t ? Fe : e ? Ke : ee;
417
- return !e && N(a, "iterate", K), o.forEach((_, w) => s.call(i, l(_), l(w), r));
418
- };
419
- }
420
- function ae(e, t, n) {
421
- return function(...s) {
422
- const i = this.__v_raw, r = d(i), o = z(r), a = e === "entries" || e === Symbol.iterator && o, l = e === "keys" && o, _ = i[e](...s), w = n ? Fe : t ? Ke : ee;
423
- return !t && N(
424
- r,
425
- "iterate",
426
- l ? Oe : K
427
- ), {
428
- // iterator protocol
429
- next() {
430
- const { value: g, done: A } = _.next();
431
- return A ? { value: g, done: A } : {
432
- value: a ? [w(g[0]), w(g[1])] : w(g),
433
- done: A
434
- };
435
- },
436
- // iterable protocol
437
- [Symbol.iterator]() {
438
- return this;
439
- }
440
- };
441
- };
442
- }
443
- function I(e) {
444
- return function(...t) {
445
- if (process.env.NODE_ENV !== "production") {
446
- const n = t[0] ? `on key "${t[0]}" ` : "";
447
- C(
448
- `${Qt(e)} operation ${n}failed: target is readonly.`,
449
- d(this)
450
- );
451
- }
452
- return e === "delete" ? !1 : e === "clear" ? void 0 : this;
453
- };
454
- }
455
- function fn() {
456
- const e = {
457
- get(r) {
458
- return ie(this, r);
459
- },
460
- get size() {
461
- return oe(this);
462
- },
463
- has: re,
464
- add: nt,
465
- set: st,
466
- delete: it,
467
- clear: rt,
468
- forEach: ce(!1, !1)
469
- }, t = {
470
- get(r) {
471
- return ie(this, r, !1, !0);
472
- },
473
- get size() {
474
- return oe(this);
475
- },
476
- has: re,
477
- add: nt,
478
- set: st,
479
- delete: it,
480
- clear: rt,
481
- forEach: ce(!1, !0)
482
- }, n = {
483
- get(r) {
484
- return ie(this, r, !0);
485
- },
486
- get size() {
487
- return oe(this, !0);
488
- },
489
- has(r) {
490
- return re.call(this, r, !0);
491
- },
492
- add: I("add"),
493
- set: I("set"),
494
- delete: I("delete"),
495
- clear: I("clear"),
496
- forEach: ce(!0, !1)
497
- }, s = {
498
- get(r) {
499
- return ie(this, r, !0, !0);
500
- },
501
- get size() {
502
- return oe(this, !0);
503
- },
504
- has(r) {
505
- return re.call(this, r, !0);
506
- },
507
- add: I("add"),
508
- set: I("set"),
509
- delete: I("delete"),
510
- clear: I("clear"),
511
- forEach: ce(!0, !0)
512
- };
513
- return [
514
- "keys",
515
- "values",
516
- "entries",
517
- Symbol.iterator
518
- ].forEach((r) => {
519
- e[r] = ae(r, !1, !1), n[r] = ae(r, !0, !1), t[r] = ae(r, !1, !0), s[r] = ae(
520
- r,
521
- !0,
522
- !0
523
- );
524
- }), [
525
- e,
526
- n,
527
- t,
528
- s
529
- ];
530
- }
531
- const [
532
- dn,
533
- hn,
534
- pn,
535
- vn
536
- ] = /* @__PURE__ */ fn();
537
- function Te(e, t) {
538
- const n = t ? e ? vn : pn : e ? hn : dn;
539
- return (s, i, r) => i === "__v_isReactive" ? !e : i === "__v_isReadonly" ? e : i === "__v_raw" ? s : Reflect.get(
540
- fe(n, i) && i in s ? n : s,
541
- i,
542
- r
543
- );
544
- }
545
- const _n = {
546
- get: /* @__PURE__ */ Te(!1, !1)
547
- }, gn = {
548
- get: /* @__PURE__ */ Te(!1, !0)
549
- }, En = {
550
- get: /* @__PURE__ */ Te(!0, !1)
551
- }, wn = {
552
- get: /* @__PURE__ */ Te(!0, !0)
553
- };
554
- function Et(e, t, n) {
555
- const s = d(n);
556
- if (s !== n && t.call(e, s)) {
557
- const i = ct(e);
558
- C(
559
- `Reactive ${i} contains both the raw and reactive versions of the same object${i === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
560
- );
561
- }
562
- }
563
- const wt = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap();
564
- function mn(e) {
565
- switch (e) {
566
- case "Object":
567
- case "Array":
568
- return 1;
569
- case "Map":
570
- case "Set":
571
- case "WeakMap":
572
- case "WeakSet":
573
- return 2;
574
- default:
575
- return 0;
576
- }
577
- }
578
- function Tn(e) {
579
- return e.__v_skip || !Object.isExtensible(e) ? 0 : mn(ct(e));
580
- }
581
- function Nt(e) {
582
- return Z(e) ? e : be(
583
- e,
584
- !1,
585
- cn,
586
- _n,
587
- wt
588
- );
589
- }
590
- function bn(e) {
591
- return be(
592
- e,
593
- !1,
594
- un,
595
- gn,
596
- mt
597
- );
598
- }
599
- function Rt(e) {
600
- return be(
601
- e,
602
- !0,
603
- an,
604
- En,
605
- Tt
606
- );
607
- }
608
- function ss(e) {
609
- return be(
610
- e,
611
- !0,
612
- ln,
613
- wn,
614
- bt
615
- );
616
- }
617
- function be(e, t, n, s, i) {
618
- if (!$(e))
619
- return process.env.NODE_ENV !== "production" && C(`value cannot be made reactive: ${String(e)}`), e;
620
- if (e.__v_raw && !(t && e.__v_isReactive))
621
- return e;
622
- const r = i.get(e);
623
- if (r)
624
- return r;
625
- const o = Tn(e);
626
- if (o === 0)
627
- return e;
628
- const a = new Proxy(
629
- e,
630
- o === 2 ? s : n
631
- );
632
- return i.set(e, a), a;
633
- }
634
- function q(e) {
635
- return Z(e) ? q(e.__v_raw) : !!(e && e.__v_isReactive);
636
- }
637
- function Z(e) {
638
- return !!(e && e.__v_isReadonly);
639
- }
640
- function pe(e) {
641
- return !!(e && e.__v_isShallow);
642
- }
643
- function Nn(e) {
644
- return e ? !!e.__v_raw : !1;
645
- }
646
- function d(e) {
647
- const t = e && e.__v_raw;
648
- return t ? d(t) : e;
649
- }
650
- function is(e) {
651
- return Object.isExtensible(e) && Xt(e, "__v_skip", !0), e;
652
- }
653
- const ee = (e) => $(e) ? Nt(e) : e, Ke = (e) => $(e) ? Rt(e) : e, Rn = "Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";
654
- class Dt {
655
- constructor(t, n, s, i) {
656
- this.getter = t, this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this.effect = new de(
657
- () => t(this._value),
658
- () => G(
659
- this,
660
- this.effect._dirtyLevel === 2 ? 2 : 3
661
- )
662
- ), this.effect.computed = this, this.effect.active = this._cacheable = !i, this.__v_isReadonly = s;
663
- }
664
- get value() {
665
- const t = d(this);
666
- return (!t._cacheable || t.effect.dirty) && M(t._value, t._value = t.effect.run()) && G(t, 4), $e(t), t.effect._dirtyLevel >= 2 && (process.env.NODE_ENV !== "production" && this._warnRecursive && C(Rn, `
667
-
668
- getter: `, this.getter), G(t, 2)), t._value;
669
- }
670
- set value(t) {
671
- this._setter(t);
672
- }
673
- // #region polyfill _dirty for backward compatibility third party code for Vue <= 3.3.x
674
- get _dirty() {
675
- return this.effect.dirty;
676
- }
677
- set _dirty(t) {
678
- this.effect.dirty = t;
679
- }
680
- // #endregion
681
- }
682
- function v(e, t, n = !1) {
683
- let s, i;
684
- const r = y(e);
685
- r ? (s = e, i = process.env.NODE_ENV !== "production" ? () => {
686
- C("Write operation failed: computed value is readonly");
687
- } : X) : (s = e.get, i = e.set);
688
- const o = new Dt(s, i, r || !i, n);
689
- return process.env.NODE_ENV !== "production" && t && !n && (o.effect.onTrack = t.onTrack, o.effect.onTrigger = t.onTrigger), o;
690
- }
691
- function $e(e) {
692
- var t;
693
- O && F && (e = d(e), ft(
694
- F,
695
- (t = e.dep) != null ? t : e.dep = ht(
696
- () => e.dep = void 0,
697
- e instanceof Dt ? e : void 0
698
- ),
699
- process.env.NODE_ENV !== "production" ? {
700
- target: e,
701
- type: "get",
702
- key: "value"
703
- } : void 0
704
- ));
705
- }
706
- function G(e, t = 4, n) {
707
- e = d(e);
708
- const s = e.dep;
709
- s && dt(
710
- s,
711
- t,
712
- process.env.NODE_ENV !== "production" ? {
713
- target: e,
714
- type: "set",
715
- key: "value",
716
- newValue: n
717
- } : void 0
718
- );
719
- }
720
- function T(e) {
721
- return !!(e && e.__v_isRef === !0);
722
- }
723
- function ne(e) {
724
- return St(e, !1);
725
- }
726
- function h(e) {
727
- return St(e, !0);
728
- }
729
- function St(e, t) {
730
- return T(e) ? e : new Dn(e, t);
731
- }
732
- class Dn {
733
- constructor(t, n) {
734
- this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : d(t), this._value = n ? t : ee(t);
735
- }
736
- get value() {
737
- return $e(this), this._value;
738
- }
739
- set value(t) {
740
- const n = this.__v_isShallow || pe(t) || Z(t);
741
- t = n ? t : d(t), M(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : ee(t), G(this, 4, t));
742
- }
743
- }
744
- function rs(e) {
745
- G(e, 4, process.env.NODE_ENV !== "production" ? e.value : void 0);
746
- }
747
- function yt(e) {
748
- return T(e) ? e.value : e;
749
- }
750
- function c(e) {
751
- return y(e) ? e() : yt(e);
752
- }
753
- const Sn = {
754
- get: (e, t, n) => yt(Reflect.get(e, t, n)),
755
- set: (e, t, n, s) => {
756
- const i = e[t];
757
- return T(i) && !T(n) ? (i.value = n, !0) : Reflect.set(e, t, n, s);
758
- }
759
- };
760
- function os(e) {
761
- return q(e) ? e : new Proxy(e, Sn);
762
- }
763
- class yn {
764
- constructor(t) {
765
- this.dep = void 0, this.__v_isRef = !0;
766
- const { get: n, set: s } = t(
767
- () => $e(this),
768
- () => G(this)
769
- );
770
- this._get = n, this._set = s;
771
- }
772
- get value() {
773
- return this._get();
774
- }
775
- set value(t) {
776
- this._set(t);
777
- }
778
- }
779
- function cs(e) {
780
- return new yn(e);
781
- }
782
- function as(e) {
783
- process.env.NODE_ENV !== "production" && !Nn(e) && C("toRefs() expects a reactive object but received a plain one.");
784
- const t = D(e) ? new Array(e.length) : {};
785
- for (const n in e)
786
- t[n] = Ot(e, n);
787
- return t;
788
- }
789
- class On {
790
- constructor(t, n, s) {
791
- this._object = t, this._key = n, this._defaultValue = s, this.__v_isRef = !0;
792
- }
793
- get value() {
794
- const t = this._object[this._key];
795
- return t === void 0 ? this._defaultValue : t;
796
- }
797
- set value(t) {
798
- this._object[this._key] = t;
799
- }
800
- get dep() {
801
- return nn(d(this._object), this._key);
802
- }
803
- }
804
- class Cn {
805
- constructor(t) {
806
- this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0;
807
- }
808
- get value() {
809
- return this._getter();
810
- }
811
- }
812
- function us(e, t, n) {
813
- return T(e) ? e : y(e) ? new Cn(e) : $(e) && arguments.length > 1 ? Ot(e, t, n) : ne(e);
814
- }
815
- function Ot(e, t, n) {
816
- const s = e[t];
817
- return T(s) ? s : new On(e, t, n);
818
- }
819
- const ls = v, fs = {
820
- GET: "get",
821
- HAS: "has",
822
- ITERATE: "iterate"
823
- }, ds = {
824
- SET: "set",
825
- ADD: "add",
826
- DELETE: "delete",
827
- CLEAR: "clear"
828
- }, An = {
829
- SKIP: "__v_skip",
830
- IS_REACTIVE: "__v_isReactive",
831
- IS_READONLY: "__v_isReadonly",
832
- IS_SHALLOW: "__v_isShallow",
833
- RAW: "__v_raw"
834
- };
835
- function V(e, ...t) {
836
- Me();
837
- const n = [`[Vue warn]: ${e}`, ...t];
838
- console.warn(...n), We();
839
- }
840
- var Ce = /* @__PURE__ */ ((e) => (e.ACTIVATED = "a", e.DEACTIVATED = "da", e))(Ce || {}), x = /* @__PURE__ */ ((e) => (e[e.SETUP_FUNCTION = 0] = "SETUP_FUNCTION", e[e.RENDER_FUNCTION = 1] = "RENDER_FUNCTION", e[e.WATCH_GETTER = 2] = "WATCH_GETTER", e[e.WATCH_CALLBACK = 3] = "WATCH_CALLBACK", e[e.WATCH_CLEANUP = 4] = "WATCH_CLEANUP", e[e.NATIVE_EVENT_HANDLER = 5] = "NATIVE_EVENT_HANDLER", e[e.COMPONENT_EVENT_HANDLER = 6] = "COMPONENT_EVENT_HANDLER", e[e.VNODE_HOOK = 7] = "VNODE_HOOK", e[e.DIRECTIVE_HOOK = 8] = "DIRECTIVE_HOOK", e[e.TRANSITION_HOOK = 9] = "TRANSITION_HOOK", e[e.APP_ERROR_HANDLER = 10] = "APP_ERROR_HANDLER", e[e.APP_WARN_HANDLER = 11] = "APP_WARN_HANDLER", e[e.FUNCTION_REF = 12] = "FUNCTION_REF", e[e.ASYNC_COMPONENT_LOADER = 13] = "ASYNC_COMPONENT_LOADER", e[e.SCHEDULER = 14] = "SCHEDULER", e))(x || {});
841
- const In = {
842
- [Ce.ACTIVATED]: "activated hook",
843
- [Ce.DEACTIVATED]: "deactivated hook",
844
- 0: "setup function",
845
- 1: "render function",
846
- 2: "watcher getter",
847
- 3: "watcher callback",
848
- 4: "watcher cleanup function",
849
- 5: "native event handler",
850
- 6: "component event handler",
851
- 7: "vnode hook",
852
- 8: "directive hook",
853
- 9: "transition hook",
854
- 10: "app errorHandler",
855
- 11: "app warnHandler",
856
- 12: "ref function",
857
- 13: "async component loader",
858
- 14: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."
859
- };
860
- function Q(e, t, n, s) {
861
- try {
862
- return s ? e(...s) : e();
863
- } catch (i) {
864
- Ue(i, t, n);
865
- }
866
- }
867
- function Ae(e, t, n, s) {
868
- if (y(e)) {
869
- const i = Q(e, t, n, s);
870
- return i && Bt(i) && i.catch((r) => {
871
- Ue(r, t, n);
872
- }), i;
873
- }
874
- if (D(e)) {
875
- const i = [];
876
- for (let r = 0; r < e.length; r++)
877
- i.push(Ae(e[r], t, n, s));
878
- return i;
879
- } else
880
- process.env.NODE_ENV !== "production" && V(
881
- `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
882
- );
883
- }
884
- function Ue(e, t, n, s = !0) {
885
- Vn(e, n, null, s);
886
- }
887
- function Vn(e, t, n, s = !0) {
888
- if (process.env.NODE_ENV !== "production") {
889
- const i = In[t];
890
- if (V(`Unhandled error${i ? ` during execution of ${i}` : ""}`), s)
891
- throw e;
892
- console.error(e);
893
- } else
894
- console.error(e);
895
- }
896
- let ve = !1, Ie = !1;
897
- const R = [];
898
- let L = 0;
899
- const Ct = /* @__PURE__ */ Promise.resolve();
900
- let ze = null;
901
- const xn = 100;
902
- function hs(e) {
903
- const t = ze || Ct;
904
- return e ? t.then(this ? e.bind(this) : e) : t;
905
- }
906
- function Ln(e) {
907
- let t = L + 1, n = R.length;
908
- for (; t < n; ) {
909
- const s = t + n >>> 1, i = R[s], r = Ve(i);
910
- r < e || r === e && i.pre ? t = s + 1 : n = s;
911
- }
912
- return t;
913
- }
914
- function Pn(e) {
915
- (!R.length || !R.includes(
916
- e,
917
- ve && e.allowRecurse ? L + 1 : L
918
- )) && (e.id == null ? R.push(e) : R.splice(Ln(e.id), 0, e), Hn());
919
- }
920
- function Hn() {
921
- !ve && !Ie && (Ie = !0, ze = Ct.then(At));
922
- }
923
- const Ve = (e) => e.id == null ? 1 / 0 : e.id, Mn = (e, t) => {
924
- const n = Ve(e) - Ve(t);
925
- if (n === 0) {
926
- if (e.pre && !t.pre)
927
- return -1;
928
- if (t.pre && !e.pre)
929
- return 1;
930
- }
931
- return n;
932
- };
933
- function At(e) {
934
- Ie = !1, ve = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), R.sort(Mn);
935
- const t = process.env.NODE_ENV !== "production" ? (n) => Wn(e, n) : X;
936
- try {
937
- for (L = 0; L < R.length; L++) {
938
- const n = R[L];
939
- if (n && n.active !== !1) {
940
- if (process.env.NODE_ENV !== "production" && t(n))
941
- continue;
942
- Q(n, null, x.SCHEDULER);
943
- }
944
- }
945
- } finally {
946
- L = 0, R.length = 0, ve = !1, ze = null, R.length && At(e);
947
- }
948
- }
949
- function Wn(e, t) {
950
- if (!e.has(t))
951
- e.set(t, 1);
952
- else {
953
- const n = e.get(t);
954
- if (n > xn)
955
- return Ue(
956
- "Maximum recursive updates exceeded. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.",
957
- null,
958
- x.APP_ERROR_HANDLER
959
- ), !0;
960
- e.set(t, n + 1);
961
- }
962
- }
963
- function S(e, t) {
964
- return Ge(e, null, t);
965
- }
966
- function ps(e, t) {
967
- return Ge(
968
- e,
969
- null,
970
- process.env.NODE_ENV !== "production" ? Ee({}, t, { flush: "sync" }) : { flush: "sync" }
971
- );
972
- }
973
- const ue = {};
974
- function W(e, t, n) {
975
- return process.env.NODE_ENV !== "production" && !y(t) && V(
976
- "`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
977
- ), Ge(e, t, n);
978
- }
979
- function Ge(e, t, {
980
- immediate: n,
981
- deep: s,
982
- flush: i,
983
- once: r,
984
- onTrack: o,
985
- onTrigger: a
986
- } = Kt) {
987
- if (t && r) {
988
- const p = t;
989
- t = (...Re) => {
990
- p(...Re), Je();
991
- };
992
- }
993
- process.env.NODE_ENV !== "production" && s !== void 0 && typeof s == "number" && V(
994
- 'watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'
995
- ), process.env.NODE_ENV !== "production" && !t && (n !== void 0 && V(
996
- 'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
997
- ), s !== void 0 && V(
998
- 'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
999
- ), r !== void 0 && V(
1000
- 'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
1001
- ));
1002
- const l = (p) => {
1003
- V(
1004
- "Invalid watch source: ",
1005
- p,
1006
- "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
1007
- );
1008
- }, _ = null, w = (p) => s === !0 ? p : (
1009
- // for deep: false, only traverse root-level properties
1010
- j(p, s === !1 ? 1 : void 0)
1011
- );
1012
- let g, A = !1, se = !1;
1013
- if (T(e) ? (g = () => e.value, A = pe(e)) : q(e) ? (g = () => w(e), A = !0) : D(e) ? (se = !0, A = e.some((p) => q(p) || pe(p)), g = () => e.map((p) => {
1014
- if (T(p))
1015
- return p.value;
1016
- if (q(p))
1017
- return w(p);
1018
- if (y(p))
1019
- return Q(p, _, x.WATCH_GETTER);
1020
- process.env.NODE_ENV !== "production" && l(p);
1021
- })) : y(e) ? t ? g = () => Q(e, _, x.WATCH_GETTER) : g = () => (U && U(), Ae(
1022
- e,
1023
- _,
1024
- x.WATCH_CALLBACK,
1025
- [Be]
1026
- )) : (g = X, process.env.NODE_ENV !== "production" && l(e)), t && s) {
1027
- const p = g;
1028
- g = () => j(p());
1029
- }
1030
- let U, Be = (p) => {
1031
- U = b.onStop = () => {
1032
- Q(p, _, x.WATCH_CLEANUP), U = b.onStop = void 0;
1033
- };
1034
- }, k = se ? new Array(e.length).fill(ue) : ue;
1035
- const Y = () => {
1036
- if (!(!b.active || !b.dirty))
1037
- if (t) {
1038
- const p = b.run();
1039
- (s || A || (se ? p.some((Re, Mt) => M(Re, k[Mt])) : M(p, k))) && (U && U(), Ae(t, _, x.WATCH_CALLBACK, [
1040
- p,
1041
- // pass undefined as the old value when it's changed for the first time
1042
- k === ue ? void 0 : se && k[0] === ue ? [] : k,
1043
- Be
1044
- ]), k = p);
1045
- } else
1046
- b.run();
1047
- };
1048
- Y.allowRecurse = !!t;
1049
- let Ne;
1050
- i === "sync" ? Ne = Y : (Y.pre = !0, Ne = () => Pn(Y));
1051
- const b = new de(g, X, Ne), Ye = Pe(), Je = () => {
1052
- b.stop(), Ye && $t(Ye.effects, b);
1053
- };
1054
- return process.env.NODE_ENV !== "production" && (b.onTrack = o, b.onTrigger = a), t ? n ? Y() : k = b.run() : b.run(), Je;
1055
- }
1056
- function j(e, t = 1 / 0, n) {
1057
- if (t <= 0 || !$(e) || e[An.SKIP] || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
1058
- return e;
1059
- if (n.add(e), t--, T(e))
1060
- j(e.value, t, n);
1061
- else if (D(e))
1062
- for (let s = 0; s < e.length; s++)
1063
- j(e[s], t, n);
1064
- else if (zt(e) || z(e))
1065
- e.forEach((s) => {
1066
- j(s, t, n);
1067
- });
1068
- else if (Jt(e)) {
1069
- for (const s in e)
1070
- j(e[s], t, n);
1071
- for (const s of Object.getOwnPropertySymbols(e))
1072
- Object.prototype.propertyIsEnumerable.call(e, s) && j(e[s], t, n);
1073
- }
1074
- return e;
1075
- }
1076
- function kn(e) {
1077
- return Pe() ? (ut(e), !0) : !1;
1078
- }
1079
- function It(e, t) {
7
+ function L(e, t) {
1080
8
  const n = /* @__PURE__ */ new Map();
1081
- return (...s) => {
1082
- const i = t(...s);
1083
- let r = n.get(i);
1084
- return r ? r.refCount++ : (r = {
1085
- data: e(...s),
9
+ return (...r) => {
10
+ const i = t(...r);
11
+ let o = n.get(i);
12
+ return o ? o.refCount++ : (o = {
13
+ data: e(...r),
1086
14
  refCount: 1
1087
- }, n.set(i, r)), kn(() => {
1088
- --r.refCount === 0 && n.delete(i);
1089
- }), r.data;
15
+ }, n.set(i, o)), G(() => {
16
+ --o.refCount === 0 && n.delete(i);
17
+ }), o.data;
1090
18
  };
1091
19
  }
1092
- function E(e) {
20
+ function v(e) {
1093
21
  let t;
1094
22
  return () => t ?? (t = e());
1095
23
  }
1096
- const Vt = [];
1097
- function vs(e) {
1098
- Vt.push(e);
24
+ const W = [];
25
+ function le(e) {
26
+ W.push(e);
1099
27
  }
1100
- const _e = h(null), xe = en();
1101
- function _s(e) {
28
+ const S = l(null), k = H();
29
+ function de(e) {
1102
30
  return {
1103
31
  activate: (t) => {
1104
- _e.value = t, xe.run(() => {
1105
- xt.map((n) => n(t)), e();
32
+ S.value = t, k.run(() => {
33
+ I.map((n) => n(t)), e();
1106
34
  });
1107
35
  },
1108
36
  deactivate: () => {
1109
- Vt.map((t) => t()), xe.stop();
37
+ W.map((t) => t()), k.stop();
1110
38
  }
1111
39
  };
1112
40
  }
1113
- const xt = [];
1114
- function jn(e) {
1115
- _e.value ? e(_e.value) : xt.push(e);
41
+ const I = [];
42
+ function O(e) {
43
+ S.value ? e(S.value) : I.push(e);
1116
44
  }
1117
- function gs(e, t, n) {
1118
- const s = P.getConfiguration(e, n);
1119
- function i(o, a) {
1120
- const l = h(a);
1121
- return l.update = async (_, w, g) => {
1122
- await s.update(o, _, w, g), l.value = _;
1123
- }, l;
45
+ function fe(e, t, n) {
46
+ const r = m.getConfiguration(e, n);
47
+ function i(u, g) {
48
+ const f = l(g);
49
+ return f.update = async (C, j, B) => {
50
+ await r.update(u, C, j, B), f.value = C;
51
+ }, f;
1124
52
  }
1125
- const r = Object.fromEntries(
1126
- Object.keys(t).map((o) => [o, i(o, s.get(o))])
53
+ const o = Object.fromEntries(
54
+ Object.keys(t).map((u) => [u, i(u, r.get(u))])
1127
55
  );
1128
- return jn(() => {
1129
- u(P.onDidChangeConfiguration((o) => {
1130
- if (!o.affectsConfiguration(e))
56
+ return O(() => {
57
+ s(m.onDidChangeConfiguration((u) => {
58
+ if (!u.affectsConfiguration(e))
1131
59
  return;
1132
- const a = P.getConfiguration(e);
1133
- for (const l in t)
1134
- o.affectsConfiguration(`${e}.${l}`) && (r[l].value = a.get(l));
60
+ const g = m.getConfiguration(e);
61
+ for (const f in t)
62
+ u.affectsConfiguration(`${e}.${f}`) && (o[f].value = g.get(f));
1135
63
  }));
1136
- }), r;
64
+ }), o;
65
+ }
66
+ function ve(e, t) {
67
+ const n = l(null), r = [], i = (o) => (...u) => n.value ? n.value[o](...u) : (r.push([o, u]), null);
68
+ return O(() => {
69
+ n.value = ie(e, t);
70
+ for (const [o, u] of r)
71
+ n.value[o](...u);
72
+ }), {
73
+ logger: n,
74
+ outputChannel: d(() => {
75
+ var o;
76
+ return (o = n.value) == null ? void 0 : o.outputChannel;
77
+ }),
78
+ info: i("info"),
79
+ warn: i("warn"),
80
+ error: i("error"),
81
+ append: i("append"),
82
+ appendLine: i("appendLine"),
83
+ replace: i("replace"),
84
+ clear: i("clear"),
85
+ show: i("show"),
86
+ hide: i("hide")
87
+ };
1137
88
  }
1138
- function Es(e, ...t) {
1139
- return ge.executeCommand(e, ...t);
89
+ function ge(e, ...t) {
90
+ return E.executeCommand(e, ...t);
1140
91
  }
1141
- function Fn(e, t = !1) {
1142
- const n = _e.value;
92
+ function Q(e, t = !1) {
93
+ const n = S.value;
1143
94
  if (!n && !t)
1144
95
  throw new Error("Cannot get absolute path because the extension is not activated yet");
1145
96
  return n == null ? void 0 : n.asAbsolutePath(e);
1146
97
  }
1147
- function ws(e, t = !1) {
1148
- return v(() => Fn(c(e), t));
98
+ function he(e, t = !1) {
99
+ return d(() => Q(a(e), t));
1149
100
  }
1150
- function u(e) {
1151
- return (Pe() ?? xe).cleanups.push(e.dispose.bind(e)), e;
101
+ function s(e) {
102
+ return (A() ?? k).cleanups.push(e.dispose.bind(e)), e;
1152
103
  }
1153
- const Kn = E(() => {
1154
- const e = h(f.activeColorTheme);
1155
- return u(f.onDidChangeActiveColorTheme((t) => {
104
+ const X = v(() => {
105
+ const e = l(c.activeColorTheme);
106
+ return s(c.onDidChangeActiveColorTheme((t) => {
1156
107
  e.value = t;
1157
108
  })), e;
1158
- }), ms = E(() => {
1159
- const e = h(qe.activeDebugSession);
1160
- return u(qe.onDidChangeActiveDebugSession((t) => {
109
+ }), me = v(() => {
110
+ const e = l(y.activeDebugSession);
111
+ return s(y.onDidChangeActiveDebugSession((t) => {
1161
112
  e.value = t;
1162
- })), v(() => e.value);
1163
- }), $n = E(() => {
1164
- const e = h(f.activeTextEditor);
1165
- return u(f.onDidChangeActiveTextEditor((t) => {
113
+ })), d(() => e.value);
114
+ }), Z = v(() => {
115
+ const e = l(c.activeTextEditor);
116
+ return s(c.onDidChangeActiveTextEditor((t) => {
1166
117
  e.value = t;
1167
118
  })), e;
1168
119
  });
1169
- function Un(e, t, n) {
1170
- const s = "key" in t ? t : f.createTextEditorDecorationType(t);
1171
- S(() => {
120
+ function _(e, t, n) {
121
+ const r = "key" in t ? t : c.createTextEditorDecorationType(t);
122
+ h(() => {
1172
123
  var i;
1173
- (i = c(e)) == null || i.setDecorations(s, c(n));
124
+ (i = a(e)) == null || i.setDecorations(r, a(n));
1174
125
  });
1175
126
  }
1176
- function Ts(e, t) {
1177
- const n = $n();
1178
- Un(n, e, t);
127
+ function be(e, t) {
128
+ const n = Z();
129
+ _(n, e, t);
1179
130
  }
1180
- const bs = E(() => {
1181
- const e = h(f.activeNotebookEditor);
1182
- return u(f.onDidChangeActiveNotebookEditor((t) => {
131
+ const Ce = v(() => {
132
+ const e = l(c.activeNotebookEditor);
133
+ return s(c.onDidChangeActiveNotebookEditor((t) => {
1183
134
  e.value = t;
1184
135
  })), e;
1185
- }), Ns = E(() => {
1186
- const e = h(f.activeTerminal);
1187
- return u(f.onDidChangeActiveTerminal((t) => {
136
+ }), we = v(() => {
137
+ const e = l(c.activeTerminal);
138
+ return s(c.onDidChangeActiveTerminal((t) => {
1188
139
  e.value = t;
1189
140
  })), e;
1190
- }), Rs = E(() => {
1191
- const e = h(De.all);
1192
- return u(De.onDidChange(() => {
1193
- e.value = De.all;
1194
- })), v(() => e.value);
141
+ }), Te = v(() => {
142
+ const e = l(p.all);
143
+ return s(p.onDidChange(() => {
144
+ e.value = p.all;
145
+ })), d(() => e.value);
1195
146
  });
1196
- function zn(e, t) {
1197
- u(ge.registerCommand(e, t));
147
+ function ee(e, t) {
148
+ s(E.registerCommand(e, t));
1198
149
  }
1199
- function Ds(e) {
150
+ function De(e) {
1200
151
  for (const [t, n] of Object.entries(e))
1201
- n && zn(t, n);
152
+ n && ee(t, n);
1202
153
  }
1203
- function Ss(e, t) {
1204
- return u(Wt.createCommentController(e, t));
154
+ function Se(e, t) {
155
+ return s(K.createCommentController(e, t));
1205
156
  }
1206
- function Lt(e) {
157
+ function P(e) {
1207
158
  var n;
1208
- const t = h((n = c(e)) == null ? void 0 : n.state);
1209
- return W(e, () => {
1210
- var s;
1211
- t.value = (s = c(e)) == null ? void 0 : s.state;
1212
- }), u(f.onDidChangeTerminalState((s) => {
1213
- s === c(e) && (t.value = s.state);
1214
- })), v(() => t.value);
1215
- }
1216
- function ys(...e) {
1217
- const t = ne(null);
159
+ const t = l((n = a(e)) == null ? void 0 : n.state);
160
+ return b(e, () => {
161
+ var r;
162
+ t.value = (r = a(e)) == null ? void 0 : r.state;
163
+ }), s(c.onDidChangeTerminalState((r) => {
164
+ r === a(e) && (t.value = r.state);
165
+ })), d(() => t.value);
166
+ }
167
+ function xe(...e) {
168
+ const t = x(null);
1218
169
  function n() {
1219
170
  return !!t.value && t.value.exitStatus == null;
1220
171
  }
1221
- function s() {
1222
- return n() ? t.value : t.value = f.createTerminal(...e);
172
+ function r() {
173
+ return n() ? t.value : t.value = c.createTerminal(...e);
1223
174
  }
1224
- async function i(a) {
1225
- s().sendText(a);
1226
- }
1227
- async function r() {
1228
- s().show();
175
+ function i(g) {
176
+ r().sendText(g);
1229
177
  }
1230
178
  function o() {
179
+ r().show();
180
+ }
181
+ function u() {
1231
182
  n() && (t.value.sendText(""), t.value.dispose(), t.value = null);
1232
183
  }
1233
- return ut(o), {
184
+ return N(u), {
1234
185
  terminal: t,
1235
186
  getIsActive: n,
1236
- show: r,
187
+ show: o,
1237
188
  sendText: i,
1238
- close: o,
1239
- state: Lt(t)
189
+ close: u,
190
+ state: P(t)
1240
191
  };
1241
192
  }
1242
- const Os = E(() => {
1243
- const e = h(B.shell);
1244
- return u(B.onDidChangeShell((t) => {
193
+ const Ee = v(() => {
194
+ const e = l(w.shell);
195
+ return s(w.onDidChangeShell((t) => {
1245
196
  e.value = t;
1246
- })), v(() => e.value);
197
+ })), d(() => e.value);
1247
198
  });
1248
- function Cs(e) {
199
+ function pe(e) {
1249
200
  var n;
1250
- const t = h((n = c(e)) == null ? void 0 : n.getText());
1251
- return S(() => {
1252
- var s;
1253
- t.value = (s = c(e)) == null ? void 0 : s.getText();
1254
- }), u(P.onDidChangeTextDocument((s) => {
1255
- s.document === c(e) && (t.value = s.document.getText());
201
+ const t = l((n = a(e)) == null ? void 0 : n.getText());
202
+ return h(() => {
203
+ var r;
204
+ t.value = (r = a(e)) == null ? void 0 : r.getText();
205
+ }), s(m.onDidChangeTextDocument((r) => {
206
+ r.document === a(e) && (t.value = r.document.getText());
1256
207
  })), t;
1257
208
  }
1258
- function le(e, t = []) {
1259
- const n = (s, i, r) => u(e(s, i, r));
1260
- for (const s of t)
1261
- n(s);
209
+ function D(e, t = []) {
210
+ const n = (r, i, o) => s(e(r, i, o));
211
+ for (const r of t)
212
+ n(r);
1262
213
  return n;
1263
214
  }
1264
- function Gn(e, t = []) {
1265
- const n = Array.isArray(e) ? e : t ?? [], s = u(Array.isArray(e) || e == null ? new ot() : e), i = le(s.event, n);
1266
- for (const r of n)
1267
- i(r);
215
+ function te(e, t = []) {
216
+ const n = Array.isArray(e) ? e : t ?? [], r = s(Array.isArray(e) || e == null ? new F() : e), i = D(r.event, n);
217
+ for (const o of n)
218
+ i(o);
1268
219
  return {
1269
- event: s.event,
1270
- fire: s.fire.bind(s),
220
+ event: r.event,
221
+ fire: r.fire.bind(r),
1271
222
  addListener: i
1272
223
  };
1273
224
  }
1274
- function As(e) {
1275
- return v(() => J.fetchTasks(c(e)));
225
+ function ke(e) {
226
+ return d(() => T.fetchTasks(a(e)));
1276
227
  }
1277
- function Bn(e) {
1278
- return bn({
228
+ function ne(e) {
229
+ return U({
1279
230
  get scheme() {
1280
- return c(e).scheme;
231
+ return a(e).scheme;
1281
232
  },
1282
233
  get authority() {
1283
- return c(e).authority;
234
+ return a(e).authority;
1284
235
  },
1285
236
  get path() {
1286
- return c(e).path;
237
+ return a(e).path;
1287
238
  },
1288
239
  get query() {
1289
- return c(e).query;
240
+ return a(e).query;
1290
241
  },
1291
242
  get fragment() {
1292
- return c(e).fragment;
243
+ return a(e).fragment;
1293
244
  },
1294
245
  get fsPath() {
1295
- return c(e).fsPath;
246
+ return a(e).fsPath;
1296
247
  },
1297
248
  with(t) {
1298
- return c(e).with(t);
249
+ return a(e).with(t);
1299
250
  },
1300
251
  toString() {
1301
- return c(e).toString();
252
+ return a(e).toString();
1302
253
  },
1303
254
  toJSON() {
1304
- return c(e).toJSON();
255
+ return a(e).toJSON();
1305
256
  }
1306
257
  });
1307
258
  }
1308
- function Is(e) {
1309
- return Bn(() => kt.file(c(e)));
259
+ function ye(e) {
260
+ return ne(() => z.file(a(e)));
1310
261
  }
1311
- function Vs(e, t) {
1312
- const n = new ot(), s = h();
1313
- S(() => {
1314
- s.value && n.fire(), s.value = c(t);
1315
- }), u(jt.registerFoldingRangeProvider(
262
+ function Re(e, t) {
263
+ const n = new F(), r = l();
264
+ h(() => {
265
+ r.value && n.fire(), r.value = a(t);
266
+ }), s(Y.registerFoldingRangeProvider(
1316
267
  e,
1317
268
  {
1318
269
  onDidChangeFoldingRanges: n.event,
1319
- provideFoldingRanges(i, r, o) {
1320
- var a;
1321
- return (a = s.value) == null ? void 0 : a.call(s, i, r, o);
270
+ provideFoldingRanges(i, o, u) {
271
+ var g;
272
+ return (g = r.value) == null ? void 0 : g.call(r, i, o, u);
1322
273
  }
1323
274
  }
1324
275
  ));
1325
276
  }
1326
- function xs(e, t, n, s) {
1327
- const i = u(P.createFileSystemWatcher(e, t, n, s));
277
+ function Ve(e, t, n, r) {
278
+ const i = s(m.createFileSystemWatcher(e, t, n, r));
1328
279
  return {
1329
280
  ...i,
1330
- onDidCreate: le(i.onDidCreate),
1331
- onDidChange: le(i.onDidChange),
1332
- onDidDelete: le(i.onDidDelete)
281
+ onDidCreate: D(i.onDidCreate),
282
+ onDidChange: D(i.onDidChange),
283
+ onDidDelete: D(i.onDidDelete)
1333
284
  };
1334
285
  }
1335
- const Ls = E(() => {
1336
- const e = Kn();
1337
- return v(() => e.value.kind === Qe.Dark || e.value.kind === Qe.HighContrast);
1338
- }), Ps = E(() => {
1339
- const e = h(B.isTelemetryEnabled);
1340
- return u(B.onDidChangeTelemetryEnabled((t) => {
286
+ const Ae = v(() => {
287
+ const e = X();
288
+ return d(() => e.value.kind === R.Dark || e.value.kind === R.HighContrast);
289
+ }), Ne = v(() => {
290
+ const e = l(w.isTelemetryEnabled);
291
+ return s(w.onDidChangeTelemetryEnabled((t) => {
1341
292
  e.value = t;
1342
- })), v(() => e.value);
293
+ })), d(() => e.value);
1343
294
  });
1344
- function Hs(e, ...t) {
1345
- return v(() => typeof t[0] == "object" ? Xe.t(c(e), d(t[0])) : Xe.t(c(e), ...t.map(c)));
295
+ function Fe(e, ...t) {
296
+ return d(() => typeof t[0] == "object" ? V.t(a(e), q(t[0])) : V.t(a(e), ...t.map(a)));
1346
297
  }
1347
- const Ms = E(() => {
1348
- const e = h(B.logLevel);
1349
- return u(B.onDidChangeLogLevel((t) => {
298
+ const Le = v(() => {
299
+ const e = l(w.logLevel);
300
+ return s(w.onDidChangeLogLevel((t) => {
1350
301
  e.value = t;
1351
- })), v(() => e.value);
302
+ })), d(() => e.value);
1352
303
  });
1353
- function Yn(e, t) {
1354
- return u(f.createOutputChannel(e, t));
304
+ function re(e, t) {
305
+ return s(c.createOutputChannel(e, t));
1355
306
  }
1356
- function Jn(e) {
1357
- const t = /* @__PURE__ */ new Date(), n = String(t.getFullYear()).padStart(4, "0"), s = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), r = String(t.getHours()).padStart(2, "0"), o = String(t.getMinutes()).padStart(2, "0"), a = String(t.getSeconds()).padStart(2, "0"), l = String(t.getMilliseconds()).padStart(3, "0");
1358
- return `${n}-${s}-${i} ${r}:${o}:${a}.${l} [${e}] `;
307
+ function We(e) {
308
+ const t = /* @__PURE__ */ new Date(), n = String(t.getFullYear()).padStart(4, "0"), r = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), o = String(t.getHours()).padStart(2, "0"), u = String(t.getMinutes()).padStart(2, "0"), g = String(t.getSeconds()).padStart(2, "0"), f = String(t.getMilliseconds()).padStart(3, "0");
309
+ return `${n}-${r}-${i} ${o}:${u}:${g}.${f} [${e}] `;
1359
310
  }
1360
- function Ws(e, t = Jn) {
1361
- const n = Yn(e), s = (i) => (...r) => {
1362
- n.appendLine(t(i) + r.join(" "));
311
+ function ie(e, t = {}) {
312
+ const n = t.outputChannel ?? re(e), r = (i) => (...o) => {
313
+ var u;
314
+ n.appendLine((((u = t.getPrefix) == null ? void 0 : u.call(t, i)) ?? "") + o.join(" "));
1363
315
  };
1364
316
  return {
1365
317
  outputChannel: n,
1366
- createLoggerFunc: s,
1367
- info: s("INFO"),
1368
- warn: s("WARN"),
1369
- error: s("ERROR"),
318
+ createLoggerFunc: r,
319
+ info: r("INFO"),
320
+ warn: r("WARN"),
321
+ error: r("ERROR"),
1370
322
  append: n.append.bind(n),
1371
323
  appendLine: n.appendLine.bind(n),
1372
324
  replace: n.replace.bind(n),
@@ -1375,28 +327,28 @@ function Ws(e, t = Jn) {
1375
327
  hide: n.hide.bind(n)
1376
328
  };
1377
329
  }
1378
- function qn(e) {
330
+ function ae(e) {
1379
331
  var n;
1380
- const t = h(((n = c(e)) == null ? void 0 : n.selections) ?? []);
1381
- return W(e, () => {
1382
- var s;
1383
- t.value = ((s = c(e)) == null ? void 0 : s.selections) ?? [];
1384
- }), u(f.onDidChangeNotebookEditorSelection((s) => {
1385
- s.notebookEditor === c(e) && (t.value = s.selections);
1386
- })), v({
332
+ const t = l(((n = a(e)) == null ? void 0 : n.selections) ?? []);
333
+ return b(e, () => {
334
+ var r;
335
+ t.value = ((r = a(e)) == null ? void 0 : r.selections) ?? [];
336
+ }), s(c.onDidChangeNotebookEditorSelection((r) => {
337
+ r.notebookEditor === a(e) && (t.value = r.selections);
338
+ })), d({
1387
339
  get() {
1388
340
  return t.value;
1389
341
  },
1390
- set(s) {
1391
- t.value = s;
1392
- const i = c(e);
1393
- i && (i.selections = s);
342
+ set(r) {
343
+ t.value = r;
344
+ const i = a(e);
345
+ i && (i.selections = r);
1394
346
  }
1395
347
  });
1396
348
  }
1397
- function ks(e) {
1398
- const t = qn(e);
1399
- return v({
349
+ function Ie(e) {
350
+ const t = ae(e);
351
+ return d({
1400
352
  get() {
1401
353
  return t.value[0];
1402
354
  },
@@ -1405,28 +357,28 @@ function ks(e) {
1405
357
  }
1406
358
  });
1407
359
  }
1408
- function js(e) {
360
+ function Oe(e) {
1409
361
  var n;
1410
- const t = h(((n = c(e)) == null ? void 0 : n.visibleRanges) ?? []);
1411
- return W(e, () => {
1412
- var s;
1413
- t.value = ((s = c(e)) == null ? void 0 : s.visibleRanges) ?? [];
1414
- }), u(f.onDidChangeNotebookEditorVisibleRanges((s) => {
1415
- s.notebookEditor === c(e) && (t.value = s.visibleRanges);
1416
- })), v(() => t.value);
1417
- }
1418
- const Fs = E(() => {
1419
- const e = h(f.terminals);
362
+ const t = l(((n = a(e)) == null ? void 0 : n.visibleRanges) ?? []);
363
+ return b(e, () => {
364
+ var r;
365
+ t.value = ((r = a(e)) == null ? void 0 : r.visibleRanges) ?? [];
366
+ }), s(c.onDidChangeNotebookEditorVisibleRanges((r) => {
367
+ r.notebookEditor === a(e) && (t.value = r.visibleRanges);
368
+ })), d(() => t.value);
369
+ }
370
+ const Pe = v(() => {
371
+ const e = l(c.terminals);
1420
372
  function t() {
1421
- e.value = f.terminals;
373
+ e.value = c.terminals;
1422
374
  }
1423
- return u(f.onDidOpenTerminal(t)), u(f.onDidCloseTerminal(t)), e;
375
+ return s(c.onDidOpenTerminal(t)), s(c.onDidCloseTerminal(t)), e;
1424
376
  });
1425
- function Ks(e) {
1426
- const t = u(e.id ? f.createStatusBarItem(e.id, e.alignment, e.priority) : f.createStatusBarItem(e.alignment, e.priority));
1427
- function n(s) {
1428
- const i = e[s];
1429
- i != null && S(() => t[s] = c(i));
377
+ function $e(e) {
378
+ const t = s(e.id ? c.createStatusBarItem(e.id, e.alignment, e.priority) : c.createStatusBarItem(e.alignment, e.priority));
379
+ function n(r) {
380
+ const i = e[r];
381
+ i != null && h(() => t[r] = a(i));
1430
382
  }
1431
383
  return [
1432
384
  "name",
@@ -1438,15 +390,15 @@ function Ks(e) {
1438
390
  "accessibilityInformation"
1439
391
  ].forEach(n), t;
1440
392
  }
1441
- const $s = E(() => {
1442
- const e = h(J.taskExecutions);
393
+ const Me = v(() => {
394
+ const e = l(T.taskExecutions);
1443
395
  function t() {
1444
- e.value = J.taskExecutions;
396
+ e.value = T.taskExecutions;
1445
397
  }
1446
- return u(J.onDidStartTask(t)), u(J.onDidEndTask(t)), v(() => e.value);
398
+ return s(T.onDidStartTask(t)), s(T.onDidEndTask(t)), d(() => e.value);
1447
399
  });
1448
- function Us(...e) {
1449
- const t = u(f.createTerminal(...e));
400
+ function je(...e) {
401
+ const t = s(c.createTerminal(...e));
1450
402
  return {
1451
403
  terminal: t,
1452
404
  get name() {
@@ -1464,144 +416,144 @@ function Us(...e) {
1464
416
  sendText: t.sendText.bind(t),
1465
417
  show: t.show.bind(t),
1466
418
  hide: t.hide.bind(t),
1467
- state: Lt(t)
419
+ state: P(t)
1468
420
  };
1469
421
  }
1470
- function Qn(e, t) {
1471
- u(ge.registerTextEditorCommand(e, t));
422
+ function oe(e, t) {
423
+ s(E.registerTextEditorCommand(e, t));
1472
424
  }
1473
- function zs(e) {
425
+ function Be(e) {
1474
426
  for (const [t, n] of Object.entries(e))
1475
- Qn(t, n);
427
+ oe(t, n);
1476
428
  }
1477
- function Xn(e, t) {
1478
- var s;
1479
- const n = h(((s = c(e)) == null ? void 0 : s.selections) ?? []);
1480
- return W(e, () => {
429
+ function ue(e, t) {
430
+ var r;
431
+ const n = l(((r = a(e)) == null ? void 0 : r.selections) ?? []);
432
+ return b(e, () => {
1481
433
  var i;
1482
- n.value = ((i = c(e)) == null ? void 0 : i.selections) ?? [];
1483
- }), u(f.onDidChangeTextEditorSelection((i) => {
1484
- const r = c(e), o = c(t);
1485
- i.textEditor === r && (!o || o.includes(i.kind)) && (n.value = i.selections);
1486
- })), v({
434
+ n.value = ((i = a(e)) == null ? void 0 : i.selections) ?? [];
435
+ }), s(c.onDidChangeTextEditorSelection((i) => {
436
+ const o = a(e), u = a(t);
437
+ i.textEditor === o && (!u || u.includes(i.kind)) && (n.value = i.selections);
438
+ })), d({
1487
439
  get() {
1488
440
  return n.value;
1489
441
  },
1490
442
  set(i) {
1491
443
  n.value = i;
1492
- const r = c(e);
1493
- r && (r.selections = i);
444
+ const o = a(e);
445
+ o && (o.selections = i);
1494
446
  }
1495
447
  });
1496
448
  }
1497
- function Gs(e, t) {
1498
- const n = Xn(e, t);
1499
- return v({
449
+ function He(e, t) {
450
+ const n = ue(e, t);
451
+ return d({
1500
452
  get() {
1501
453
  return n.value[0];
1502
454
  },
1503
- set(s) {
1504
- n.value = n.value.toSpliced(0, 1, s);
455
+ set(r) {
456
+ n.value = n.value.toSpliced(0, 1, r);
1505
457
  }
1506
458
  });
1507
459
  }
1508
- function Bs(e) {
460
+ function Ue(e) {
1509
461
  var n;
1510
- const t = h((n = c(e)) == null ? void 0 : n.viewColumn);
1511
- return W(e, () => {
1512
- var s;
1513
- t.value = (s = c(e)) == null ? void 0 : s.viewColumn;
1514
- }), u(f.onDidChangeTextEditorViewColumn((s) => {
1515
- s.textEditor === c(e) && (t.value = s.viewColumn);
1516
- })), v(() => t.value);
1517
- }
1518
- function Ys(e) {
462
+ const t = l((n = a(e)) == null ? void 0 : n.viewColumn);
463
+ return b(e, () => {
464
+ var r;
465
+ t.value = (r = a(e)) == null ? void 0 : r.viewColumn;
466
+ }), s(c.onDidChangeTextEditorViewColumn((r) => {
467
+ r.textEditor === a(e) && (t.value = r.viewColumn);
468
+ })), d(() => t.value);
469
+ }
470
+ function qe(e) {
1519
471
  var n;
1520
- const t = h(((n = c(e)) == null ? void 0 : n.visibleRanges) ?? []);
1521
- return W(e, () => {
1522
- var s;
1523
- t.value = ((s = c(e)) == null ? void 0 : s.visibleRanges) ?? [];
1524
- }), u(f.onDidChangeTextEditorVisibleRanges((s) => {
1525
- s.textEditor === c(e) && (t.value = s.visibleRanges);
1526
- })), v(() => t.value);
1527
- }
1528
- function Pt(e, t) {
1529
- S(() => {
1530
- const n = c(e);
1531
- n && (n.badge = c(t));
472
+ const t = l(((n = a(e)) == null ? void 0 : n.visibleRanges) ?? []);
473
+ return b(e, () => {
474
+ var r;
475
+ t.value = ((r = a(e)) == null ? void 0 : r.visibleRanges) ?? [];
476
+ }), s(c.onDidChangeTextEditorVisibleRanges((r) => {
477
+ r.textEditor === a(e) && (t.value = r.visibleRanges);
478
+ })), d(() => t.value);
479
+ }
480
+ function $(e, t) {
481
+ h(() => {
482
+ const n = a(e);
483
+ n && (n.badge = a(t));
1532
484
  });
1533
485
  }
1534
- function Ht(e, t) {
1535
- S(() => {
1536
- const n = c(e);
1537
- n && (n.title = c(t));
486
+ function M(e, t) {
487
+ h(() => {
488
+ const n = a(e);
489
+ n && (n.title = a(t));
1538
490
  });
1539
491
  }
1540
- const Js = It(
492
+ const Je = L(
1541
493
  (e, t, n) => {
1542
- const s = Gn();
1543
- W(t, () => s.fire()), n != null && n.watchSource && W(n.watchSource, () => s.fire());
1544
- const i = /* @__PURE__ */ new WeakMap(), r = u(f.createTreeView(e, {
494
+ const r = te();
495
+ b(t, () => r.fire()), n != null && n.watchSource && b(n.watchSource, () => r.fire());
496
+ const i = /* @__PURE__ */ new WeakMap(), o = s(c.createTreeView(e, {
1545
497
  ...n,
1546
498
  treeDataProvider: {
1547
499
  ...n,
1548
- onDidChangeTreeData: s.event,
1549
- getTreeItem(o) {
1550
- return o.treeItem;
500
+ onDidChangeTreeData: r.event,
501
+ getTreeItem(u) {
502
+ return u.treeItem;
1551
503
  },
1552
- getChildren(o) {
1553
- var a;
1554
- return o ? ((a = o.children) == null || a.forEach((l) => i.set(l, o)), o.children) : c(t);
504
+ getChildren(u) {
505
+ var g;
506
+ return u ? ((g = u.children) == null || g.forEach((f) => i.set(f, u)), u.children) : a(t);
1555
507
  },
1556
- getParent(o) {
1557
- return i.get(o);
508
+ getParent(u) {
509
+ return i.get(u);
1558
510
  }
1559
511
  }
1560
512
  }));
1561
- return n != null && n.title && Ht(r, n.title), n != null && n.badge && Pt(r, n.badge), r;
513
+ return n != null && n.title && M(o, n.title), n != null && n.badge && $(o, n.badge), o;
1562
514
  },
1563
515
  (e) => e
1564
516
  );
1565
- function qs(e) {
1566
- var s;
1567
- const t = ne((s = c(e)) == null ? void 0 : s.visible);
517
+ function Ke(e) {
518
+ var r;
519
+ const t = x((r = a(e)) == null ? void 0 : r.visible);
1568
520
  function n() {
1569
521
  var i;
1570
- t.value = (i = c(e)) == null ? void 0 : i.visible;
522
+ t.value = (i = a(e)) == null ? void 0 : i.visible;
1571
523
  }
1572
- return S((i) => {
1573
- const r = c(e);
1574
- if (r) {
1575
- const o = r.onDidChangeVisibility(n);
1576
- i(() => o.dispose());
524
+ return h((i) => {
525
+ const o = a(e);
526
+ if (o) {
527
+ const u = o.onDidChangeVisibility(n);
528
+ i(() => u.dispose());
1577
529
  }
1578
- }), S(n), v(() => !!t.value);
530
+ }), h(n), d(() => !!t.value);
1579
531
  }
1580
- const Qs = E(() => {
1581
- const e = h(f.visibleNotebookEditors);
1582
- return u(f.onDidChangeVisibleNotebookEditors((t) => {
532
+ const ze = v(() => {
533
+ const e = l(c.visibleNotebookEditors);
534
+ return s(c.onDidChangeVisibleNotebookEditors((t) => {
1583
535
  e.value = t;
1584
536
  })), e;
1585
- }), Xs = E(() => {
1586
- const e = h(f.visibleTextEditors);
1587
- return u(f.onDidChangeVisibleTextEditors((t) => {
537
+ }), Ye = v(() => {
538
+ const e = l(c.visibleTextEditors);
539
+ return s(c.onDidChangeVisibleTextEditors((t) => {
1588
540
  e.value = t;
1589
541
  })), e;
1590
542
  });
1591
- function Zs(e, t, n = !0) {
1592
- const s = T(t) ? t : typeof t == "function" ? v(t) : ne(t);
1593
- return S(() => {
1594
- c(n) && ge.executeCommand("setContext", e, s.value);
1595
- }), s;
543
+ function Ge(e, t, n = !0) {
544
+ const r = J(t) ? t : typeof t == "function" ? d(t) : x(t);
545
+ return h(() => {
546
+ a(n) && E.executeCommand("setContext", e, r.value);
547
+ }), r;
1596
548
  }
1597
- const ei = It(
549
+ const Qe = L(
1598
550
  (e, t, n) => {
1599
- const s = h(), i = h();
1600
- u(f.registerWebviewViewProvider(
551
+ const r = l(), i = l();
552
+ s(c.registerWebviewViewProvider(
1601
553
  e,
1602
554
  {
1603
- resolveWebviewView(l, _) {
1604
- s.value = l, i.value = _, n != null && n.onDidReceiveMessage && l.webview.onDidReceiveMessage(n.onDidReceiveMessage);
555
+ resolveWebviewView(f, C) {
556
+ r.value = f, i.value = C, n != null && n.onDidReceiveMessage && f.webview.onDidReceiveMessage(n.onDidReceiveMessage);
1605
557
  }
1606
558
  },
1607
559
  {
@@ -1610,148 +562,106 @@ const ei = It(
1610
562
  }
1611
563
  }
1612
564
  ));
1613
- const r = ne(0);
1614
- function o() {
1615
- r.value++;
565
+ const o = x(0);
566
+ function u() {
567
+ o.value++;
1616
568
  }
1617
- if (S(() => {
1618
- s.value && (s.value.webview.html = `${c(t)}<!--${r.value}-->`);
569
+ if (h(() => {
570
+ r.value && (r.value.webview.html = `${a(t)}<!--${o.value}-->`);
1619
571
  }), n != null && n.webviewOptions) {
1620
- const l = n.webviewOptions;
1621
- S(() => {
1622
- s.value && (s.value.webview.options = c(l));
572
+ const f = n.webviewOptions;
573
+ h(() => {
574
+ r.value && (r.value.webview.options = a(f));
1623
575
  });
1624
576
  }
1625
- n != null && n.title && Ht(s, n.title), n != null && n.badge && Pt(s, n.badge);
1626
- function a(l) {
1627
- var _;
1628
- return (_ = s.value) == null ? void 0 : _.webview.postMessage(l);
577
+ n != null && n.title && M(r, n.title), n != null && n.badge && $(r, n.badge);
578
+ function g(f) {
579
+ var C;
580
+ return (C = r.value) == null ? void 0 : C.webview.postMessage(f);
1629
581
  }
1630
- return { view: s, context: i, postMessage: a, forceRefresh: o };
582
+ return { view: r, context: i, postMessage: g, forceRefresh: u };
1631
583
  },
1632
584
  (e) => e
1633
- ), ti = E(() => {
1634
- const e = h(f.state);
1635
- return u(f.onDidChangeWindowState((t) => {
585
+ ), Xe = v(() => {
586
+ const e = l(c.state);
587
+ return s(c.onDidChangeWindowState((t) => {
1636
588
  e.value = t;
1637
589
  })), {
1638
- focused: v(() => e.value.focused),
1639
- active: v(() => e.value.active)
590
+ focused: d(() => e.value.focused),
591
+ active: d(() => e.value.active)
1640
592
  };
1641
- }), ni = E(() => {
1642
- const e = h(P.workspaceFolders);
1643
- return u(P.onDidChangeWorkspaceFolders(() => {
1644
- e.value = P.workspaceFolders;
1645
- })), v(() => e.value);
593
+ }), Ze = v(() => {
594
+ const e = l(m.workspaceFolders);
595
+ return s(m.onDidChangeWorkspaceFolders(() => {
596
+ e.value = m.workspaceFolders;
597
+ })), d(() => e.value);
1646
598
  });
1647
599
  export {
1648
- Zt as EffectScope,
1649
- K as ITERATE_KEY,
1650
- de as ReactiveEffect,
1651
- An as ReactiveFlags,
1652
- fs as TrackOpTypes,
1653
- ds as TriggerOpTypes,
1654
- xt as activateCbs,
1655
- v as computed,
1656
- It as createKeyedComposable,
1657
- E as createSingletonComposable,
1658
- cs as customRef,
1659
- Vt as deactivateCbs,
1660
- ls as deferredComputed,
1661
- gs as defineConfigs,
1662
- _s as defineExtension,
1663
- es as effect,
1664
- en as effectScope,
1665
- ns as enableTracking,
1666
- Es as executeCommand,
1667
- _e as extensionContext,
1668
- xe as extensionScope,
1669
- Pe as getCurrentScope,
1670
- Nn as isProxy,
1671
- q as isReactive,
1672
- Z as isReadonly,
1673
- T as isRef,
1674
- pe as isShallow,
1675
- is as markRaw,
1676
- hs as nextTick,
1677
- jn as onActivate,
1678
- vs as onDeactivate,
1679
- ut as onScopeDispose,
1680
- ke as pauseScheduling,
1681
- Me as pauseTracking,
1682
- os as proxyRefs,
1683
- Nt as reactive,
1684
- Rt as readonly,
1685
- ne as ref,
1686
- je as resetScheduling,
1687
- We as resetTracking,
1688
- bn as shallowReactive,
1689
- ss as shallowReadonly,
1690
- h as shallowRef,
1691
- ts as stop,
1692
- d as toRaw,
1693
- us as toRef,
1694
- as as toRefs,
1695
- c as toValue,
1696
- N as track,
1697
- H as trigger,
1698
- rs as triggerRef,
1699
- kn as tryOnScopeDispose,
1700
- yt as unref,
1701
- ws as useAbsolutePath,
1702
- Kn as useActiveColorTheme,
1703
- ms as useActiveDebugSession,
1704
- Ts as useActiveEditorDecorations,
1705
- bs as useActiveNotebookEditor,
1706
- Ns as useActiveTerminal,
1707
- $n as useActiveTextEditor,
1708
- Rs as useAllExtensions,
1709
- zn as useCommand,
1710
- Ds as useCommands,
1711
- Ss as useCommentController,
1712
- ys as useControlledTerminal,
1713
- Os as useDefaultShell,
1714
- u as useDisposable,
1715
- Cs as useDocumentText,
1716
- Un as useEditorDecorations,
1717
- le as useEvent,
1718
- Gn as useEventEmitter,
1719
- As as useFetchTasks,
1720
- Is as useFileUri,
1721
- Vs as useFoldingRangeProvider,
1722
- xs as useFsWatcher,
1723
- Ls as useIsDarkTheme,
1724
- Ps as useIsTelemetryEnabled,
1725
- Hs as useL10nText,
1726
- Ms as useLogLevel,
1727
- Ws as useLogger,
1728
- ks as useNotebookEditorSelection,
1729
- qn as useNotebookEditorSelections,
1730
- js as useNotebookEditorVisibleRanges,
1731
- Fs as useOpenedTerminals,
1732
- Yn as useOutputChannel,
1733
- Ks as useStatusBarItem,
1734
- $s as useTaskExecutions,
1735
- Us as useTerminal,
1736
- Lt as useTerminalState,
1737
- Qn as useTextEditorCommand,
1738
- zs as useTextEditorCommands,
1739
- Gs as useTextEditorSelection,
1740
- Xn as useTextEditorSelections,
1741
- Bs as useTextEditorViewColumn,
1742
- Ys as useTextEditorVisibleRanges,
1743
- Js as useTreeView,
1744
- Bn as useUri,
1745
- Pt as useViewBadge,
1746
- Ht as useViewTitle,
1747
- qs as useViewVisibility,
1748
- Qs as useVisibleNotebookEditors,
1749
- Xs as useVisibleTextEditors,
1750
- Zs as useVscodeContext,
1751
- ei as useWebviewView,
1752
- ti as useWindowState,
1753
- ni as useWorkspaceFolders,
1754
- W as watch,
1755
- S as watchEffect,
1756
- ps as watchSyncEffect
600
+ I as activateCbs,
601
+ L as createKeyedComposable,
602
+ v as createSingletonComposable,
603
+ W as deactivateCbs,
604
+ fe as defineConfigs,
605
+ de as defineExtension,
606
+ ve as defineLogger,
607
+ ge as executeCommand,
608
+ S as extensionContext,
609
+ k as extensionScope,
610
+ We as getDefaultLoggerPrefix,
611
+ O as onActivate,
612
+ le as onDeactivate,
613
+ G as tryOnScopeDispose,
614
+ he as useAbsolutePath,
615
+ X as useActiveColorTheme,
616
+ me as useActiveDebugSession,
617
+ be as useActiveEditorDecorations,
618
+ Ce as useActiveNotebookEditor,
619
+ we as useActiveTerminal,
620
+ Z as useActiveTextEditor,
621
+ Te as useAllExtensions,
622
+ ee as useCommand,
623
+ De as useCommands,
624
+ Se as useCommentController,
625
+ xe as useControlledTerminal,
626
+ Ee as useDefaultShell,
627
+ s as useDisposable,
628
+ pe as useDocumentText,
629
+ _ as useEditorDecorations,
630
+ D as useEvent,
631
+ te as useEventEmitter,
632
+ ke as useFetchTasks,
633
+ ye as useFileUri,
634
+ Re as useFoldingRangeProvider,
635
+ Ve as useFsWatcher,
636
+ Ae as useIsDarkTheme,
637
+ Ne as useIsTelemetryEnabled,
638
+ Fe as useL10nText,
639
+ Le as useLogLevel,
640
+ ie as useLogger,
641
+ Ie as useNotebookEditorSelection,
642
+ ae as useNotebookEditorSelections,
643
+ Oe as useNotebookEditorVisibleRanges,
644
+ Pe as useOpenedTerminals,
645
+ re as useOutputChannel,
646
+ $e as useStatusBarItem,
647
+ Me as useTaskExecutions,
648
+ je as useTerminal,
649
+ P as useTerminalState,
650
+ oe as useTextEditorCommand,
651
+ Be as useTextEditorCommands,
652
+ He as useTextEditorSelection,
653
+ ue as useTextEditorSelections,
654
+ Ue as useTextEditorViewColumn,
655
+ qe as useTextEditorVisibleRanges,
656
+ Je as useTreeView,
657
+ ne as useUri,
658
+ $ as useViewBadge,
659
+ M as useViewTitle,
660
+ Ke as useViewVisibility,
661
+ ze as useVisibleNotebookEditors,
662
+ Ye as useVisibleTextEditors,
663
+ Ge as useVscodeContext,
664
+ Qe as useWebviewView,
665
+ Xe as useWindowState,
666
+ Ze as useWorkspaceFolders
1757
667
  };