reactive-vscode 0.2.0-beta.9 → 0.2.1

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/README.md CHANGED
@@ -4,13 +4,14 @@
4
4
  [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
5
  [![License][license-src]][license-href]
6
6
 
7
- ![Header](./docs/public/header.png)
7
+ <img src="./docs/public/header.png" width="60%" />
8
8
 
9
9
  **Develop VSCode extension with Vue Reactivity API**
10
10
 
11
11
  - [**Documentation**](https://kermanx.github.io/reactive-vscode/)
12
12
  - [**Why reactive-vscode**](https://kermanx.github.io/reactive-vscode/guide/why)
13
13
  - [**All Functions**](https://kermanx.github.io/reactive-vscode/functions/)
14
+ - [**Examples**](https://kermanx.github.io/reactive-vscode/examples/)
14
15
 
15
16
  ### Project Status
16
17
 
package/dist/index.d.ts CHANGED
@@ -62,6 +62,8 @@ import { WritableComputedRef } from '@reactive-vscode/reactivity';
62
62
 
63
63
  /* Excluded from this release type: activateCbs */
64
64
 
65
+ export declare type Awaitable<T> = T | Promise<T>;
66
+
65
67
  export declare interface Commands extends Record<string, (...args: any[]) => any> {
66
68
  'vscode.open': (uri: Uri) => void;
67
69
  }
@@ -323,9 +325,9 @@ export declare function tryOnScopeDispose(fn: () => void): boolean;
323
325
  * @category utilities
324
326
  * @reactive `ExtensionContext.asAbsolutePath`
325
327
  */
326
- export declare function useAbsolutePath(relativePath: MaybeRefOrGetter<string>, slient: true): ComputedRef<string | undefined>;
328
+ export declare function useAbsolutePath(relativePath: MaybeRefOrGetter<string>, silent: true): ComputedRef<string | undefined>;
327
329
 
328
- export declare function useAbsolutePath(relativePath: MaybeRefOrGetter<string>, slient?: false): ComputedRef<string>;
330
+ export declare function useAbsolutePath(relativePath: MaybeRefOrGetter<string>, silent?: false): ComputedRef<string>;
329
331
 
330
332
  /**
331
333
  * @reactive `window.activeColorTheme`
@@ -430,7 +432,21 @@ export declare function useDocumentText(doc: MaybeRefOrGetter<TextDocument | und
430
432
  *
431
433
  * @category editor
432
434
  */
433
- export declare function useEditorDecorations(editor: MaybeRefOrGetter<Nullable<TextEditor>>, decorationTypeOrOptions: TextEditorDecorationType | DecorationRenderOptions, rangesOrOptions: MaybeRefOrGetter<readonly Range[] | readonly DecorationOptions[]>): void;
435
+ export declare function useEditorDecorations(editor: MaybeRefOrGetter<Nullable<TextEditor>>, decorationTypeOrOptions: TextEditorDecorationType | DecorationRenderOptions, decorations: MaybeRef<readonly Range[] | readonly DecorationOptions[]> | ((editor: TextEditor) => Awaitable<readonly Range[] | readonly DecorationOptions[]>), options?: UseEditorDecorationsOptions): {
436
+ /**
437
+ * Manually trigger the decoration update.
438
+ */
439
+ update: () => Promise<void>;
440
+ };
441
+
442
+ export declare interface UseEditorDecorationsOptions {
443
+ /**
444
+ * The triggers to update the decorations.
445
+ *
446
+ * @default ['effect', 'documentChanged']
447
+ */
448
+ updateOn?: ('effect' | 'documentChanged')[];
449
+ }
434
450
 
435
451
  /**
436
452
  * @category utilities
@@ -472,23 +488,7 @@ export declare function useFetchTasks(filter?: MaybeRefOrGetter<TaskFilter | und
472
488
  * @reactive `Uri.file`
473
489
  * @category utilities
474
490
  */
475
- export declare function useFileUri(path: MaybeRefOrGetter<string>): ShallowReactive< {
476
- readonly scheme: string;
477
- readonly authority: string;
478
- readonly path: string;
479
- readonly query: string;
480
- readonly fragment: string;
481
- readonly fsPath: string;
482
- with(change: {
483
- scheme?: string | undefined;
484
- authority?: string | undefined;
485
- path?: string | undefined;
486
- query?: string | undefined;
487
- fragment?: string | undefined;
488
- }): Uri;
489
- toString(): string;
490
- toJSON(): any;
491
- }>;
491
+ export declare function useFileUri(path: MaybeRefOrGetter<string>): ComputedRef<Uri>;
492
492
 
493
493
  /**
494
494
  * @reactive `languages.registerFoldingRangeProvider`
@@ -505,7 +505,7 @@ export declare interface UseFSWatcher {
505
505
  /**
506
506
  * @reactive `workspace.createFileSystemWatcher`
507
507
  */
508
- export declare function useFsWatcher(globPattern: MaybeRefOrGetter<GlobPattern | GlobPattern[]>, ignoreCreateEvents?: MaybeNullableRefOrGetter<boolean>, ignoreChangeEvents?: MaybeNullableRefOrGetter<boolean>, ignoreDeleteEvents?: MaybeNullableRefOrGetter<boolean>): UseFSWatcher;
508
+ export declare function useFsWatcher(globPattern: MaybeRefOrGetter<GlobPattern | readonly GlobPattern[] | ReadonlySet<GlobPattern>>, ignoreCreateEvents?: MaybeNullableRefOrGetter<boolean>, ignoreChangeEvents?: MaybeNullableRefOrGetter<boolean>, ignoreDeleteEvents?: MaybeNullableRefOrGetter<boolean>): UseFSWatcher;
509
509
 
510
510
  /**
511
511
  * Determines if the current color theme is dark. See `vscode::ColorTheme.kind`.
@@ -720,28 +720,6 @@ export declare type UseTreeViewOptions<T> = Omit<TreeViewOptions<T>, 'treeDataPr
720
720
  watchSource?: WatchSource<any>;
721
721
  };
722
722
 
723
- /**
724
- * @reactive `Uri`
725
- * @category utilities
726
- */
727
- export declare function useUri(uri: MaybeRefOrGetter<Uri>): ShallowReactive< {
728
- readonly scheme: string;
729
- readonly authority: string;
730
- readonly path: string;
731
- readonly query: string;
732
- readonly fragment: string;
733
- readonly fsPath: string;
734
- with(change: {
735
- scheme?: string | undefined;
736
- authority?: string | undefined;
737
- path?: string | undefined;
738
- query?: string | undefined;
739
- fragment?: string | undefined;
740
- }): Uri;
741
- toString(): string;
742
- toJSON(): any;
743
- }>;
744
-
745
723
  /**
746
724
  * Reactively set the badge of a view (`vscode::TreeView` or `vscode::WebviewView`).
747
725
  *
package/dist/index.js CHANGED
@@ -1,100 +1,100 @@
1
- import { getCurrentScope as O, onScopeDispose as V, shallowRef as d, effectScope as K, computed as v, reactive as Q, toValue as r, watchEffect as b, watch as D, ref as x, shallowReactive as F, toRaw as z, isRef as Y } from "@reactive-vscode/reactivity";
1
+ import { getCurrentScope as L, onScopeDispose as P, shallowRef as d, effectScope as Q, computed as g, reactive as U, toValue as o, watchEffect as C, watch as b, ref as y, shallowReactive as q, toRaw as Y, isRef as G } from "@reactive-vscode/reactivity";
2
2
  export * from "@reactive-vscode/reactivity";
3
- import { workspace as w, commands as y, window as c, debug as I, extensions as R, comments as G, env as S, EventEmitter as L, tasks as p, Uri as X, languages as Z, ColorThemeKind as P, l10n as N } from "vscode";
3
+ import { workspace as D, commands as A, window as l, debug as W, extensions as V, comments as J, env as E, EventEmitter as N, tasks as x, Uri as X, languages as Z, ColorThemeKind as O, l10n as F } from "vscode";
4
4
  function _(e) {
5
- return O() ? (V(e), !0) : !1;
5
+ return L() ? (P(e), !0) : !1;
6
6
  }
7
- function W(e, t) {
7
+ function $(e, t) {
8
8
  const n = /* @__PURE__ */ new Map();
9
9
  return (...a) => {
10
10
  const i = t(...a);
11
- let o = n.get(i);
12
- return o ? o.refCount++ : (o = {
11
+ let r = n.get(i);
12
+ return r ? r.refCount++ : (r = {
13
13
  data: e(...a),
14
14
  refCount: 1
15
- }, n.set(i, o)), _(() => {
16
- --o.refCount === 0 && n.delete(i);
17
- }), o.data;
15
+ }, n.set(i, r)), _(() => {
16
+ --r.refCount === 0 && n.delete(i);
17
+ }), r.data;
18
18
  };
19
19
  }
20
- function m(e) {
20
+ function h(e) {
21
21
  let t;
22
22
  return () => t ?? (t = e());
23
23
  }
24
- const $ = [];
24
+ const M = [];
25
25
  function ge(e) {
26
- $.push(e);
26
+ M.push(e);
27
27
  }
28
- const E = d(null), A = K();
29
- function he(e) {
28
+ const k = d(null), I = Q();
29
+ function me(e) {
30
30
  return {
31
- activate: (t) => (E.value = t, A.run(() => (M.map((n) => n(t)), e()))),
31
+ activate: (t) => (k.value = t, I.run(() => (j.map((n) => n(t)), e()))),
32
32
  deactivate: () => {
33
- $.map((t) => t()), A.stop();
33
+ M.map((t) => t()), I.stop();
34
34
  }
35
35
  };
36
36
  }
37
- const M = [];
38
- function j(e) {
39
- E.value ? e(E.value) : M.push(e);
37
+ const j = [];
38
+ function B(e) {
39
+ k.value ? e(k.value) : j.push(e);
40
40
  }
41
41
  function ee(e, t, n) {
42
- const a = !e, i = w.getConfiguration(a ? void 0 : e, n);
43
- function o(l, f) {
44
- const h = d(f), C = v({
45
- get: () => h.value,
46
- set: (g) => {
47
- h.value = g, i.update(l, g);
42
+ const a = !e, i = D.getConfiguration(a ? void 0 : e, n);
43
+ function r(c, f) {
44
+ const m = d(f), w = g({
45
+ get: () => m.value,
46
+ set: (v) => {
47
+ m.value = v, i.update(c, v);
48
48
  }
49
49
  });
50
- return C.update = async (g, U, J) => {
51
- await i.update(l, g, U, J), C.value = g;
52
- }, C.set = (g) => {
53
- h.value = g;
54
- }, C;
50
+ return w.update = async (v, T, p) => {
51
+ await i.update(c, v, T, p), w.value = v;
52
+ }, w.set = (v) => {
53
+ m.value = v;
54
+ }, w;
55
55
  }
56
56
  const s = Object.fromEntries(
57
- Object.keys(t).map((l) => [l, o(l, i.get(l))])
57
+ Object.keys(t).map((c) => [c, r(c, i.get(c))])
58
58
  );
59
- return j(() => {
60
- u(w.onDidChangeConfiguration(
61
- a ? (l) => {
62
- const f = w.getConfiguration();
63
- for (const h in t)
64
- l.affectsConfiguration(h) && s[h].set(f.get(h));
65
- } : (l) => {
66
- if (!l.affectsConfiguration(e))
59
+ return B(() => {
60
+ u(D.onDidChangeConfiguration(
61
+ a ? (c) => {
62
+ const f = D.getConfiguration();
63
+ for (const m in t)
64
+ c.affectsConfiguration(m) && s[m].set(f.get(m));
65
+ } : (c) => {
66
+ if (!c.affectsConfiguration(e))
67
67
  return;
68
- const f = w.getConfiguration(e);
69
- for (const h in t)
70
- l.affectsConfiguration(`${e}.${h}`) && s[h].set(f.get(h));
68
+ const f = D.getConfiguration(e);
69
+ for (const m in t)
70
+ c.affectsConfiguration(`${e}.${m}`) && s[m].set(f.get(m));
71
71
  }
72
72
  ));
73
73
  }), s;
74
74
  }
75
- function me(e, t, n) {
75
+ function he(e, t, n) {
76
76
  const a = ee(e, t, n);
77
- return Q({
77
+ return U({
78
78
  ...a,
79
- $update(i, o, s, l) {
80
- return a[i].update(o, s, l);
79
+ $update(i, r, s, c) {
80
+ return a[i].update(r, s, c);
81
81
  },
82
- $set(i, o) {
83
- return a[i].set(o);
82
+ $set(i, r) {
83
+ return a[i].set(r);
84
84
  }
85
85
  });
86
86
  }
87
87
  function Ce(e, t) {
88
- const n = d(null), a = [], i = (o) => (...s) => n.value ? n.value[o](...s) : (a.push([o, s]), null);
89
- return j(() => {
88
+ const n = d(null), a = [], i = (r) => (...s) => n.value ? n.value[r](...s) : (a.push([r, s]), null);
89
+ return B(() => {
90
90
  n.value = ue(e, t);
91
- for (const [o, s] of a)
92
- n.value[o](...s);
91
+ for (const [r, s] of a)
92
+ n.value[r](...s);
93
93
  }), {
94
94
  logger: n,
95
- outputChannel: v(() => {
96
- var o;
97
- return (o = n.value) == null ? void 0 : o.outputChannel;
95
+ outputChannel: g(() => {
96
+ var r;
97
+ return (r = n.value) == null ? void 0 : r.outputChannel;
98
98
  }),
99
99
  info: i("info"),
100
100
  warn: i("warn"),
@@ -108,255 +108,246 @@ function Ce(e, t) {
108
108
  };
109
109
  }
110
110
  function be(e, ...t) {
111
- return y.executeCommand(e, ...t);
111
+ return A.executeCommand(e, ...t);
112
112
  }
113
113
  function te(e, t = !1) {
114
- const n = E.value;
114
+ const n = k.value;
115
115
  if (!n && !t)
116
116
  throw new Error("Cannot get absolute path because the extension is not activated yet");
117
117
  return n == null ? void 0 : n.asAbsolutePath(e);
118
118
  }
119
119
  function we(e, t = !1) {
120
- return v(() => te(r(e), t));
120
+ return g(() => te(o(e), t));
121
121
  }
122
122
  function u(e) {
123
- return (O() ?? A).cleanups.push(e.dispose.bind(e)), e;
123
+ return (L() ?? I).cleanups.push(e.dispose.bind(e)), e;
124
124
  }
125
- const ne = m(() => {
126
- const e = d(c.activeColorTheme);
127
- return u(c.onDidChangeActiveColorTheme((t) => {
125
+ const ne = h(() => {
126
+ const e = d(l.activeColorTheme);
127
+ return u(l.onDidChangeActiveColorTheme((t) => {
128
128
  e.value = t;
129
129
  })), e;
130
- }), De = m(() => {
131
- const e = d(I.activeDebugSession);
132
- return u(I.onDidChangeActiveDebugSession((t) => {
130
+ }), De = h(() => {
131
+ const e = d(W.activeDebugSession);
132
+ return u(W.onDidChangeActiveDebugSession((t) => {
133
133
  e.value = t;
134
- })), v(() => e.value);
135
- }), ae = m(() => {
136
- const e = d(c.activeTextEditor);
137
- return u(c.onDidChangeActiveTextEditor((t) => {
134
+ })), g(() => e.value);
135
+ }), ae = h(() => {
136
+ const e = d(l.activeTextEditor);
137
+ return u(l.onDidChangeActiveTextEditor((t) => {
138
138
  e.value = t;
139
139
  })), e;
140
140
  });
141
- function ie(e, t, n) {
142
- const a = "key" in t ? t : c.createTextEditorDecorationType(t);
143
- b(() => {
144
- var i;
145
- (i = r(e)) == null || i.setDecorations(a, r(n));
146
- });
141
+ function ie(e) {
142
+ var n;
143
+ const t = d((n = o(e)) == null ? void 0 : n.getText());
144
+ return C(() => {
145
+ var a;
146
+ t.value = (a = o(e)) == null ? void 0 : a.getText();
147
+ }), u(D.onDidChangeTextDocument((a) => {
148
+ a.document === o(e) && (t.value = a.document.getText());
149
+ })), t;
150
+ }
151
+ function re(e, t, n, a = {}) {
152
+ const {
153
+ updateOn: i = ["effect", "documentChanged"]
154
+ } = a, r = "key" in t ? t : u(l.createTextEditorDecorationType(t)), s = async () => {
155
+ const f = o(e);
156
+ f && f.setDecorations(
157
+ r,
158
+ typeof n == "function" ? await n(f) : o(n)
159
+ );
160
+ }, c = i.includes("documentChanged") ? ie(() => {
161
+ var f;
162
+ return (f = o(e)) == null ? void 0 : f.document;
163
+ }) : null;
164
+ return i.includes("effect") ? C(async () => {
165
+ c == null || c.value, await s();
166
+ }) : c && b(c, s), {
167
+ /**
168
+ * Manually trigger the decoration update.
169
+ */
170
+ update: s
171
+ };
147
172
  }
148
173
  function Te(e, t) {
149
174
  const n = ae();
150
- ie(n, e, t);
175
+ re(n, e, t);
151
176
  }
152
- const Se = m(() => {
153
- const e = d(c.activeNotebookEditor);
154
- return u(c.onDidChangeActiveNotebookEditor((t) => {
177
+ const pe = h(() => {
178
+ const e = d(l.activeNotebookEditor);
179
+ return u(l.onDidChangeActiveNotebookEditor((t) => {
155
180
  e.value = t;
156
181
  })), e;
157
- }), pe = m(() => {
158
- const e = d(c.activeTerminal);
159
- return u(c.onDidChangeActiveTerminal((t) => {
182
+ }), Se = h(() => {
183
+ const e = d(l.activeTerminal);
184
+ return u(l.onDidChangeActiveTerminal((t) => {
160
185
  e.value = t;
161
186
  })), e;
162
- }), Ee = m(() => {
163
- const e = d(R.all);
164
- return u(R.onDidChange(() => {
165
- e.value = R.all;
166
- })), v(() => e.value);
187
+ }), Ee = h(() => {
188
+ const e = d(V.all);
189
+ return u(V.onDidChange(() => {
190
+ e.value = V.all;
191
+ })), g(() => e.value);
167
192
  });
168
- function re(e, t) {
169
- u(y.registerCommand(e, t));
193
+ function oe(e, t) {
194
+ u(A.registerCommand(e, t));
170
195
  }
171
196
  function xe(e) {
172
197
  for (const [t, n] of Object.entries(e))
173
- n && re(t, n);
198
+ n && oe(t, n);
174
199
  }
175
200
  function ke(e, t) {
176
- return u(G.createCommentController(e, t));
201
+ return u(J.createCommentController(e, t));
177
202
  }
178
- function B(e) {
203
+ function H(e) {
179
204
  var n;
180
- const t = d((n = r(e)) == null ? void 0 : n.state);
181
- return D(e, () => {
205
+ const t = d((n = o(e)) == null ? void 0 : n.state);
206
+ return b(e, () => {
182
207
  var a;
183
- t.value = (a = r(e)) == null ? void 0 : a.state;
184
- }), u(c.onDidChangeTerminalState((a) => {
185
- a === r(e) && (t.value = a.state);
186
- })), v(() => t.value);
208
+ t.value = (a = o(e)) == null ? void 0 : a.state;
209
+ }), u(l.onDidChangeTerminalState((a) => {
210
+ a === o(e) && (t.value = a.state);
211
+ })), g(() => t.value);
187
212
  }
188
213
  function ye(...e) {
189
- const t = x(null);
214
+ const t = y(null);
190
215
  function n() {
191
216
  return !!t.value && t.value.exitStatus == null;
192
217
  }
193
218
  function a() {
194
- return n() ? t.value : t.value = c.createTerminal(...e);
219
+ return n() ? t.value : t.value = l.createTerminal(...e);
195
220
  }
196
- function i(l) {
197
- a().sendText(l);
221
+ function i(c) {
222
+ a().sendText(c);
198
223
  }
199
- function o() {
224
+ function r() {
200
225
  a().show();
201
226
  }
202
227
  function s() {
203
228
  n() && (t.value.sendText(""), t.value.dispose(), t.value = null);
204
229
  }
205
- return V(s), {
230
+ return P(s), {
206
231
  terminal: t,
207
232
  getIsActive: n,
208
- show: o,
233
+ show: r,
209
234
  sendText: i,
210
235
  close: s,
211
- state: B(t)
236
+ state: H(t)
212
237
  };
213
238
  }
214
- const Re = m(() => {
215
- const e = d(S.shell);
216
- return u(S.onDidChangeShell((t) => {
239
+ const Re = h(() => {
240
+ const e = d(E.shell);
241
+ return u(E.onDidChangeShell((t) => {
217
242
  e.value = t;
218
- })), v(() => e.value);
243
+ })), g(() => e.value);
219
244
  });
220
- function Ae(e) {
221
- var n;
222
- const t = d((n = r(e)) == null ? void 0 : n.getText());
223
- return b(() => {
224
- var a;
225
- t.value = (a = r(e)) == null ? void 0 : a.getText();
226
- }), u(w.onDidChangeTextDocument((a) => {
227
- a.document === r(e) && (t.value = a.document.getText());
228
- })), t;
229
- }
230
- function T(e, t) {
231
- const n = (a, i, o) => {
232
- u(e(a, i, o));
245
+ function S(e, t) {
246
+ const n = (a, i, r) => {
247
+ u(e(a, i, r));
233
248
  };
234
249
  return t == null || t.forEach((a) => n(a)), n;
235
250
  }
236
- function k(e, t = []) {
237
- const n = Array.isArray(e) ? e : t ?? [], a = u(Array.isArray(e) || e == null ? new L() : e), i = T(a.event, n);
238
- for (const o of n)
239
- i(o);
251
+ function R(e, t = []) {
252
+ const n = Array.isArray(e) ? e : t ?? [], a = u(Array.isArray(e) || e == null ? new N() : e), i = S(a.event, n);
253
+ for (const r of n)
254
+ i(r);
240
255
  return {
241
256
  event: a.event,
242
257
  fire: a.fire.bind(a),
243
258
  addListener: i
244
259
  };
245
260
  }
246
- async function Ve(e) {
247
- const t = E.value.secrets, n = x(await t.get(e));
261
+ async function Ae(e) {
262
+ const t = k.value.secrets, n = y(await t.get(e));
248
263
  return n.set = async (a) => {
249
264
  n.value = a, await t.store(e, a);
250
265
  }, n.remove = async () => {
251
266
  n.value = void 0, await t.delete(e);
252
267
  }, u(t.onDidChange(async (a) => {
253
268
  a.key === e && (n.value = await t.get(e));
254
- })), D(n, (a) => {
269
+ })), b(n, (a) => {
255
270
  a === void 0 ? t.delete(e) : t.store(e, a);
256
271
  }), n;
257
272
  }
258
- function Ie(e) {
259
- return v(() => p.fetchTasks(r(e)));
260
- }
261
- function oe(e) {
262
- return F({
263
- get scheme() {
264
- return r(e).scheme;
265
- },
266
- get authority() {
267
- return r(e).authority;
268
- },
269
- get path() {
270
- return r(e).path;
271
- },
272
- get query() {
273
- return r(e).query;
274
- },
275
- get fragment() {
276
- return r(e).fragment;
277
- },
278
- get fsPath() {
279
- return r(e).fsPath;
280
- },
281
- with(t) {
282
- return r(e).with(t);
283
- },
284
- toString() {
285
- return r(e).toString();
286
- },
287
- toJSON() {
288
- return r(e).toJSON();
289
- }
290
- });
273
+ function Ve(e) {
274
+ return g(() => x.fetchTasks(o(e)));
291
275
  }
292
- function Pe(e) {
293
- return oe(() => X.file(r(e)));
276
+ function Ie(e) {
277
+ return g(() => X.file(o(e)));
294
278
  }
295
- function Ne(e, t) {
296
- const n = new L(), a = d();
297
- b(() => {
298
- a.value && n.fire(), a.value = r(t);
279
+ function Pe(e, t) {
280
+ const n = new N(), a = d();
281
+ C(() => {
282
+ a.value && n.fire(), a.value = o(t);
299
283
  }), u(Z.registerFoldingRangeProvider(
300
284
  e,
301
285
  {
302
286
  onDidChangeFoldingRanges: n.event,
303
- provideFoldingRanges(i, o, s) {
304
- var l;
305
- return (l = a.value) == null ? void 0 : l.call(a, i, o, s);
287
+ provideFoldingRanges(i, r, s) {
288
+ var c;
289
+ return (c = a.value) == null ? void 0 : c.call(a, i, r, s);
306
290
  }
307
291
  }
308
292
  ));
309
293
  }
310
- function Oe(e, t, n, a) {
311
- const i = F(/* @__PURE__ */ new Map()), o = k(), s = k(), l = k();
312
- return b(() => {
313
- const f = r(e), h = Array.isArray(f) ? f : [f];
314
- for (const [C, g] of i)
315
- h.includes(C) || (g.dispose(), i.delete(C));
316
- for (const C of h)
317
- if (!i.has(C)) {
318
- const g = w.createFileSystemWatcher(
319
- C,
320
- r(t) || !1,
321
- r(n) || !1,
322
- r(a) || !1
294
+ function We(e, t, n, a) {
295
+ const i = q(/* @__PURE__ */ new Map()), r = R(), s = R(), c = R(), f = g(() => {
296
+ const v = o(e);
297
+ return Array.isArray(v) ? v : v instanceof Set ? Array.from(v) : [v];
298
+ });
299
+ function m() {
300
+ const v = f.value;
301
+ for (const [T, p] of i)
302
+ v.includes(T) || (p.dispose(), i.delete(T));
303
+ for (const T of v)
304
+ if (!i.has(T)) {
305
+ const p = D.createFileSystemWatcher(
306
+ T,
307
+ o(t) || !1,
308
+ o(n) || !1,
309
+ o(a) || !1
323
310
  );
324
- g.onDidCreate(o.fire), g.onDidChange(s.fire), g.onDidDelete(l.fire);
311
+ p.onDidCreate(r.fire), p.onDidChange(s.fire), p.onDidDelete(c.fire);
325
312
  }
326
- }), V(() => {
327
- for (const f of i.values())
328
- f.dispose();
313
+ }
314
+ function w() {
315
+ for (const v of i.values())
316
+ v.dispose();
329
317
  i.clear();
330
- }), {
318
+ }
319
+ return b(f, m), b([t, n, a], () => {
320
+ w(), m();
321
+ }), P(w), {
331
322
  watchers: i,
332
- onDidCreate: o.event,
323
+ onDidCreate: r.event,
333
324
  onDidChange: s.event,
334
- onDidDelete: l.event
325
+ onDidDelete: c.event
335
326
  };
336
327
  }
337
- const Fe = m(() => {
328
+ const Oe = h(() => {
338
329
  const e = ne();
339
- return v(() => e.value.kind === P.Dark || e.value.kind === P.HighContrast);
340
- }), Le = m(() => {
341
- const e = d(S.isTelemetryEnabled);
342
- return u(S.onDidChangeTelemetryEnabled((t) => {
330
+ return g(() => e.value.kind === O.Dark || e.value.kind === O.HighContrast);
331
+ }), Fe = h(() => {
332
+ const e = d(E.isTelemetryEnabled);
333
+ return u(E.onDidChangeTelemetryEnabled((t) => {
343
334
  e.value = t;
344
- })), v(() => e.value);
335
+ })), g(() => e.value);
345
336
  });
346
- function We(e, ...t) {
347
- return v(() => typeof t[0] == "object" ? N.t(r(e), z(t[0])) : N.t(r(e), ...t.map(r)));
337
+ function Le(e, ...t) {
338
+ return g(() => typeof t[0] == "object" ? F.t(o(e), Y(t[0])) : F.t(o(e), ...t.map(o)));
348
339
  }
349
340
  function se(e, t) {
350
- return u(c.createOutputChannel(e, t));
341
+ return u(l.createOutputChannel(e, t));
351
342
  }
352
- function $e(e) {
353
- const t = /* @__PURE__ */ new Date(), n = String(t.getFullYear()).padStart(4, "0"), a = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), o = String(t.getHours()).padStart(2, "0"), s = String(t.getMinutes()).padStart(2, "0"), l = String(t.getSeconds()).padStart(2, "0"), f = String(t.getMilliseconds()).padStart(3, "0");
354
- return `${n}-${a}-${i} ${o}:${s}:${l}.${f} [${e}] `;
343
+ function Ne(e) {
344
+ const t = /* @__PURE__ */ new Date(), n = String(t.getFullYear()).padStart(4, "0"), a = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), r = String(t.getHours()).padStart(2, "0"), s = String(t.getMinutes()).padStart(2, "0"), c = String(t.getSeconds()).padStart(2, "0"), f = String(t.getMilliseconds()).padStart(3, "0");
345
+ return `${n}-${a}-${i} ${r}:${s}:${c}.${f} [${e}] `;
355
346
  }
356
347
  function ue(e, t = {}) {
357
- const n = t.outputChannel ?? se(e), a = (i) => (...o) => {
348
+ const n = t.outputChannel ?? se(e), a = (i) => (...r) => {
358
349
  var s;
359
- n.appendLine((((s = t.getPrefix) == null ? void 0 : s.call(t, i)) ?? "") + o.join(" "));
350
+ n.appendLine((((s = t.getPrefix) == null ? void 0 : s.call(t, i)) ?? "") + r.join(" "));
360
351
  };
361
352
  return {
362
353
  outputChannel: n,
@@ -372,34 +363,34 @@ function ue(e, t = {}) {
372
363
  hide: n.hide.bind(n)
373
364
  };
374
365
  }
375
- const Me = m(() => {
376
- const e = d(S.logLevel);
377
- return u(S.onDidChangeLogLevel((t) => {
366
+ const $e = h(() => {
367
+ const e = d(E.logLevel);
368
+ return u(E.onDidChangeLogLevel((t) => {
378
369
  e.value = t;
379
- })), v(() => e.value);
370
+ })), g(() => e.value);
380
371
  });
381
372
  function ce(e) {
382
373
  var n;
383
- const t = d(((n = r(e)) == null ? void 0 : n.selections) ?? []);
384
- return D(e, () => {
374
+ const t = d(((n = o(e)) == null ? void 0 : n.selections) ?? []);
375
+ return b(e, () => {
385
376
  var a;
386
- t.value = ((a = r(e)) == null ? void 0 : a.selections) ?? [];
387
- }), u(c.onDidChangeNotebookEditorSelection((a) => {
388
- a.notebookEditor === r(e) && (t.value = a.selections);
389
- })), v({
377
+ t.value = ((a = o(e)) == null ? void 0 : a.selections) ?? [];
378
+ }), u(l.onDidChangeNotebookEditorSelection((a) => {
379
+ a.notebookEditor === o(e) && (t.value = a.selections);
380
+ })), g({
390
381
  get() {
391
382
  return t.value;
392
383
  },
393
384
  set(a) {
394
385
  t.value = a;
395
- const i = r(e);
386
+ const i = o(e);
396
387
  i && (i.selections = a);
397
388
  }
398
389
  });
399
390
  }
400
- function je(e) {
391
+ function Me(e) {
401
392
  const t = ce(e);
402
- return v({
393
+ return g({
403
394
  get() {
404
395
  return t.value[0];
405
396
  },
@@ -408,25 +399,25 @@ function je(e) {
408
399
  }
409
400
  });
410
401
  }
411
- function Be(e) {
402
+ function je(e) {
412
403
  var n;
413
- const t = d(((n = r(e)) == null ? void 0 : n.visibleRanges) ?? []);
414
- return D(e, () => {
404
+ const t = d(((n = o(e)) == null ? void 0 : n.visibleRanges) ?? []);
405
+ return b(e, () => {
415
406
  var a;
416
- t.value = ((a = r(e)) == null ? void 0 : a.visibleRanges) ?? [];
417
- }), u(c.onDidChangeNotebookEditorVisibleRanges((a) => {
418
- a.notebookEditor === r(e) && (t.value = a.visibleRanges);
419
- })), v(() => t.value);
407
+ t.value = ((a = o(e)) == null ? void 0 : a.visibleRanges) ?? [];
408
+ }), u(l.onDidChangeNotebookEditorVisibleRanges((a) => {
409
+ a.notebookEditor === o(e) && (t.value = a.visibleRanges);
410
+ })), g(() => t.value);
420
411
  }
421
- const He = m(() => {
422
- const e = d(c.terminals);
412
+ const Be = h(() => {
413
+ const e = d(l.terminals);
423
414
  function t() {
424
- e.value = c.terminals;
415
+ e.value = l.terminals;
425
416
  }
426
- return u(c.onDidOpenTerminal(t)), u(c.onDidCloseTerminal(t)), e;
417
+ return u(l.onDidOpenTerminal(t)), u(l.onDidCloseTerminal(t)), e;
427
418
  });
428
- function qe(e = {}) {
429
- const t = u(c.createQuickPick()), n = T(t.onDidChangeActive), a = T(t.onDidChangeSelection), i = T(t.onDidAccept), o = T(t.onDidHide), s = T(t.onDidTriggerButton), l = T(t.onDidChangeValue);
419
+ function He(e = {}) {
420
+ const t = u(l.createQuickPick()), n = S(t.onDidChangeActive), a = S(t.onDidChangeSelection), i = S(t.onDidAccept), r = S(t.onDidHide), s = S(t.onDidTriggerButton), c = S(t.onDidChangeValue);
430
421
  [
431
422
  "items",
432
423
  "buttons",
@@ -441,32 +432,32 @@ function qe(e = {}) {
441
432
  "matchOnDescription",
442
433
  "matchOnDetail",
443
434
  "keepScrollPosition"
444
- ].forEach((g) => {
445
- e[g] && b(() => t[g] = r(e[g]));
435
+ ].forEach((v) => {
436
+ e[v] && C(() => t[v] = o(e[v]));
446
437
  }), e.value && (t.value = e.value);
447
438
  const f = d(t.value);
448
- l((g) => f.value = g), e.activeItems && (t.activeItems = e.activeItems);
449
- const h = d(t.activeItems);
450
- n((g) => h.value = g), e.selectedItems && (t.selectedItems = e.selectedItems);
451
- const C = d(t.selectedItems);
452
- return a((g) => C.value = g), {
439
+ c((v) => f.value = v), e.activeItems && (t.activeItems = e.activeItems);
440
+ const m = d(t.activeItems);
441
+ n((v) => m.value = v), e.selectedItems && (t.selectedItems = e.selectedItems);
442
+ const w = d(t.selectedItems);
443
+ return a((v) => w.value = v), {
453
444
  ...t,
454
445
  onDidChangeActive: n,
455
446
  onDidChangeSelection: a,
456
447
  onDidAccept: i,
457
- onDidHide: o,
448
+ onDidHide: r,
458
449
  onDidTriggerButton: s,
459
- onDidChangeValue: l,
450
+ onDidChangeValue: c,
460
451
  value: f,
461
- activeItems: h,
462
- selectedItems: C
452
+ activeItems: m,
453
+ selectedItems: w
463
454
  };
464
455
  }
465
- function Ue(e) {
466
- const t = u(e.id ? c.createStatusBarItem(e.id, e.alignment, e.priority) : c.createStatusBarItem(e.alignment, e.priority));
456
+ function ze(e) {
457
+ const t = u(e.id ? l.createStatusBarItem(e.id, e.alignment, e.priority) : l.createStatusBarItem(e.alignment, e.priority));
467
458
  function n(a) {
468
459
  const i = e[a];
469
- i != null && b(() => t[a] = r(i));
460
+ i != null && C(() => t[a] = o(i));
470
461
  }
471
462
  return [
472
463
  "name",
@@ -478,15 +469,15 @@ function Ue(e) {
478
469
  "accessibilityInformation"
479
470
  ].forEach(n), t;
480
471
  }
481
- const Je = m(() => {
482
- const e = d(p.taskExecutions);
472
+ const Ke = h(() => {
473
+ const e = d(x.taskExecutions);
483
474
  function t() {
484
- e.value = p.taskExecutions;
475
+ e.value = x.taskExecutions;
485
476
  }
486
- return u(p.onDidStartTask(t)), u(p.onDidEndTask(t)), v(() => e.value);
477
+ return u(x.onDidStartTask(t)), u(x.onDidEndTask(t)), g(() => e.value);
487
478
  });
488
- function Ke(...e) {
489
- const t = u(c.createTerminal(...e));
479
+ function Qe(...e) {
480
+ const t = u(l.createTerminal(...e));
490
481
  return {
491
482
  terminal: t,
492
483
  get name() {
@@ -504,39 +495,39 @@ function Ke(...e) {
504
495
  sendText: t.sendText.bind(t),
505
496
  show: t.show.bind(t),
506
497
  hide: t.hide.bind(t),
507
- state: B(t)
498
+ state: H(t)
508
499
  };
509
500
  }
510
501
  function le(e, t) {
511
- u(y.registerTextEditorCommand(e, t));
502
+ u(A.registerTextEditorCommand(e, t));
512
503
  }
513
- function Qe(e) {
504
+ function Ue(e) {
514
505
  for (const [t, n] of Object.entries(e))
515
506
  le(t, n);
516
507
  }
517
508
  function de(e, t) {
518
509
  var a;
519
- const n = d(((a = r(e)) == null ? void 0 : a.selections) ?? []);
520
- return D(e, () => {
510
+ const n = d(((a = o(e)) == null ? void 0 : a.selections) ?? []);
511
+ return b(e, () => {
521
512
  var i;
522
- n.value = ((i = r(e)) == null ? void 0 : i.selections) ?? [];
523
- }), u(c.onDidChangeTextEditorSelection((i) => {
524
- const o = r(e), s = r(t);
525
- i.textEditor === o && (!s || s.includes(i.kind)) && (n.value = i.selections);
526
- })), v({
513
+ n.value = ((i = o(e)) == null ? void 0 : i.selections) ?? [];
514
+ }), u(l.onDidChangeTextEditorSelection((i) => {
515
+ const r = o(e), s = o(t);
516
+ i.textEditor === r && (!s || s.includes(i.kind)) && (n.value = i.selections);
517
+ })), g({
527
518
  get() {
528
519
  return n.value;
529
520
  },
530
521
  set(i) {
531
522
  n.value = i;
532
- const o = r(e);
533
- o && (o.selections = i);
523
+ const r = o(e);
524
+ r && (r.selections = i);
534
525
  }
535
526
  });
536
527
  }
537
- function ze(e, t) {
528
+ function qe(e, t) {
538
529
  const n = de(e, t);
539
- return v({
530
+ return g({
540
531
  get() {
541
532
  return n.value[0];
542
533
  },
@@ -547,41 +538,41 @@ function ze(e, t) {
547
538
  }
548
539
  function Ye(e) {
549
540
  var n;
550
- const t = d((n = r(e)) == null ? void 0 : n.viewColumn);
551
- return D(e, () => {
541
+ const t = d((n = o(e)) == null ? void 0 : n.viewColumn);
542
+ return b(e, () => {
552
543
  var a;
553
- t.value = (a = r(e)) == null ? void 0 : a.viewColumn;
554
- }), u(c.onDidChangeTextEditorViewColumn((a) => {
555
- a.textEditor === r(e) && (t.value = a.viewColumn);
556
- })), v(() => t.value);
544
+ t.value = (a = o(e)) == null ? void 0 : a.viewColumn;
545
+ }), u(l.onDidChangeTextEditorViewColumn((a) => {
546
+ a.textEditor === o(e) && (t.value = a.viewColumn);
547
+ })), g(() => t.value);
557
548
  }
558
549
  function Ge(e) {
559
550
  var n;
560
- const t = d(((n = r(e)) == null ? void 0 : n.visibleRanges) ?? []);
561
- return D(e, () => {
551
+ const t = d(((n = o(e)) == null ? void 0 : n.visibleRanges) ?? []);
552
+ return b(e, () => {
562
553
  var a;
563
- t.value = ((a = r(e)) == null ? void 0 : a.visibleRanges) ?? [];
564
- }), u(c.onDidChangeTextEditorVisibleRanges((a) => {
565
- a.textEditor === r(e) && (t.value = a.visibleRanges);
566
- })), v(() => t.value);
567
- }
568
- function H(e, t) {
569
- b(() => {
570
- const n = r(e);
571
- n && (n.badge = r(t));
554
+ t.value = ((a = o(e)) == null ? void 0 : a.visibleRanges) ?? [];
555
+ }), u(l.onDidChangeTextEditorVisibleRanges((a) => {
556
+ a.textEditor === o(e) && (t.value = a.visibleRanges);
557
+ })), g(() => t.value);
558
+ }
559
+ function z(e, t) {
560
+ C(() => {
561
+ const n = o(e);
562
+ n && (n.badge = o(t));
572
563
  });
573
564
  }
574
- function q(e, t) {
575
- b(() => {
576
- const n = r(e);
577
- n && (n.title = r(t));
565
+ function K(e, t) {
566
+ C(() => {
567
+ const n = o(e);
568
+ n && (n.title = o(t));
578
569
  });
579
570
  }
580
- const Xe = W(
571
+ const Je = $(
581
572
  (e, t, n) => {
582
- const a = k();
583
- D(t, () => a.fire()), n != null && n.watchSource && D(n.watchSource, () => a.fire());
584
- const i = /* @__PURE__ */ new WeakMap(), o = u(c.createTreeView(e, {
573
+ const a = R();
574
+ b(t, () => a.fire()), n != null && n.watchSource && b(n.watchSource, () => a.fire());
575
+ const i = /* @__PURE__ */ new WeakMap(), r = u(l.createTreeView(e, {
585
576
  ...n,
586
577
  treeDataProvider: {
587
578
  ...n,
@@ -590,58 +581,58 @@ const Xe = W(
590
581
  return s.treeItem;
591
582
  },
592
583
  getChildren(s) {
593
- var l;
594
- return s ? ((l = s.children) == null || l.forEach((f) => i.set(f, s)), s.children) : r(t);
584
+ var c;
585
+ return s ? ((c = s.children) == null || c.forEach((f) => i.set(f, s)), s.children) : o(t);
595
586
  },
596
587
  getParent(s) {
597
588
  return i.get(s);
598
589
  }
599
590
  }
600
591
  }));
601
- return n != null && n.title && q(o, n.title), n != null && n.badge && H(o, n.badge), o;
592
+ return n != null && n.title && K(r, n.title), n != null && n.badge && z(r, n.badge), r;
602
593
  },
603
594
  (e) => e
604
595
  );
605
- function Ze(e) {
596
+ function Xe(e) {
606
597
  var a;
607
- const t = x((a = r(e)) == null ? void 0 : a.visible);
598
+ const t = y((a = o(e)) == null ? void 0 : a.visible);
608
599
  function n() {
609
600
  var i;
610
- t.value = (i = r(e)) == null ? void 0 : i.visible;
601
+ t.value = (i = o(e)) == null ? void 0 : i.visible;
611
602
  }
612
- return b((i) => {
613
- const o = r(e);
614
- if (o) {
615
- const s = o.onDidChangeVisibility(n);
603
+ return C((i) => {
604
+ const r = o(e);
605
+ if (r) {
606
+ const s = r.onDidChangeVisibility(n);
616
607
  i(() => s.dispose());
617
608
  }
618
- }), b(n), v(() => !!t.value);
609
+ }), C(n), g(() => !!t.value);
619
610
  }
620
- const _e = m(() => {
621
- const e = d(c.visibleNotebookEditors);
622
- return u(c.onDidChangeVisibleNotebookEditors((t) => {
611
+ const Ze = h(() => {
612
+ const e = d(l.visibleNotebookEditors);
613
+ return u(l.onDidChangeVisibleNotebookEditors((t) => {
623
614
  e.value = t;
624
615
  })), e;
625
- }), et = m(() => {
626
- const e = d(c.visibleTextEditors);
627
- return u(c.onDidChangeVisibleTextEditors((t) => {
616
+ }), _e = h(() => {
617
+ const e = d(l.visibleTextEditors);
618
+ return u(l.onDidChangeVisibleTextEditors((t) => {
628
619
  e.value = t;
629
620
  })), e;
630
621
  });
631
- function tt(e, t, n = !0) {
632
- const a = Y(t) ? t : typeof t == "function" ? v(t) : x(t);
633
- return b(() => {
634
- r(n) && y.executeCommand("setContext", e, a.value);
622
+ function et(e, t, n = !0) {
623
+ const a = G(t) ? t : typeof t == "function" ? g(t) : y(t);
624
+ return C(() => {
625
+ o(n) && A.executeCommand("setContext", e, a.value);
635
626
  }), a;
636
627
  }
637
- const nt = W(
628
+ const tt = $(
638
629
  (e, t, n) => {
639
630
  const a = d(), i = d();
640
- u(c.registerWebviewViewProvider(
631
+ u(l.registerWebviewViewProvider(
641
632
  e,
642
633
  {
643
- resolveWebviewView(f, h) {
644
- a.value = f, i.value = h, n != null && n.onDidReceiveMessage && f.webview.onDidReceiveMessage(n.onDidReceiveMessage);
634
+ resolveWebviewView(f, m) {
635
+ a.value = f, i.value = m, n != null && n.onDidReceiveMessage && f.webview.onDidReceiveMessage(n.onDidReceiveMessage);
645
636
  }
646
637
  },
647
638
  {
@@ -650,109 +641,108 @@ const nt = W(
650
641
  }
651
642
  }
652
643
  ));
653
- const o = x(0);
644
+ const r = y(0);
654
645
  function s() {
655
- o.value++;
646
+ r.value++;
656
647
  }
657
- if (b(() => {
658
- a.value && (a.value.webview.html = `${r(t)}<!--${o.value}-->`);
648
+ if (C(() => {
649
+ a.value && (a.value.webview.html = `${o(t)}<!--${r.value}-->`);
659
650
  }), n != null && n.webviewOptions) {
660
651
  const f = n.webviewOptions;
661
- b(() => {
662
- a.value && (a.value.webview.options = r(f));
652
+ C(() => {
653
+ a.value && (a.value.webview.options = o(f));
663
654
  });
664
655
  }
665
- n != null && n.title && q(a, n.title), n != null && n.badge && H(a, n.badge);
666
- function l(f) {
667
- var h;
668
- return (h = a.value) == null ? void 0 : h.webview.postMessage(f);
656
+ n != null && n.title && K(a, n.title), n != null && n.badge && z(a, n.badge);
657
+ function c(f) {
658
+ var m;
659
+ return (m = a.value) == null ? void 0 : m.webview.postMessage(f);
669
660
  }
670
- return { view: a, context: i, postMessage: l, forceRefresh: s };
661
+ return { view: a, context: i, postMessage: c, forceRefresh: s };
671
662
  },
672
663
  (e) => e
673
- ), at = m(() => {
674
- const e = d(c.state);
675
- return u(c.onDidChangeWindowState((t) => {
664
+ ), nt = h(() => {
665
+ const e = d(l.state);
666
+ return u(l.onDidChangeWindowState((t) => {
676
667
  e.value = t;
677
668
  })), {
678
- focused: v(() => e.value.focused),
679
- active: v(() => e.value.active)
669
+ focused: g(() => e.value.focused),
670
+ active: g(() => e.value.active)
680
671
  };
681
- }), it = m(() => {
682
- const e = d(w.workspaceFolders);
683
- return u(w.onDidChangeWorkspaceFolders(() => {
684
- e.value = w.workspaceFolders;
685
- })), v(() => e.value);
672
+ }), at = h(() => {
673
+ const e = d(D.workspaceFolders);
674
+ return u(D.onDidChangeWorkspaceFolders(() => {
675
+ e.value = D.workspaceFolders;
676
+ })), g(() => e.value);
686
677
  });
687
678
  export {
688
- M as activateCbs,
689
- W as createKeyedComposable,
690
- m as createSingletonComposable,
691
- $ as deactivateCbs,
692
- me as defineConfigObject,
679
+ j as activateCbs,
680
+ $ as createKeyedComposable,
681
+ h as createSingletonComposable,
682
+ M as deactivateCbs,
683
+ he as defineConfigObject,
693
684
  ee as defineConfigs,
694
- he as defineExtension,
685
+ me as defineExtension,
695
686
  Ce as defineLogger,
696
687
  be as executeCommand,
697
- E as extensionContext,
698
- A as extensionScope,
699
- $e as getDefaultLoggerPrefix,
700
- j as onActivate,
688
+ k as extensionContext,
689
+ I as extensionScope,
690
+ Ne as getDefaultLoggerPrefix,
691
+ B as onActivate,
701
692
  ge as onDeactivate,
702
693
  _ as tryOnScopeDispose,
703
694
  we as useAbsolutePath,
704
695
  ne as useActiveColorTheme,
705
696
  De as useActiveDebugSession,
706
697
  Te as useActiveEditorDecorations,
707
- Se as useActiveNotebookEditor,
708
- pe as useActiveTerminal,
698
+ pe as useActiveNotebookEditor,
699
+ Se as useActiveTerminal,
709
700
  ae as useActiveTextEditor,
710
701
  Ee as useAllExtensions,
711
- re as useCommand,
702
+ oe as useCommand,
712
703
  xe as useCommands,
713
704
  ke as useCommentController,
714
705
  ye as useControlledTerminal,
715
706
  Re as useDefaultShell,
716
707
  u as useDisposable,
717
- Ae as useDocumentText,
718
- ie as useEditorDecorations,
719
- T as useEvent,
720
- k as useEventEmitter,
721
- Ve as useExtensionSecret,
722
- Ie as useFetchTasks,
723
- Pe as useFileUri,
724
- Ne as useFoldingRangeProvider,
725
- Oe as useFsWatcher,
726
- Fe as useIsDarkTheme,
727
- Le as useIsTelemetryEnabled,
728
- We as useL10nText,
729
- Me as useLogLevel,
708
+ ie as useDocumentText,
709
+ re as useEditorDecorations,
710
+ S as useEvent,
711
+ R as useEventEmitter,
712
+ Ae as useExtensionSecret,
713
+ Ve as useFetchTasks,
714
+ Ie as useFileUri,
715
+ Pe as useFoldingRangeProvider,
716
+ We as useFsWatcher,
717
+ Oe as useIsDarkTheme,
718
+ Fe as useIsTelemetryEnabled,
719
+ Le as useL10nText,
720
+ $e as useLogLevel,
730
721
  ue as useLogger,
731
- je as useNotebookEditorSelection,
722
+ Me as useNotebookEditorSelection,
732
723
  ce as useNotebookEditorSelections,
733
- Be as useNotebookEditorVisibleRanges,
734
- He as useOpenedTerminals,
724
+ je as useNotebookEditorVisibleRanges,
725
+ Be as useOpenedTerminals,
735
726
  se as useOutputChannel,
736
- qe as useQuickPick,
737
- Ue as useStatusBarItem,
738
- Je as useTaskExecutions,
739
- Ke as useTerminal,
740
- B as useTerminalState,
727
+ He as useQuickPick,
728
+ ze as useStatusBarItem,
729
+ Ke as useTaskExecutions,
730
+ Qe as useTerminal,
731
+ H as useTerminalState,
741
732
  le as useTextEditorCommand,
742
- Qe as useTextEditorCommands,
743
- ze as useTextEditorSelection,
733
+ Ue as useTextEditorCommands,
734
+ qe as useTextEditorSelection,
744
735
  de as useTextEditorSelections,
745
736
  Ye as useTextEditorViewColumn,
746
737
  Ge as useTextEditorVisibleRanges,
747
- Xe as useTreeView,
748
- oe as useUri,
749
- H as useViewBadge,
750
- q as useViewTitle,
751
- Ze as useViewVisibility,
752
- _e as useVisibleNotebookEditors,
753
- et as useVisibleTextEditors,
754
- tt as useVscodeContext,
755
- nt as useWebviewView,
756
- at as useWindowState,
757
- it as useWorkspaceFolders
738
+ Je as useTreeView,
739
+ z as useViewBadge,
740
+ K as useViewTitle,
741
+ Xe as useViewVisibility,
742
+ Ze as useVisibleNotebookEditors,
743
+ _e as useVisibleTextEditors,
744
+ et as useVscodeContext,
745
+ tt as useWebviewView,
746
+ nt as useWindowState,
747
+ at as useWorkspaceFolders
758
748
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactive-vscode",
3
3
  "type": "module",
4
- "version": "0.2.0-beta.9",
4
+ "version": "0.2.1",
5
5
  "description": "Develop VSCode extension with Vue Reactivity API",
6
6
  "author": "_Kerman <kermanx@qq.com>",
7
7
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  "@types/vscode": "^1.89.0"
38
38
  },
39
39
  "dependencies": {
40
- "@reactive-vscode/reactivity": "0.2.0-beta.9"
40
+ "@reactive-vscode/reactivity": "0.2.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^20.14.2",