reactive-vscode 0.1.0 → 0.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,1281 +1,232 @@
1
- import { workspace as P, commands as _e, window as l, debug as Qe, extensions as De, comments as Wt, env as B, EventEmitter as Le, tasks as J, Uri as kt, languages as jt, ColorThemeKind as Xe, l10n as Ze } 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
- }, ge = Object.assign, Ut = (e, t) => {
17
- const n = e.indexOf(t);
18
- n > -1 && e.splice(n, 1);
19
- }, $t = Object.prototype.hasOwnProperty, le = (e, t) => $t.call(e, t), D = Array.isArray, G = (e) => Ee(e) === "[object Map]", Gt = (e) => Ee(e) === "[object Set]", y = (e) => typeof e == "function", zt = (e) => typeof e == "string", te = (e) => typeof e == "symbol", K = (e) => e !== null && typeof e == "object", Bt = (e) => (K(e) || y(e)) && y(e.then) && y(e.catch), Yt = Object.prototype.toString, Ee = (e) => Yt.call(e), ct = (e) => Ee(e).slice(8, -1), Jt = (e) => Ee(e) === "[object Object]", Pe = (e) => zt(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)), H = (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 Me() {
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 j;
106
- class fe {
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, We();
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), ke();
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 = j;
129
- try {
130
- return O = !0, j = this, this._runnings++, et(this), this.fn();
131
- } finally {
132
- tt(this), this._runnings--, j = n, O = t;
133
- }
134
- }
135
- stop() {
136
- this.active && (et(this), tt(this), this.onStop && this.onStop(), this.active = !1);
137
- }
138
- }
139
- function tn(e) {
140
- return e.value;
141
- }
142
- function et(e) {
143
- e._trackId++, e._depsLength = 0;
144
- }
145
- function tt(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 Zn(e, t) {
157
- e.effect instanceof fe && (e = e.effect.fn);
158
- const n = new fe(e, X, () => {
159
- n.dirty && n.run();
160
- });
161
- t && (ge(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 es(e) {
166
- e.effect.stop();
167
- }
168
- let O = !0, Se = 0;
169
- const He = [];
170
- function We() {
171
- He.push(O), O = !1;
172
- }
173
- function ts() {
174
- He.push(O), O = !0;
175
- }
176
- function ke() {
177
- const e = He.pop();
178
- O = e === void 0 ? !0 : e;
179
- }
180
- function je() {
181
- Se++;
182
- }
183
- function Fe() {
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, ge({ effect: e }, n)));
193
- }
194
- }
195
- const ye = [];
196
- function dt(e, t, n) {
197
- var s;
198
- je();
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, ge({ effect: i }, n))), i.trigger(), (!i._runnings || i.allowRecurse) && i._dirtyLevel !== 2 && (i._shouldSchedule = !1, i.scheduler && ye.push(i.scheduler)));
202
- }
203
- Fe();
204
- }
205
- const ht = (e, t) => {
206
- const n = /* @__PURE__ */ new Map();
207
- return n.cleanup = e, n.computed = t, n;
208
- }, de = /* @__PURE__ */ new WeakMap(), F = 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 && j) {
211
- let s = de.get(e);
212
- s || de.set(e, s = /* @__PURE__ */ new Map());
213
- let i = s.get(n);
214
- i || s.set(n, i = ht(() => s.delete(n))), ft(
215
- j,
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 M(e, t, n, s, i, r) {
226
- const o = de.get(e);
227
- if (!o)
228
- return;
229
- let c = [];
230
- if (t === "clear")
231
- c = [...o.values()];
232
- else if (n === "length" && D(e)) {
233
- const d = Number(s);
234
- o.forEach((_, w) => {
235
- (w === "length" || !te(w) && w >= d) && c.push(_);
236
- });
237
- } else
238
- switch (n !== void 0 && c.push(o.get(n)), t) {
239
- case "add":
240
- D(e) ? Pe(n) && c.push(o.get("length")) : (c.push(o.get(F)), G(e) && c.push(o.get(Oe)));
241
- break;
242
- case "delete":
243
- D(e) || (c.push(o.get(F)), G(e) && c.push(o.get(Oe)));
244
- break;
245
- case "set":
246
- G(e) && c.push(o.get(F));
247
- break;
248
- }
249
- je();
250
- for (const d of c)
251
- d && dt(
252
- d,
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
- Fe();
264
- }
265
- function nn(e, t) {
266
- const n = de.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
- ), nt = /* @__PURE__ */ rn();
272
- function rn() {
273
- const e = {};
274
- return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
275
- e[t] = function(...n) {
276
- const s = f(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(f)) : i;
281
- };
282
- }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
283
- e[t] = function(...n) {
284
- We(), je();
285
- const s = f(this)[t].apply(this, n);
286
- return Fe(), ke(), s;
287
- };
288
- }), e;
289
- }
290
- function on(e) {
291
- te(e) || (e = String(e));
292
- const t = f(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 && le(nt, n))
314
- return Reflect.get(nt, n, s);
315
- if (n === "hasOwnProperty")
316
- return on;
317
- }
318
- const c = Reflect.get(t, n, s);
319
- return (te(n) ? pt.has(n) : sn(n)) || (i || N(t, "get", n), r) ? c : T(c) ? o && Pe(n) ? c : c.value : K(c) ? i ? Rt(c) : Nt(c) : c;
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 d = Z(r);
330
- if (!he(s) && !Z(s) && (r = f(r), s = f(s)), !D(t) && T(r) && !T(s))
331
- return d ? !1 : (r.value = s, !0);
332
- }
333
- const o = D(t) && Pe(n) ? Number(n) < t.length : le(t, n), c = Reflect.set(t, n, s, i);
334
- return t === f(i) && (o ? H(s, r) && M(t, "set", n, s, r) : M(t, "add", n, s)), c;
335
- }
336
- deleteProperty(t, n) {
337
- const s = le(t, n), i = t[n], r = Reflect.deleteProperty(t, n);
338
- return r && s && M(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" : F
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), Ke = (e) => e, we = (e) => Reflect.getPrototypeOf(e);
372
- function se(e, t, n = !1, s = !1) {
373
- e = e.__v_raw;
374
- const i = f(e), r = f(t);
375
- n || (H(t, r) && N(i, "get", t), N(i, "get", r));
376
- const { has: o } = we(i), c = s ? Ke : n ? Ue : ee;
377
- if (o.call(i, t))
378
- return c(e.get(t));
379
- if (o.call(i, r))
380
- return c(e.get(r));
381
- e !== i && e.get(t);
382
- }
383
- function ie(e, t = !1) {
384
- const n = this.__v_raw, s = f(n), i = f(e);
385
- return t || (H(e, i) && N(s, "has", e), N(s, "has", i)), e === i ? n.has(e) : n.has(e) || n.has(i);
386
- }
387
- function re(e, t = !1) {
388
- return e = e.__v_raw, !t && N(f(e), "iterate", F), Reflect.get(e, "size", e);
389
- }
390
- function st(e) {
391
- e = f(e);
392
- const t = f(this);
393
- return we(t).has.call(t, e) || (t.add(e), M(t, "add", e, e)), this;
394
- }
395
- function it(e, t) {
396
- t = f(t);
397
- const n = f(this), { has: s, get: i } = we(n);
398
- let r = s.call(n, e);
399
- r ? process.env.NODE_ENV !== "production" && Et(n, s, e) : (e = f(e), r = s.call(n, e));
400
- const o = i.call(n, e);
401
- return n.set(e, t), r ? H(t, o) && M(n, "set", e, t, o) : M(n, "add", e, t), this;
402
- }
403
- function rt(e) {
404
- const t = f(this), { has: n, get: s } = we(t);
405
- let i = n.call(t, e);
406
- i ? process.env.NODE_ENV !== "production" && Et(t, n, e) : (e = f(e), i = n.call(t, e));
407
- const r = s ? s.call(t, e) : void 0, o = t.delete(e);
408
- return i && M(t, "delete", e, void 0, r), o;
409
- }
410
- function ot() {
411
- const e = f(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? G(e) ? new Map(e) : new Set(e) : void 0, s = e.clear();
412
- return t && M(e, "clear", void 0, void 0, n), s;
413
- }
414
- function oe(e, t) {
415
- return function(s, i) {
416
- const r = this, o = r.__v_raw, c = f(o), d = t ? Ke : e ? Ue : ee;
417
- return !e && N(c, "iterate", F), o.forEach((_, w) => s.call(i, d(_), d(w), r));
418
- };
419
- }
420
- function ce(e, t, n) {
421
- return function(...s) {
422
- const i = this.__v_raw, r = f(i), o = G(r), c = e === "entries" || e === Symbol.iterator && o, d = e === "keys" && o, _ = i[e](...s), w = n ? Ke : t ? Ue : ee;
423
- return !t && N(
424
- r,
425
- "iterate",
426
- d ? Oe : F
427
- ), {
428
- // iterator protocol
429
- next() {
430
- const { value: g, done: A } = _.next();
431
- return A ? { value: g, done: A } : {
432
- value: c ? [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
- f(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 se(this, r);
459
- },
460
- get size() {
461
- return re(this);
462
- },
463
- has: ie,
464
- add: st,
465
- set: it,
466
- delete: rt,
467
- clear: ot,
468
- forEach: oe(!1, !1)
469
- }, t = {
470
- get(r) {
471
- return se(this, r, !1, !0);
472
- },
473
- get size() {
474
- return re(this);
475
- },
476
- has: ie,
477
- add: st,
478
- set: it,
479
- delete: rt,
480
- clear: ot,
481
- forEach: oe(!1, !0)
482
- }, n = {
483
- get(r) {
484
- return se(this, r, !0);
485
- },
486
- get size() {
487
- return re(this, !0);
488
- },
489
- has(r) {
490
- return ie.call(this, r, !0);
491
- },
492
- add: I("add"),
493
- set: I("set"),
494
- delete: I("delete"),
495
- clear: I("clear"),
496
- forEach: oe(!0, !1)
497
- }, s = {
498
- get(r) {
499
- return se(this, r, !0, !0);
500
- },
501
- get size() {
502
- return re(this, !0);
503
- },
504
- has(r) {
505
- return ie.call(this, r, !0);
506
- },
507
- add: I("add"),
508
- set: I("set"),
509
- delete: I("delete"),
510
- clear: I("clear"),
511
- forEach: oe(!0, !0)
512
- };
513
- return [
514
- "keys",
515
- "values",
516
- "entries",
517
- Symbol.iterator
518
- ].forEach((r) => {
519
- e[r] = ce(r, !1, !1), n[r] = ce(r, !0, !1), t[r] = ce(r, !1, !0), s[r] = ce(
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 me(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
- le(n, i) && i in s ? n : s,
541
- i,
542
- r
543
- );
544
- }
545
- const _n = {
546
- get: /* @__PURE__ */ me(!1, !1)
547
- }, gn = {
548
- get: /* @__PURE__ */ me(!1, !0)
549
- }, En = {
550
- get: /* @__PURE__ */ me(!0, !1)
551
- }, wn = {
552
- get: /* @__PURE__ */ me(!0, !0)
553
- };
554
- function Et(e, t, n) {
555
- const s = f(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 : Te(
583
- e,
584
- !1,
585
- cn,
586
- _n,
587
- wt
588
- );
589
- }
590
- function bn(e) {
591
- return Te(
592
- e,
593
- !1,
594
- un,
595
- gn,
596
- mt
597
- );
598
- }
599
- function Rt(e) {
600
- return Te(
601
- e,
602
- !0,
603
- an,
604
- En,
605
- Tt
606
- );
607
- }
608
- function ns(e) {
609
- return Te(
610
- e,
611
- !0,
612
- ln,
613
- wn,
614
- bt
615
- );
616
- }
617
- function Te(e, t, n, s, i) {
618
- if (!K(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 c = new Proxy(
629
- e,
630
- o === 2 ? s : n
631
- );
632
- return i.set(e, c), c;
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 he(e) {
641
- return !!(e && e.__v_isShallow);
642
- }
643
- function Nn(e) {
644
- return e ? !!e.__v_raw : !1;
645
- }
646
- function f(e) {
647
- const t = e && e.__v_raw;
648
- return t ? f(t) : e;
649
- }
650
- function ss(e) {
651
- return Object.isExtensible(e) && Xt(e, "__v_skip", !0), e;
652
- }
653
- const ee = (e) => K(e) ? Nt(e) : e, Ue = (e) => K(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 fe(
657
- () => t(this._value),
658
- () => z(
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 = f(this);
666
- return (!t._cacheable || t.effect.dirty) && H(t._value, t._value = t.effect.run()) && z(t, 4), $e(t), t.effect._dirtyLevel >= 2 && (process.env.NODE_ENV !== "production" && this._warnRecursive && C(Rn, `
667
-
668
- getter: `, this.getter), z(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 && j && (e = f(e), ft(
694
- j,
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 z(e, t = 4, n) {
707
- e = f(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 be(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 : f(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 || he(t) || Z(t);
741
- t = n ? t : f(t), H(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : ee(t), z(this, 4, t));
742
- }
743
- }
744
- function is(e) {
745
- z(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 a(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 rs(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
- () => z(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 os(e) {
780
- return new yn(e);
781
- }
782
- function cs(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(f(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 as(e, t, n) {
813
- return T(e) ? e : y(e) ? new Cn(e) : K(e) && arguments.length > 1 ? Ot(e, t, n) : be(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 us = v, ls = {
820
- GET: "get",
821
- HAS: "has",
822
- ITERATE: "iterate"
823
- }, fs = {
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
- We();
837
- const n = [`[Vue warn]: ${e}`, ...t];
838
- console.warn(...n), ke();
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
- Ge(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
- Ge(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 Ge(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 pe = !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 ds(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
- pe && e.allowRecurse ? L + 1 : L
918
- )) && (e.id == null ? R.push(e) : R.splice(Ln(e.id), 0, e), Mn());
919
- }
920
- function Mn() {
921
- !pe && !Ie && (Ie = !0, ze = Ct.then(At));
922
- }
923
- const Ve = (e) => e.id == null ? 1 / 0 : e.id, Hn = (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, pe = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), R.sort(Hn);
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, pe = !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 Ge(
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 Be(e, null, t);
965
- }
966
- function hs(e, t) {
967
- return Be(
968
- e,
969
- null,
970
- process.env.NODE_ENV !== "production" ? ge({}, t, { flush: "sync" }) : { flush: "sync" }
971
- );
972
- }
973
- const ae = {};
974
- function U(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
- ), Be(e, t, n);
978
- }
979
- function Be(e, t, {
980
- immediate: n,
981
- deep: s,
982
- flush: i,
983
- once: r,
984
- onTrack: o,
985
- onTrigger: c
986
- } = Kt) {
987
- if (t && r) {
988
- const p = t;
989
- t = (...Re) => {
990
- p(...Re), qe();
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 d = (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
- k(p, s === !1 ? 1 : void 0)
1011
- );
1012
- let g, A = !1, ne = !1;
1013
- if (T(e) ? (g = () => e.value, A = he(e)) : q(e) ? (g = () => w(e), A = !0) : D(e) ? (ne = !0, A = e.some((p) => q(p) || he(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" && d(p);
1021
- })) : y(e) ? t ? g = () => Q(e, _, x.WATCH_GETTER) : g = () => ($ && $(), Ae(
1022
- e,
1023
- _,
1024
- x.WATCH_CALLBACK,
1025
- [Ye]
1026
- )) : (g = X, process.env.NODE_ENV !== "production" && d(e)), t && s) {
1027
- const p = g;
1028
- g = () => k(p());
1029
- }
1030
- let $, Ye = (p) => {
1031
- $ = b.onStop = () => {
1032
- Q(p, _, x.WATCH_CLEANUP), $ = b.onStop = void 0;
1033
- };
1034
- }, W = ne ? new Array(e.length).fill(ae) : ae;
1035
- const Y = () => {
1036
- if (!(!b.active || !b.dirty))
1037
- if (t) {
1038
- const p = b.run();
1039
- (s || A || (ne ? p.some((Re, Ht) => H(Re, W[Ht])) : H(p, W))) && ($ && $(), Ae(t, _, x.WATCH_CALLBACK, [
1040
- p,
1041
- // pass undefined as the old value when it's changed for the first time
1042
- W === ae ? void 0 : ne && W[0] === ae ? [] : W,
1043
- Ye
1044
- ]), W = 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 fe(g, X, Ne), Je = Me(), qe = () => {
1052
- b.stop(), Je && Ut(Je.effects, b);
1053
- };
1054
- return process.env.NODE_ENV !== "production" && (b.onTrack = o, b.onTrigger = c), t ? n ? Y() : W = b.run() : b.run(), qe;
1055
- }
1056
- function k(e, t = 1 / 0, n) {
1057
- if (t <= 0 || !K(e) || e[An.SKIP] || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
1058
- return e;
1059
- if (n.add(e), t--, T(e))
1060
- k(e.value, t, n);
1061
- else if (D(e))
1062
- for (let s = 0; s < e.length; s++)
1063
- k(e[s], t, n);
1064
- else if (Gt(e) || G(e))
1065
- e.forEach((s) => {
1066
- k(s, t, n);
1067
- });
1068
- else if (Jt(e)) {
1069
- for (const s in e)
1070
- k(e[s], t, n);
1071
- for (const s of Object.getOwnPropertySymbols(e))
1072
- Object.prototype.propertyIsEnumerable.call(e, s) && k(e[s], t, n);
1073
- }
1074
- return e;
1075
- }
1076
- function kn(e) {
1077
- return Me() ? (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 ps(e) {
1098
- Vt.push(e);
24
+ const W = [];
25
+ function le(e) {
26
+ W.push(e);
1099
27
  }
1100
- const ve = h(null), xe = en();
1101
- function vs(e) {
28
+ const S = l(null), k = H();
29
+ function de(e) {
1102
30
  return {
1103
31
  activate: (t) => {
1104
- ve.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
- ve.value ? e(ve.value) : xt.push(e);
41
+ const I = [];
42
+ function O(e) {
43
+ S.value ? e(S.value) : I.push(e);
1116
44
  }
1117
- function _s(e, t, n) {
1118
- const s = P.getConfiguration(e, n);
1119
- function i(o, c) {
1120
- const d = h(c);
1121
- return d.update = async (_, w, g) => {
1122
- await s.update(o, _, w, g), d.value = _;
1123
- }, d;
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 c = P.getConfiguration(e);
1133
- for (const d in t)
1134
- o.affectsConfiguration(`${e}.${d}`) && (r[d].value = c.get(d));
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 gs(e, ...t) {
1139
- return _e.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 = ve.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 Es(e, t = !1) {
1148
- return v(() => Fn(a(e), t));
98
+ function he(e, t = !1) {
99
+ return d(() => Q(a(e), t));
1149
100
  }
1150
- function u(e) {
1151
- return (Me() ?? 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(l.activeColorTheme);
1155
- return u(l.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
- }), ws = 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
- }), Un = E(() => {
1164
- const e = h(l.activeTextEditor);
1165
- return u(l.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 $n(e, t, n) {
1170
- const s = "key" in t ? t : l.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 = a(e)) == null || i.setDecorations(s, a(n));
124
+ (i = a(e)) == null || i.setDecorations(r, a(n));
1174
125
  });
1175
126
  }
1176
- function ms(e, t) {
1177
- const n = Un();
1178
- $n(n, e, t);
127
+ function be(e, t) {
128
+ const n = Z();
129
+ _(n, e, t);
1179
130
  }
1180
- const Ts = E(() => {
1181
- const e = h(l.activeNotebookEditor);
1182
- return u(l.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
- }), bs = E(() => {
1186
- const e = h(l.activeTerminal);
1187
- return u(l.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
- }), Ns = 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 Gn(e, t) {
1197
- u(_e.registerCommand(e, t));
147
+ function ee(e, t) {
148
+ s(E.registerCommand(e, t));
1198
149
  }
1199
- function Rs(e) {
150
+ function De(e) {
1200
151
  for (const [t, n] of Object.entries(e))
1201
- n && Gn(t, n);
152
+ n && ee(t, n);
1202
153
  }
1203
- function Ds(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 = a(e)) == null ? void 0 : n.state);
1209
- return U(e, () => {
1210
- var s;
1211
- t.value = (s = a(e)) == null ? void 0 : s.state;
1212
- }), u(l.onDidChangeTerminalState((s) => {
1213
- s === a(e) && (t.value = s.state);
1214
- })), v(() => t.value);
1215
- }
1216
- function Ss(...e) {
1217
- const t = be(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 = l.createTerminal(...e);
172
+ function r() {
173
+ return n() ? t.value : t.value = c.createTerminal(...e);
1223
174
  }
1224
- async function i(c) {
1225
- s().sendText(c);
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 ys = 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 Os(e) {
199
+ function pe(e) {
1249
200
  var n;
1250
- const t = h((n = a(e)) == null ? void 0 : n.getText());
1251
- return S(() => {
1252
- var s;
1253
- t.value = (s = a(e)) == null ? void 0 : s.getText();
1254
- }), u(P.onDidChangeTextDocument((s) => {
1255
- s.document === a(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 ue(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 Cs(e = []) {
1265
- const t = u(new Le()), n = ue(t.event, e);
1266
- for (const s of e)
1267
- n(s);
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: t.event,
1270
- fire: t.fire.bind(t),
1271
- addListener: n
220
+ event: r.event,
221
+ fire: r.fire.bind(r),
222
+ addListener: i
1272
223
  };
1273
224
  }
1274
- function As(e) {
1275
- return v(() => J.fetchTasks(a(e)));
225
+ function ke(e) {
226
+ return d(() => T.fetchTasks(a(e)));
1276
227
  }
1277
- function zn(e) {
1278
- return bn({
228
+ function ne(e) {
229
+ return U({
1279
230
  get scheme() {
1280
231
  return a(e).scheme;
1281
232
  },
@@ -1305,68 +256,69 @@ function zn(e) {
1305
256
  }
1306
257
  });
1307
258
  }
1308
- function Is(e) {
1309
- return zn(() => kt.file(a(e)));
259
+ function ye(e) {
260
+ return ne(() => z.file(a(e)));
1310
261
  }
1311
- function Vs(e, t) {
1312
- const n = new Le(), s = h();
1313
- S(() => {
1314
- s.value && n.fire(), s.value = a(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 c;
1321
- return (c = s.value) == null ? void 0 : c.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: ue(i.onDidCreate),
1331
- onDidChange: ue(i.onDidChange),
1332
- onDidDelete: ue(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 === Xe.Dark || e.value.kind === Xe.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 Ms(e, ...t) {
1345
- return v(() => typeof t[0] == "object" ? Ze.t(a(e), f(t[0])) : Ze.t(a(e), ...t.map(a)));
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 Hs = 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 Bn(e, t) {
1354
- return u(l.createOutputChannel(e, t));
304
+ function re(e, t) {
305
+ return s(c.createOutputChannel(e, t));
1355
306
  }
1356
- function Yn(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"), c = String(t.getSeconds()).padStart(2, "0"), d = String(t.getMilliseconds()).padStart(3, "0");
1358
- return `${n}-${s}-${i} ${r}:${o}:${c}.${d} [${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 = Yn) {
1361
- const n = Bn(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 = Yn) {
1375
327
  hide: n.hide.bind(n)
1376
328
  };
1377
329
  }
1378
- function Jn(e) {
330
+ function ae(e) {
1379
331
  var n;
1380
- const t = h(((n = a(e)) == null ? void 0 : n.selections) ?? []);
1381
- return U(e, () => {
1382
- var s;
1383
- t.value = ((s = a(e)) == null ? void 0 : s.selections) ?? [];
1384
- }), u(l.onDidChangeNotebookEditorSelection((s) => {
1385
- s.notebookEditor === a(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;
342
+ set(r) {
343
+ t.value = r;
1392
344
  const i = a(e);
1393
- i && (i.selections = s);
345
+ i && (i.selections = r);
1394
346
  }
1395
347
  });
1396
348
  }
1397
- function ks(e) {
1398
- const t = Jn(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 = a(e)) == null ? void 0 : n.visibleRanges) ?? []);
1411
- return U(e, () => {
1412
- var s;
1413
- t.value = ((s = a(e)) == null ? void 0 : s.visibleRanges) ?? [];
1414
- }), u(l.onDidChangeNotebookEditorVisibleRanges((s) => {
1415
- s.notebookEditor === a(e) && (t.value = s.visibleRanges);
1416
- })), v(() => t.value);
1417
- }
1418
- const Fs = E(() => {
1419
- const e = h(l.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 = l.terminals;
373
+ e.value = c.terminals;
1422
374
  }
1423
- return u(l.onDidOpenTerminal(t)), u(l.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 ? l.createStatusBarItem(e.id, e.alignment, e.priority) : l.createStatusBarItem(e.alignment, e.priority));
1427
- function n(s) {
1428
- const i = e[s];
1429
- i != null && S(() => t[s] = a(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 Us = 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 $s(...e) {
1449
- const t = u(l.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,281 +416,252 @@ function $s(...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(_e.registerTextEditorCommand(e, t));
422
+ function oe(e, t) {
423
+ s(E.registerTextEditorCommand(e, t));
1472
424
  }
1473
- function Gs(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 Qn(e, t) {
1478
- var s;
1479
- const n = h(((s = a(e)) == null ? void 0 : s.selections) ?? []);
1480
- return U(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
434
  n.value = ((i = a(e)) == null ? void 0 : i.selections) ?? [];
1483
- }), u(l.onDidChangeTextEditorSelection((i) => {
1484
- const r = a(e), o = a(t);
1485
- i.textEditor === r && (!o || o.includes(i.kind)) && (n.value = i.selections);
1486
- })), v({
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 = a(e);
1493
- r && (r.selections = i);
444
+ const o = a(e);
445
+ o && (o.selections = i);
1494
446
  }
1495
447
  });
1496
448
  }
1497
- function zs(e, t) {
1498
- const n = Qn(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 = a(e)) == null ? void 0 : n.viewColumn);
1511
- return U(e, () => {
1512
- var s;
1513
- t.value = (s = a(e)) == null ? void 0 : s.viewColumn;
1514
- }), u(l.onDidChangeTextEditorViewColumn((s) => {
1515
- s.textEditor === a(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 = a(e)) == null ? void 0 : n.visibleRanges) ?? []);
1521
- return U(e, () => {
1522
- var s;
1523
- t.value = ((s = a(e)) == null ? void 0 : s.visibleRanges) ?? [];
1524
- }), u(l.onDidChangeTextEditorVisibleRanges((s) => {
1525
- s.textEditor === a(e) && (t.value = s.visibleRanges);
1526
- })), v(() => t.value);
1527
- }
1528
- function Pt(e, t) {
1529
- S(() => {
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(() => {
1530
482
  const n = a(e);
1531
483
  n && (n.badge = a(t));
1532
484
  });
1533
485
  }
1534
- function Mt(e, t) {
1535
- S(() => {
486
+ function M(e, t) {
487
+ h(() => {
1536
488
  const n = a(e);
1537
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 = typeof n == "function" ? { getTreeItem: n } : n, i = new Le();
1543
- U(t, () => i.fire());
1544
- const r = /* @__PURE__ */ new WeakMap(), o = u(l.createTreeView(e, {
1545
- ...s,
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, {
497
+ ...n,
1546
498
  treeDataProvider: {
1547
- ...s,
1548
- onDidChangeTreeData: i.event,
1549
- getTreeItem(c) {
1550
- return s.getTreeItem(c);
499
+ ...n,
500
+ onDidChangeTreeData: r.event,
501
+ getTreeItem(u) {
502
+ return u.treeItem;
1551
503
  },
1552
- getChildren(c) {
1553
- var d;
1554
- return c ? ((d = c.children) == null || d.forEach((_) => r.set(_, c)), c.children) : a(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(c) {
1557
- return r.get(c);
508
+ getParent(u) {
509
+ return i.get(u);
1558
510
  }
1559
511
  }
1560
512
  }));
1561
- return s != null && s.title && Mt(o, s.title), s != null && s.badge && Pt(o, s.badge), o;
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 = be((s = a(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
522
  t.value = (i = a(e)) == null ? void 0 : i.visible;
1571
523
  }
1572
- return S((i) => {
1573
- const r = a(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(l.visibleNotebookEditors);
1582
- return u(l.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(l.visibleTextEditors);
1587
- return u(l.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) : be(t);
1593
- return S(() => {
1594
- a(n) && _e.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
- if (u(l.registerWebviewViewProvider(e, {
1601
- resolveWebviewView(o, c) {
1602
- s.value = o, i.value = c, n != null && n.onDidReceiveMessage && o.webview.onDidReceiveMessage(n.onDidReceiveMessage);
551
+ const r = l(), i = l();
552
+ s(c.registerWebviewViewProvider(
553
+ e,
554
+ {
555
+ resolveWebviewView(f, C) {
556
+ r.value = f, i.value = C, n != null && n.onDidReceiveMessage && f.webview.onDidReceiveMessage(n.onDidReceiveMessage);
557
+ }
558
+ },
559
+ {
560
+ webviewOptions: {
561
+ retainContextWhenHidden: n == null ? void 0 : n.retainContextWhenHidden
562
+ }
1603
563
  }
1604
- }, n)), S(() => {
1605
- s.value && (s.value.webview.html = a(t));
564
+ ));
565
+ const o = x(0);
566
+ function u() {
567
+ o.value++;
568
+ }
569
+ if (h(() => {
570
+ r.value && (r.value.webview.html = `${a(t)}<!--${o.value}-->`);
1606
571
  }), n != null && n.webviewOptions) {
1607
- const o = n.webviewOptions;
1608
- S(() => {
1609
- s.value && (s.value.webview.options = a(o));
572
+ const f = n.webviewOptions;
573
+ h(() => {
574
+ r.value && (r.value.webview.options = a(f));
1610
575
  });
1611
576
  }
1612
- n != null && n.title && Mt(s, n.title), n != null && n.badge && Pt(s, n.badge);
1613
- function r(o) {
1614
- var c;
1615
- return (c = s.value) == null ? void 0 : c.webview.postMessage(o);
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);
1616
581
  }
1617
- return { view: s, context: i, postMessage: r };
582
+ return { view: r, context: i, postMessage: g, forceRefresh: u };
1618
583
  },
1619
584
  (e) => e
1620
- ), ti = E(() => {
1621
- const e = h(l.state);
1622
- return u(l.onDidChangeWindowState((t) => {
585
+ ), Xe = v(() => {
586
+ const e = l(c.state);
587
+ return s(c.onDidChangeWindowState((t) => {
1623
588
  e.value = t;
1624
589
  })), {
1625
- focused: v(() => e.value.focused),
1626
- active: v(() => e.value.active)
590
+ focused: d(() => e.value.focused),
591
+ active: d(() => e.value.active)
1627
592
  };
1628
- }), ni = E(() => {
1629
- const e = h(P.workspaceFolders);
1630
- return u(P.onDidChangeWorkspaceFolders(() => {
1631
- e.value = P.workspaceFolders;
1632
- })), 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);
1633
598
  });
1634
599
  export {
1635
- Zt as EffectScope,
1636
- F as ITERATE_KEY,
1637
- fe as ReactiveEffect,
1638
- An as ReactiveFlags,
1639
- ls as TrackOpTypes,
1640
- fs as TriggerOpTypes,
1641
- xt as activateCbs,
1642
- v as computed,
1643
- It as createKeyedComposable,
1644
- E as createSingletonComposable,
1645
- os as customRef,
1646
- Vt as deactivateCbs,
1647
- us as deferredComputed,
1648
- _s as defineConfigs,
1649
- vs as defineExtension,
1650
- Zn as effect,
1651
- en as effectScope,
1652
- ts as enableTracking,
1653
- gs as executeCommand,
1654
- ve as extensionContext,
1655
- xe as extensionScope,
1656
- Me as getCurrentScope,
1657
- Nn as isProxy,
1658
- q as isReactive,
1659
- Z as isReadonly,
1660
- T as isRef,
1661
- he as isShallow,
1662
- ss as markRaw,
1663
- ds as nextTick,
1664
- jn as onActivate,
1665
- ps as onDeactivate,
1666
- ut as onScopeDispose,
1667
- je as pauseScheduling,
1668
- We as pauseTracking,
1669
- rs as proxyRefs,
1670
- Nt as reactive,
1671
- Rt as readonly,
1672
- be as ref,
1673
- Fe as resetScheduling,
1674
- ke as resetTracking,
1675
- bn as shallowReactive,
1676
- ns as shallowReadonly,
1677
- h as shallowRef,
1678
- es as stop,
1679
- f as toRaw,
1680
- as as toRef,
1681
- cs as toRefs,
1682
- a as toValue,
1683
- N as track,
1684
- M as trigger,
1685
- is as triggerRef,
1686
- kn as tryOnScopeDispose,
1687
- yt as unref,
1688
- Es as useAbsolutePath,
1689
- Kn as useActiveColorTheme,
1690
- ws as useActiveDebugSession,
1691
- ms as useActiveEditorDecorations,
1692
- Ts as useActiveNotebookEditor,
1693
- bs as useActiveTerminal,
1694
- Un as useActiveTextEditor,
1695
- Ns as useAllExtensions,
1696
- Gn as useCommand,
1697
- Rs as useCommands,
1698
- Ds as useCommentController,
1699
- Ss as useControlledTerminal,
1700
- ys as useDefaultShell,
1701
- u as useDisposable,
1702
- Os as useDocumentText,
1703
- $n as useEditorDecorations,
1704
- ue as useEvent,
1705
- Cs as useEventEmitter,
1706
- As as useFetchTasks,
1707
- Is as useFileUri,
1708
- Vs as useFoldingRangeProvider,
1709
- xs as useFsWatcher,
1710
- Ls as useIsDarkTheme,
1711
- Ps as useIsTelemetryEnabled,
1712
- Ms as useL10nText,
1713
- Hs as useLogLevel,
1714
- Ws as useLogger,
1715
- ks as useNotebookEditorSelection,
1716
- Jn as useNotebookEditorSelections,
1717
- js as useNotebookEditorVisibleRanges,
1718
- Fs as useOpenedTerminals,
1719
- Bn as useOutputChannel,
1720
- Ks as useStatusBarItem,
1721
- Us as useTaskExecutions,
1722
- $s as useTerminal,
1723
- Lt as useTerminalState,
1724
- qn as useTextEditorCommand,
1725
- Gs as useTextEditorCommands,
1726
- zs as useTextEditorSelection,
1727
- Qn as useTextEditorSelections,
1728
- Bs as useTextEditorViewColumn,
1729
- Ys as useTextEditorVisibleRanges,
1730
- Js as useTreeView,
1731
- zn as useUri,
1732
- Pt as useViewBadge,
1733
- Mt as useViewTitle,
1734
- qs as useViewVisibility,
1735
- Qs as useVisibleNotebookEditors,
1736
- Xs as useVisibleTextEditors,
1737
- Zs as useVscodeContext,
1738
- ei as useWebviewView,
1739
- ti as useWindowState,
1740
- ni as useWorkspaceFolders,
1741
- U as watch,
1742
- S as watchEffect,
1743
- hs 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
1744
667
  };