reactive-vscode
Advanced tools
Comparing version 0.2.0-beta.8 to 0.2.0-beta.9
@@ -1,2 +0,2 @@ | ||
import { getCurrentScope as O, onScopeDispose as V, shallowRef as d, effectScope as K, computed as v, reactive as Q, toValue as r, watchEffect as C, watch as D, ref as x, shallowReactive as F, toRaw as z, isRef as Y } from "@reactive-vscode/reactivity"; | ||
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"; | ||
export * from "@reactive-vscode/reactivity"; | ||
@@ -44,3 +44,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"; | ||
function o(l, f) { | ||
const h = d(f), b = v({ | ||
const h = d(f), C = v({ | ||
get: () => h.value, | ||
@@ -51,7 +51,7 @@ set: (g) => { | ||
}); | ||
return b.update = async (g, U, J) => { | ||
await i.update(l, g, U, J), b.value = g; | ||
}, b.set = (g) => { | ||
return C.update = async (g, U, J) => { | ||
await i.update(l, g, U, J), C.value = g; | ||
}, C.set = (g) => { | ||
h.value = g; | ||
}, b; | ||
}, C; | ||
} | ||
@@ -145,3 +145,3 @@ const s = Object.fromEntries( | ||
const a = "key" in t ? t : c.createTextEditorDecorationType(t); | ||
C(() => { | ||
b(() => { | ||
var i; | ||
@@ -226,3 +226,3 @@ (i = r(e)) == null || i.setDecorations(a, r(n)); | ||
const t = d((n = r(e)) == null ? void 0 : n.getText()); | ||
return C(() => { | ||
return b(() => { | ||
var a; | ||
@@ -301,3 +301,3 @@ t.value = (a = r(e)) == null ? void 0 : a.getText(); | ||
const n = new L(), a = d(); | ||
C(() => { | ||
b(() => { | ||
a.value && n.fire(), a.value = r(t); | ||
@@ -317,10 +317,10 @@ }), u(Z.registerFoldingRangeProvider( | ||
const i = F(/* @__PURE__ */ new Map()), o = k(), s = k(), l = k(); | ||
return C(() => { | ||
return b(() => { | ||
const f = r(e), h = Array.isArray(f) ? f : [f]; | ||
for (const [b, g] of i) | ||
h.includes(b) || g.dispose(); | ||
for (const b of h) | ||
if (!i.has(b)) { | ||
for (const [C, g] of i) | ||
h.includes(C) || (g.dispose(), i.delete(C)); | ||
for (const C of h) | ||
if (!i.has(C)) { | ||
const g = w.createFileSystemWatcher( | ||
b, | ||
C, | ||
r(t) || !1, | ||
@@ -335,2 +335,3 @@ r(n) || !1, | ||
f.dispose(); | ||
i.clear(); | ||
}), { | ||
@@ -451,3 +452,3 @@ watchers: i, | ||
].forEach((g) => { | ||
e[g] && C(() => t[g] = r(e[g])); | ||
e[g] && b(() => t[g] = r(e[g])); | ||
}), e.value && (t.value = e.value); | ||
@@ -458,4 +459,4 @@ const f = d(t.value); | ||
n((g) => h.value = g), e.selectedItems && (t.selectedItems = e.selectedItems); | ||
const b = d(t.selectedItems); | ||
return a((g) => b.value = g), { | ||
const C = d(t.selectedItems); | ||
return a((g) => C.value = g), { | ||
...t, | ||
@@ -470,3 +471,3 @@ onDidChangeActive: n, | ||
activeItems: h, | ||
selectedItems: b | ||
selectedItems: C | ||
}; | ||
@@ -478,3 +479,3 @@ } | ||
const i = e[a]; | ||
i != null && C(() => t[a] = r(i)); | ||
i != null && b(() => t[a] = r(i)); | ||
} | ||
@@ -579,3 +580,3 @@ return [ | ||
function H(e, t) { | ||
C(() => { | ||
b(() => { | ||
const n = r(e); | ||
@@ -586,3 +587,3 @@ n && (n.badge = r(t)); | ||
function q(e, t) { | ||
C(() => { | ||
b(() => { | ||
const n = r(e); | ||
@@ -624,3 +625,3 @@ n && (n.title = r(t)); | ||
} | ||
return C((i) => { | ||
return b((i) => { | ||
const o = r(e); | ||
@@ -631,3 +632,3 @@ if (o) { | ||
} | ||
}), C(n), v(() => !!t.value); | ||
}), b(n), v(() => !!t.value); | ||
} | ||
@@ -647,3 +648,3 @@ const _e = m(() => { | ||
const a = Y(t) ? t : typeof t == "function" ? v(t) : x(t); | ||
return C(() => { | ||
return b(() => { | ||
r(n) && y.executeCommand("setContext", e, a.value); | ||
@@ -672,7 +673,7 @@ }), a; | ||
} | ||
if (C(() => { | ||
if (b(() => { | ||
a.value && (a.value.webview.html = `${r(t)}<!--${o.value}-->`); | ||
}), n != null && n.webviewOptions) { | ||
const f = n.webviewOptions; | ||
C(() => { | ||
b(() => { | ||
a.value && (a.value.webview.options = r(f)); | ||
@@ -679,0 +680,0 @@ }); |
{ | ||
"name": "reactive-vscode", | ||
"type": "module", | ||
"version": "0.2.0-beta.8", | ||
"version": "0.2.0-beta.9", | ||
"description": "Develop VSCode extension with Vue Reactivity API", | ||
@@ -40,3 +40,3 @@ "author": "_Kerman <kermanx@qq.com>", | ||
"dependencies": { | ||
"@reactive-vscode/reactivity": "0.2.0-beta.8" | ||
"@reactive-vscode/reactivity": "0.2.0-beta.9" | ||
}, | ||
@@ -43,0 +43,0 @@ "devDependencies": { |
56245
1473
+ Added@reactive-vscode/reactivity@0.2.0-beta.9(transitive)
- Removed@reactive-vscode/reactivity@0.2.0-beta.8(transitive)