11import type * as CompilerDOM from '@vue/compiler-dom' ;
22import type { SFCBlock , SFCParseResult } from '@vue/compiler-sfc' ;
3- import { computed , setCurrentSub } from 'alien-signals' ;
3+ import { computed , setActiveSub } from 'alien-signals' ;
44import type * as ts from 'typescript' ;
55import type { Sfc , SfcBlock , SfcBlockAttr , VueLanguagePluginReturn } from '../types' ;
66import { computedArray , computedItems } from '../utils/signals' ;
@@ -15,9 +15,9 @@ export function computedSfc(
1515 getParseResult : ( ) => SFCParseResult | undefined ,
1616) : Sfc {
1717 const getUntrackedSnapshot = ( ) => {
18- const pausedSub = setCurrentSub ( undefined ) ;
18+ const pausedSub = setActiveSub ( undefined ) ;
1919 const res = getSnapshot ( ) ;
20- setCurrentSub ( pausedSub ) ;
20+ setActiveSub ( pausedSub ) ;
2121 return res ;
2222 } ;
2323 const getContent = computed ( ( ) => {
@@ -255,9 +255,9 @@ export function computedSfc(
255255 if ( cache ?. plugin . updateSFCTemplate ) {
256256 const change = getUntrackedSnapshot ( ) . getChangeRange ( cache . snapshot ) ;
257257 if ( change ) {
258- const pausedSub = setCurrentSub ( undefined ) ;
258+ const pausedSub = setActiveSub ( undefined ) ;
259259 const templateOffset = base . startTagEnd ;
260- setCurrentSub ( pausedSub ) ;
260+ setActiveSub ( pausedSub ) ;
261261
262262 const newText = getUntrackedSnapshot ( ) . getText ( change . span . start , change . span . start + change . newLength ) ;
263263 const newResult = cache . plugin . updateSFCTemplate ( cache . result , {
0 commit comments