From 5467277e186ffc5cb184c2e4f2b5a8f82a5c112d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=B1=E5=90=B9=E8=89=B2=E5=BE=A1=E5=AE=88?= <85992002+KazariEX@users.noreply.github.com> Date: Wed, 30 Oct 2024 08:09:29 +0800 Subject: [PATCH] fix(language-core): hold prev track id correctly (#4961) --- packages/language-core/lib/virtualFile/computedSfc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/language-core/lib/virtualFile/computedSfc.ts b/packages/language-core/lib/virtualFile/computedSfc.ts index 835b4e311d..3ca12f830a 100644 --- a/packages/language-core/lib/virtualFile/computedSfc.ts +++ b/packages/language-core/lib/virtualFile/computedSfc.ts @@ -15,7 +15,7 @@ export function computedSfc( ): Sfc { const untrackedSnapshot = () => { - const prevTrackId = System.activeTrackId = 0; + const prevTrackId = System.activeTrackId; System.activeTrackId = 0; const res = snapshot.get(); System.activeTrackId = prevTrackId;