1
1
import type * as CompilerDOM from '@vue/compiler-dom' ;
2
2
import type { SFCBlock , SFCParseResult } from '@vue/compiler-sfc' ;
3
- import { computed , setCurrentSub } from 'alien-signals' ;
3
+ import { computed , setActiveSub } from 'alien-signals' ;
4
4
import type * as ts from 'typescript' ;
5
5
import type { Sfc , SfcBlock , SfcBlockAttr , VueLanguagePluginReturn } from '../types' ;
6
6
import { computedArray , computedItems } from '../utils/signals' ;
@@ -15,9 +15,9 @@ export function computedSfc(
15
15
getParseResult : ( ) => SFCParseResult | undefined ,
16
16
) : Sfc {
17
17
const getUntrackedSnapshot = ( ) => {
18
- const pausedSub = setCurrentSub ( undefined ) ;
18
+ const pausedSub = setActiveSub ( undefined ) ;
19
19
const res = getSnapshot ( ) ;
20
- setCurrentSub ( pausedSub ) ;
20
+ setActiveSub ( pausedSub ) ;
21
21
return res ;
22
22
} ;
23
23
const getContent = computed ( ( ) => {
@@ -255,9 +255,9 @@ export function computedSfc(
255
255
if ( cache ?. plugin . updateSFCTemplate ) {
256
256
const change = getUntrackedSnapshot ( ) . getChangeRange ( cache . snapshot ) ;
257
257
if ( change ) {
258
- const pausedSub = setCurrentSub ( undefined ) ;
258
+ const pausedSub = setActiveSub ( undefined ) ;
259
259
const templateOffset = base . startTagEnd ;
260
- setCurrentSub ( pausedSub ) ;
260
+ setActiveSub ( pausedSub ) ;
261
261
262
262
const newText = getUntrackedSnapshot ( ) . getText ( change . span . start , change . span . start + change . newLength ) ;
263
263
const newResult = cache . plugin . updateSFCTemplate ( cache . result , {
0 commit comments