reactive-vscode
Advanced tools
Comparing version
@@ -364,3 +364,3 @@ import { ColorTheme } from 'vscode'; | ||
*/ | ||
export declare function useActiveEditorDecorations(decorationTypeOrOptions: TextEditorDecorationType | DecorationRenderOptions, rangesOrOptions: MaybeRefOrGetter<readonly Range[] | readonly DecorationOptions[]>): void; | ||
export declare function useActiveEditorDecorations(decorationTypeOrOptions: MaybeRefOrGetter<TextEditorDecorationType | DecorationRenderOptions>, rangesOrOptions: MaybeRefOrGetter<readonly Range[] | readonly DecorationOptions[]>): void; | ||
@@ -453,3 +453,3 @@ /** | ||
*/ | ||
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): { | ||
export declare function useEditorDecorations(editor: MaybeRefOrGetter<Nullable<TextEditor>>, decorationTypeOrOptions: MaybeRefOrGetter<TextEditorDecorationType | DecorationRenderOptions>, decorations: MaybeRef<readonly Range[] | readonly DecorationOptions[]> | ((editor: TextEditor) => Awaitable<readonly Range[] | readonly DecorationOptions[]>), options?: UseEditorDecorationsOptions): { | ||
/** | ||
@@ -660,2 +660,3 @@ * Manually trigger the decoration update. | ||
accessibilityInformation?: MaybeRefOrGetter<StatusBarItem['accessibilityInformation']>; | ||
visible?: MaybeRefOrGetter<boolean>; | ||
} | ||
@@ -662,0 +663,0 @@ |
import { getCurrentScope as K, onScopeDispose as F, effectScope as Q, shallowRef as g, computed as h, shallowReactive as $, toValue as s, watchEffect as C, watch as D, ref as x, toRaw as ee, isRef as te } from "@reactive-vscode/reactivity"; | ||
export * from "@reactive-vscode/reactivity"; | ||
import { workspace as S, commands as I, window as f, debug as H, extensions as O, comments as ne, env as p, EventEmitter as U, tasks as k, Uri as ie, languages as ae, ColorThemeKind as B, l10n as z } from "vscode"; | ||
import { workspace as S, commands as I, window as v, debug as H, extensions as O, comments as ne, env as p, EventEmitter as U, tasks as k, Uri as ie, languages as ae, ColorThemeKind as B, l10n as z } from "vscode"; | ||
function re(e) { | ||
@@ -43,13 +43,13 @@ return K() ? (F(e), !0) : !1; | ||
const i = !e, a = S.getConfiguration(i ? void 0 : e, n); | ||
function u(c, l) { | ||
const v = g(l), b = h({ | ||
get: () => v.value, | ||
set: (d) => { | ||
v.value = d, a.update(c, d); | ||
function u(c, o) { | ||
const d = g(o), b = h({ | ||
get: () => d.value, | ||
set: (f) => { | ||
d.value = f, a.update(c, f); | ||
} | ||
}); | ||
return b.update = async (d, m, T) => { | ||
await a.update(c, d, m, T), b.value = d; | ||
}, b.set = (d) => { | ||
v.value = d; | ||
return b.update = async (f, m, T) => { | ||
await a.update(c, f, m, T), b.value = f; | ||
}, b.set = (f) => { | ||
d.value = f; | ||
}, b; | ||
@@ -61,13 +61,13 @@ } | ||
return J(() => { | ||
o(S.onDidChangeConfiguration( | ||
l(S.onDidChangeConfiguration( | ||
i ? (c) => { | ||
const l = S.getConfiguration(); | ||
for (const v in t) | ||
c.affectsConfiguration(v) && r[v].set(l.get(v)); | ||
const o = S.getConfiguration(); | ||
for (const d in t) | ||
c.affectsConfiguration(d) && r[d].set(o.get(d)); | ||
} : (c) => { | ||
if (!c.affectsConfiguration(e)) | ||
return; | ||
const l = S.getConfiguration(e); | ||
for (const v in t) | ||
c.affectsConfiguration(`${e}.${v}`) && r[v].set(l.get(v)); | ||
const o = S.getConfiguration(e); | ||
for (const d in t) | ||
c.affectsConfiguration(`${e}.${d}`) && r[d].set(o.get(d)); | ||
} | ||
@@ -79,4 +79,4 @@ )); | ||
const i = se(e, t, n), a = {}, u = $({ | ||
$update(r, c, l, v) { | ||
return i[r].update(c, l, v); | ||
$update(r, c, o, d) { | ||
return i[r].update(c, o, d); | ||
}, | ||
@@ -89,6 +89,6 @@ $set(r, c) { | ||
const c = r.split("."); | ||
let l = "", v = a, b = u; | ||
let o = "", d = a, b = u; | ||
for (const m of c.slice(0, -1)) { | ||
l = l ? `${l}.${m}` : m; | ||
const T = v = v[m] || (v[m] = {}); | ||
o = o ? `${o}.${m}` : m; | ||
const T = d = d[m] || (d[m] = {}); | ||
if (b[m]) | ||
@@ -106,8 +106,8 @@ b = b[m]; | ||
if (P) | ||
for (const A in P) | ||
j(P[A], W ? `${W}.${A}` : A, y == null ? void 0 : y[A]); | ||
for (const V in P) | ||
j(P[V], W ? `${W}.${V}` : V, y == null ? void 0 : y[V]); | ||
else | ||
i[W].value = y; | ||
} | ||
j(T, l, _); | ||
j(T, o, _); | ||
} | ||
@@ -117,4 +117,4 @@ }), b = N; | ||
} | ||
const d = c[c.length - 1]; | ||
v[d] = null, Object.defineProperty(b, d, { | ||
const f = c[c.length - 1]; | ||
d[f] = null, Object.defineProperty(b, f, { | ||
enumerable: !0, | ||
@@ -166,8 +166,8 @@ get() { | ||
} | ||
function o(e) { | ||
function l(e) { | ||
return (K() ?? M).cleanups.push(e.dispose.bind(e)), e; | ||
} | ||
const ce = w(() => { | ||
const e = g(f.activeColorTheme); | ||
return o(f.onDidChangeActiveColorTheme((t) => { | ||
const e = g(v.activeColorTheme); | ||
return l(v.onDidChangeActiveColorTheme((t) => { | ||
e.value = t; | ||
@@ -177,8 +177,8 @@ })), e; | ||
const e = g(H.activeDebugSession); | ||
return o(H.onDidChangeActiveDebugSession((t) => { | ||
return l(H.onDidChangeActiveDebugSession((t) => { | ||
e.value = t; | ||
})), h(() => e.value); | ||
}), oe = w(() => { | ||
const e = g(f.activeTextEditor); | ||
return o(f.onDidChangeActiveTextEditor((t) => { | ||
const e = g(v.activeTextEditor); | ||
return l(v.onDidChangeActiveTextEditor((t) => { | ||
e.value = t; | ||
@@ -193,3 +193,3 @@ })), e; | ||
t.value = (i = s(e)) == null ? void 0 : i.getText(); | ||
}), o(S.onDidChangeTextDocument((i) => { | ||
}), l(S.onDidChangeTextDocument((i) => { | ||
i.document === s(e) && (t.value = i.document.getText()); | ||
@@ -201,11 +201,17 @@ })), t; | ||
updateOn: a = ["effect", "documentChanged"] | ||
} = i, u = "key" in t ? t : o(f.createTextEditorDecorationType(t)), r = async () => { | ||
const l = s(e); | ||
l && l.setDecorations( | ||
u, | ||
typeof n == "function" ? await n(l) : s(n) | ||
} = i, u = h( | ||
(o) => { | ||
o == null || o.dispose(); | ||
const d = s(t); | ||
return "key" in d ? d : l(v.createTextEditorDecorationType(d)); | ||
} | ||
), r = async () => { | ||
const o = s(e); | ||
o && o.setDecorations( | ||
u.value, | ||
typeof n == "function" ? await n(o) : s(n) | ||
); | ||
}, c = a.includes("documentChanged") ? le(() => { | ||
var l; | ||
return (l = s(e)) == null ? void 0 : l.document; | ||
var o; | ||
return (o = s(e)) == null ? void 0 : o.document; | ||
}) : null; | ||
@@ -226,14 +232,14 @@ return a.includes("effect") ? C(async () => { | ||
const ye = w(() => { | ||
const e = g(f.activeNotebookEditor); | ||
return o(f.onDidChangeActiveNotebookEditor((t) => { | ||
const e = g(v.activeNotebookEditor); | ||
return l(v.onDidChangeActiveNotebookEditor((t) => { | ||
e.value = t; | ||
})), e; | ||
}), Ae = w(() => { | ||
const e = g(f.activeTerminal); | ||
return o(f.onDidChangeActiveTerminal((t) => { | ||
}), Ve = w(() => { | ||
const e = g(v.activeTerminal); | ||
return l(v.onDidChangeActiveTerminal((t) => { | ||
e.value = t; | ||
})), e; | ||
}), Ve = w(() => { | ||
}), Ae = w(() => { | ||
const e = g(O.all); | ||
return o(O.onDidChange(() => { | ||
return l(O.onDidChange(() => { | ||
e.value = O.all; | ||
@@ -243,3 +249,3 @@ })), h(() => e.value); | ||
function fe(e, t) { | ||
o(I.registerCommand(e, t)); | ||
l(I.registerCommand(e, t)); | ||
} | ||
@@ -251,3 +257,3 @@ function Ie(e) { | ||
function Pe(e, t) { | ||
return o(ne.createCommentController(e, t)); | ||
return l(ne.createCommentController(e, t)); | ||
} | ||
@@ -260,3 +266,3 @@ function X(e) { | ||
t.value = (i = s(e)) == null ? void 0 : i.state; | ||
}), o(f.onDidChangeTerminalState((i) => { | ||
}), l(v.onDidChangeTerminalState((i) => { | ||
i === s(e) && (t.value = i.state); | ||
@@ -271,3 +277,3 @@ })), h(() => t.value); | ||
function i() { | ||
return n() ? t.value : t.value = f.createTerminal(...e); | ||
return n() ? t.value : t.value = v.createTerminal(...e); | ||
} | ||
@@ -294,3 +300,3 @@ function a(c) { | ||
const e = g(p.shell); | ||
return o(p.onDidChangeShell((t) => { | ||
return l(p.onDidChangeShell((t) => { | ||
e.value = t; | ||
@@ -301,8 +307,8 @@ })), h(() => e.value); | ||
const n = (i, a, u) => { | ||
o(e(i, a, u)); | ||
l(e(i, a, u)); | ||
}; | ||
return t == null || t.forEach((i) => n(i)), n; | ||
} | ||
function V(e, t = []) { | ||
const n = Array.isArray(e) ? e : t ?? [], i = o(Array.isArray(e) || e == null ? new U() : e), a = E(i.event, n); | ||
function A(e, t = []) { | ||
const n = Array.isArray(e) ? e : t ?? [], i = l(Array.isArray(e) || e == null ? new U() : e), a = E(i.event, n); | ||
for (const u of n) | ||
@@ -322,3 +328,3 @@ a(u); | ||
n.value = void 0, await t.delete(e); | ||
}, o(t.onDidChange(async (i) => { | ||
}, l(t.onDidChange(async (i) => { | ||
i.key === e && (n.value = await t.get(e)); | ||
@@ -339,3 +345,3 @@ })), D(n, (i) => { | ||
i.value && n.fire(), i.value = s(t); | ||
}), o(ae.registerFoldingRangeProvider( | ||
}), l(ae.registerFoldingRangeProvider( | ||
e, | ||
@@ -352,11 +358,11 @@ { | ||
function Ne(e, t, n, i) { | ||
const a = $(/* @__PURE__ */ new Map()), u = V(), r = V(), c = V(), l = h(() => { | ||
const d = s(e); | ||
return Array.isArray(d) ? d : d instanceof Set ? Array.from(d) : [d]; | ||
const a = $(/* @__PURE__ */ new Map()), u = A(), r = A(), c = A(), o = h(() => { | ||
const f = s(e); | ||
return Array.isArray(f) ? f : f instanceof Set ? Array.from(f) : [f]; | ||
}); | ||
function v() { | ||
const d = l.value; | ||
function d() { | ||
const f = o.value; | ||
for (const [m, T] of a) | ||
d.includes(m) || (T.dispose(), a.delete(m)); | ||
for (const m of d) | ||
f.includes(m) || (T.dispose(), a.delete(m)); | ||
for (const m of f) | ||
if (!a.has(m)) { | ||
@@ -373,7 +379,7 @@ const T = S.createFileSystemWatcher( | ||
function b() { | ||
for (const d of a.values()) | ||
d.dispose(); | ||
for (const f of a.values()) | ||
f.dispose(); | ||
a.clear(); | ||
} | ||
return v(), D(l, v), D( | ||
return d(), D(o, d), D( | ||
() => [ | ||
@@ -385,3 +391,3 @@ s(t), | ||
() => { | ||
b(), v(); | ||
b(), d(); | ||
} | ||
@@ -400,3 +406,3 @@ ), F(b), { | ||
const e = g(p.isTelemetryEnabled); | ||
return o(p.onDidChangeTelemetryEnabled((t) => { | ||
return l(p.onDidChangeTelemetryEnabled((t) => { | ||
e.value = t; | ||
@@ -409,7 +415,7 @@ })), h(() => e.value); | ||
function ve(e, t) { | ||
return o(f.createOutputChannel(e, t)); | ||
return l(v.createOutputChannel(e, t)); | ||
} | ||
function ze(e) { | ||
const t = /* @__PURE__ */ new Date(), n = String(t.getFullYear()).padStart(4, "0"), i = String(t.getMonth() + 1).padStart(2, "0"), a = String(t.getDate()).padStart(2, "0"), u = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), c = String(t.getSeconds()).padStart(2, "0"), l = String(t.getMilliseconds()).padStart(3, "0"); | ||
return `${n}-${i}-${a} ${u}:${r}:${c}.${l} [${e}] `; | ||
const t = /* @__PURE__ */ new Date(), n = String(t.getFullYear()).padStart(4, "0"), i = String(t.getMonth() + 1).padStart(2, "0"), a = String(t.getDate()).padStart(2, "0"), u = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), c = String(t.getSeconds()).padStart(2, "0"), o = String(t.getMilliseconds()).padStart(3, "0"); | ||
return `${n}-${i}-${a} ${u}:${r}:${c}.${o} [${e}] `; | ||
} | ||
@@ -437,3 +443,3 @@ function ge(e, t = {}) { | ||
const e = g(p.logLevel); | ||
return o(p.onDidChangeLogLevel((t) => { | ||
return l(p.onDidChangeLogLevel((t) => { | ||
e.value = t; | ||
@@ -448,3 +454,3 @@ })), h(() => e.value); | ||
t.value = ((i = s(e)) == null ? void 0 : i.selections) ?? []; | ||
}), o(f.onDidChangeNotebookEditorSelection((i) => { | ||
}), l(v.onDidChangeNotebookEditorSelection((i) => { | ||
i.notebookEditor === s(e) && (t.value = i.selections); | ||
@@ -479,3 +485,3 @@ })), h({ | ||
t.value = ((i = s(e)) == null ? void 0 : i.visibleRanges) ?? []; | ||
}), o(f.onDidChangeNotebookEditorVisibleRanges((i) => { | ||
}), l(v.onDidChangeNotebookEditorVisibleRanges((i) => { | ||
i.notebookEditor === s(e) && (t.value = i.visibleRanges); | ||
@@ -485,10 +491,10 @@ })), h(() => t.value); | ||
const qe = w(() => { | ||
const e = g(f.terminals); | ||
const e = g(v.terminals); | ||
function t() { | ||
e.value = f.terminals; | ||
e.value = v.terminals; | ||
} | ||
return o(f.onDidOpenTerminal(t)), o(f.onDidCloseTerminal(t)), e; | ||
return l(v.onDidOpenTerminal(t)), l(v.onDidCloseTerminal(t)), e; | ||
}); | ||
function Ye(e = {}) { | ||
const t = o(f.createQuickPick()), n = E(t.onDidChangeActive), i = E(t.onDidChangeSelection), a = E(t.onDidAccept), u = E(t.onDidHide), r = E(t.onDidTriggerButton), c = E(t.onDidChangeValue); | ||
const t = l(v.createQuickPick()), n = E(t.onDidChangeActive), i = E(t.onDidChangeSelection), a = E(t.onDidAccept), u = E(t.onDidHide), r = E(t.onDidTriggerButton), c = E(t.onDidChangeValue); | ||
[ | ||
@@ -508,11 +514,11 @@ "items", | ||
"keepScrollPosition" | ||
].forEach((d) => { | ||
e[d] && C(() => t[d] = s(e[d])); | ||
].forEach((f) => { | ||
e[f] && C(() => t[f] = s(e[f])); | ||
}), e.value && (t.value = e.value); | ||
const l = g(t.value); | ||
c((d) => l.value = d), e.activeItems && (t.activeItems = e.activeItems); | ||
const v = g(t.activeItems); | ||
n((d) => v.value = d), e.selectedItems && (t.selectedItems = e.selectedItems); | ||
const o = g(t.value); | ||
c((f) => o.value = f), e.activeItems && (t.activeItems = e.activeItems); | ||
const d = g(t.activeItems); | ||
n((f) => d.value = f), e.selectedItems && (t.selectedItems = e.selectedItems); | ||
const b = g(t.selectedItems); | ||
return i((d) => b.value = d), { | ||
return i((f) => b.value = f), { | ||
...t, | ||
@@ -525,4 +531,4 @@ onDidChangeActive: n, | ||
onDidChangeValue: c, | ||
value: l, | ||
activeItems: v, | ||
value: o, | ||
activeItems: d, | ||
selectedItems: b | ||
@@ -532,3 +538,3 @@ }; | ||
function Ge(e) { | ||
const t = o(e.id ? f.createStatusBarItem(e.id, e.alignment, e.priority) : f.createStatusBarItem(e.alignment, e.priority)); | ||
const t = l(e.id ? v.createStatusBarItem(e.id, e.alignment, e.priority) : v.createStatusBarItem(e.alignment, e.priority)); | ||
function n(i) { | ||
@@ -546,3 +552,5 @@ const a = e[i]; | ||
"accessibilityInformation" | ||
].forEach(n), t; | ||
].forEach(n), e.visible != null && C(() => { | ||
s(e.visible) ? t.show() : t.hide(); | ||
}), t; | ||
} | ||
@@ -554,6 +562,6 @@ const Je = w(() => { | ||
} | ||
return o(k.onDidStartTask(t)), o(k.onDidEndTask(t)), h(() => e.value); | ||
return l(k.onDidStartTask(t)), l(k.onDidEndTask(t)), h(() => e.value); | ||
}); | ||
function Xe(...e) { | ||
const t = o(f.createTerminal(...e)); | ||
const t = l(v.createTerminal(...e)); | ||
return { | ||
@@ -583,3 +591,3 @@ terminal: t, | ||
function me(e, t) { | ||
o(I.registerTextEditorCommand(e, t)); | ||
l(I.registerTextEditorCommand(e, t)); | ||
} | ||
@@ -596,3 +604,3 @@ function Ze(e) { | ||
n.value = ((a = s(e)) == null ? void 0 : a.selections) ?? []; | ||
}), o(f.onDidChangeTextEditorSelection((a) => { | ||
}), l(v.onDidChangeTextEditorSelection((a) => { | ||
const u = s(e), r = s(t); | ||
@@ -628,3 +636,3 @@ a.textEditor === u && (!r || r.includes(a.kind)) && (n.value = a.selections); | ||
t.value = (i = s(e)) == null ? void 0 : i.viewColumn; | ||
}), o(f.onDidChangeTextEditorViewColumn((i) => { | ||
}), l(v.onDidChangeTextEditorViewColumn((i) => { | ||
i.textEditor === s(e) && (t.value = i.viewColumn); | ||
@@ -639,3 +647,3 @@ })), h(() => t.value); | ||
t.value = ((i = s(e)) == null ? void 0 : i.visibleRanges) ?? []; | ||
}), o(f.onDidChangeTextEditorVisibleRanges((i) => { | ||
}), l(v.onDidChangeTextEditorVisibleRanges((i) => { | ||
i.textEditor === s(e) && (t.value = i.visibleRanges); | ||
@@ -658,5 +666,5 @@ })), h(() => t.value); | ||
(e, t, n) => { | ||
const i = V(); | ||
const i = A(); | ||
D(t, () => i.fire()), n != null && n.watchSource && D(n.watchSource, () => i.fire()); | ||
const a = /* @__PURE__ */ new WeakMap(), u = o(f.createTreeView(e, { | ||
const a = /* @__PURE__ */ new WeakMap(), u = l(v.createTreeView(e, { | ||
...n, | ||
@@ -671,3 +679,3 @@ treeDataProvider: { | ||
var c; | ||
return r ? ((c = r.children) == null || c.forEach((l) => a.set(l, r)), r.children) : s(t); | ||
return r ? ((c = r.children) == null || c.forEach((o) => a.set(o, r)), r.children) : s(t); | ||
}, | ||
@@ -699,9 +707,9 @@ getParent(r) { | ||
const at = w(() => { | ||
const e = g(f.visibleNotebookEditors); | ||
return o(f.onDidChangeVisibleNotebookEditors((t) => { | ||
const e = g(v.visibleNotebookEditors); | ||
return l(v.onDidChangeVisibleNotebookEditors((t) => { | ||
e.value = t; | ||
})), e; | ||
}), rt = w(() => { | ||
const e = g(f.visibleTextEditors); | ||
return o(f.onDidChangeVisibleTextEditors((t) => { | ||
const e = g(v.visibleTextEditors); | ||
return l(v.onDidChangeVisibleTextEditors((t) => { | ||
e.value = t; | ||
@@ -717,3 +725,3 @@ })), e; | ||
function ut(e, t, n, i, a) { | ||
const u = g(), r = o(f.createWebviewPanel( | ||
const u = g(), r = l(v.createWebviewPanel( | ||
e, | ||
@@ -730,3 +738,3 @@ s(t), | ||
const c = x(0); | ||
function l() { | ||
function o() { | ||
c.value++; | ||
@@ -743,9 +751,9 @@ } | ||
L(r, t); | ||
function v(m) { | ||
function d(m) { | ||
return r.webview.postMessage(m); | ||
} | ||
const b = x(r.active), d = x(r.visible); | ||
return o(r.onDidChangeViewState(() => { | ||
b.value = r.active, d.value = r.visible; | ||
})), { panel: r, context: u, active: b, visible: d, postMessage: v, forceRefresh: l }; | ||
const b = x(r.active), f = x(r.visible); | ||
return l(r.onDidChangeViewState(() => { | ||
b.value = r.active, f.value = r.visible; | ||
})), { panel: r, context: u, active: b, visible: f, postMessage: d, forceRefresh: o }; | ||
} | ||
@@ -755,7 +763,7 @@ const ct = q( | ||
const i = g(), a = g(); | ||
o(f.registerWebviewViewProvider( | ||
l(v.registerWebviewViewProvider( | ||
e, | ||
{ | ||
resolveWebviewView(l, v) { | ||
i.value = l, a.value = v, n != null && n.onDidReceiveMessage && l.webview.onDidReceiveMessage(n.onDidReceiveMessage); | ||
resolveWebviewView(o, d) { | ||
i.value = o, a.value = d, n != null && n.onDidReceiveMessage && o.webview.onDidReceiveMessage(n.onDidReceiveMessage); | ||
} | ||
@@ -776,11 +784,11 @@ }, | ||
}), n != null && n.webviewOptions) { | ||
const l = n.webviewOptions; | ||
const o = n.webviewOptions; | ||
C(() => { | ||
i.value && (i.value.webview.options = s(l)); | ||
i.value && (i.value.webview.options = s(o)); | ||
}); | ||
} | ||
n != null && n.title && L(i, n.title), n != null && n.badge && Z(i, n.badge); | ||
function c(l) { | ||
var v; | ||
return (v = i.value) == null ? void 0 : v.webview.postMessage(l); | ||
function c(o) { | ||
var d; | ||
return (d = i.value) == null ? void 0 : d.webview.postMessage(o); | ||
} | ||
@@ -791,4 +799,4 @@ return { view: i, context: a, postMessage: c, forceRefresh: r }; | ||
), ot = w(() => { | ||
const e = g(f.state); | ||
return o(f.onDidChangeWindowState((t) => { | ||
const e = g(v.state); | ||
return l(v.onDidChangeWindowState((t) => { | ||
e.value = t; | ||
@@ -801,3 +809,3 @@ })), { | ||
const e = g(S.workspaceFolders); | ||
return o(S.onDidChangeWorkspaceFolders(() => { | ||
return l(S.onDidChangeWorkspaceFolders(() => { | ||
e.value = S.workspaceFolders; | ||
@@ -827,5 +835,5 @@ })), h(() => e.value); | ||
ye as useActiveNotebookEditor, | ||
Ae as useActiveTerminal, | ||
Ve as useActiveTerminal, | ||
oe as useActiveTextEditor, | ||
Ve as useAllExtensions, | ||
Ae as useAllExtensions, | ||
fe as useCommand, | ||
@@ -836,7 +844,7 @@ Ie as useCommands, | ||
Oe as useDefaultShell, | ||
o as useDisposable, | ||
l as useDisposable, | ||
le as useDocumentText, | ||
de as useEditorDecorations, | ||
E as useEvent, | ||
V as useEventEmitter, | ||
A as useEventEmitter, | ||
$e as useExtensionSecret, | ||
@@ -843,0 +851,0 @@ Me as useFetchTasks, |
{ | ||
"name": "reactive-vscode", | ||
"type": "module", | ||
"version": "0.2.10", | ||
"version": "0.2.13", | ||
"description": "Develop VSCode extension with Vue Reactivity API", | ||
"author": "_Kerman <kermanx@qq.com>", | ||
"license": "MIT", | ||
"homepage": "https://github.com/KermanX/reactive-vscode#readme", | ||
"homepage": "https://github.com/kermanx/reactive-vscode#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/KermanX/reactive-vscode.git" | ||
"url": "git+https://github.com/kermanx/reactive-vscode.git" | ||
}, | ||
"bugs": "https://github.com/KermanX/reactive-vscode/issues", | ||
"bugs": "https://github.com/kermanx/reactive-vscode/issues", | ||
"keywords": [ | ||
@@ -41,3 +41,3 @@ "vscode", | ||
"dependencies": { | ||
"@reactive-vscode/reactivity": "0.2.10" | ||
"@reactive-vscode/reactivity": "0.2.13" | ||
}, | ||
@@ -44,0 +44,0 @@ "devDependencies": { |
@@ -26,3 +26,3 @@ # reactive-vscode | ||
However, the project is still in its 0.x and may have minor API changes. If you encounter any problems, please feel free to [open an issue](https://github.com/KermanX/reactive-vscode/issues/new). | ||
However, the project is still in its 0.x and may have minor API changes. If you encounter any problems, please feel free to [open an issue](https://github.com/kermanx/reactive-vscode/issues/new). | ||
@@ -89,7 +89,7 @@ ### Counter Example | ||
[MIT](./LICENSE) License © 2024-PRESENT [_Kerman](https://github.com/KermanX) | ||
[MIT](./LICENSE) License © 2024-PRESENT [_Kerman](https://github.com/kermanx) | ||
Source code in [the `./packages/reactivity` directory](https://github.com/KermanX/reactive-vscode/blob/main/packages/reactivity) is ported from [`@vue/runtime-core`](https://github.com/vuejs/core/blob/main/packages/runtime-core). Licensed under a [MIT License](https://github.com/vueuse/vueuse/blob/main/LICENSE). | ||
Source code in [the `./packages/reactivity` directory](https://github.com/kermanx/reactive-vscode/blob/main/packages/reactivity) is ported from [`@vue/runtime-core`](https://github.com/vuejs/core/blob/main/packages/runtime-core). Licensed under a [MIT License](https://github.com/vueuse/vueuse/blob/main/LICENSE). | ||
Source code in [the `./packages/mock` directory](https://github.com/KermanX/reactive-vscode/blob/main/packages/core/src/mock) references the implementation of [`VSCode`](https://github.com/microsoft/vscode). Licensed under a [MIT License](https://github.com/microsoft/vscode/blob/main/LICENSE.txt). | ||
Source code in [the `./packages/mock` directory](https://github.com/kermanx/reactive-vscode/blob/main/packages/core/src/mock) references the implementation of [`VSCode`](https://github.com/microsoft/vscode). Licensed under a [MIT License](https://github.com/microsoft/vscode/blob/main/LICENSE.txt). | ||
@@ -109,4 +109,4 @@ The logo <img src="https://kermanx.github.io/reactive-vscode/logo.svg" width="14"> is modified from [Vue Reactivity Artworks](https://github.com/vue-reactivity/art). Licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/). | ||
[license-src]: https://img.shields.io/github/license/KermanX/reactive-vscode.svg?style=flat&colorA=080f12&colorB=1fa669 | ||
[license-href]: https://github.com/KermanX/reactive-vscode/blob/main/LICENSE | ||
[license-href]: https://github.com/kermanx/reactive-vscode/blob/main/LICENSE | ||
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669 | ||
[jsdocs-href]: https://www.jsdocs.io/package/reactive-vscode |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
78300
0.52%1638
0.61%+ Added
- Removed