Skip to content

Commit 5467277

Browse files
authored
fix(language-core): hold prev track id correctly (#4961)
1 parent 61edd58 commit 5467277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/language-core/lib/virtualFile/computedSfc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function computedSfc(
1515
): Sfc {
1616

1717
const untrackedSnapshot = () => {
18-
const prevTrackId = System.activeTrackId = 0;
18+
const prevTrackId = System.activeTrackId;
1919
System.activeTrackId = 0;
2020
const res = snapshot.get();
2121
System.activeTrackId = prevTrackId;

0 commit comments

Comments
 (0)