Skip to content

Commit 30fc134

Browse files
committed
chore(language-core): update imports from alien-signals
1 parent 3bc74a3 commit 30fc134

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/language-core/lib/plugins/vue-tsx.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Mapping } from '@volar/language-core';
2-
import { computed, Unstable } from 'alien-signals';
2+
import { computed, unstable } from 'alien-signals';
33
import { generateScript } from '../codegen/script';
44
import { generateTemplate } from '../codegen/template';
55
import { parseScriptRanges } from '../parsers/scriptRanges';
@@ -95,7 +95,7 @@ function createTsx(
9595
? parseScriptSetupRanges(ts, _sfc.scriptSetup.ast, vueCompilerOptions.get())
9696
: undefined
9797
);
98-
const scriptSetupBindingNames = Unstable.computedSet(
98+
const scriptSetupBindingNames = unstable.computedSet(
9999
computed(() => {
100100
const newNames = new Set<string>();
101101
const bindings = scriptSetupRanges.get()?.bindings;
@@ -107,7 +107,7 @@ function createTsx(
107107
return newNames;
108108
})
109109
);
110-
const scriptSetupImportComponentNames = Unstable.computedSet(
110+
const scriptSetupImportComponentNames = unstable.computedSet(
111111
computed(() => {
112112
const newNames = new Set<string>();
113113
const bindings = scriptSetupRanges.get()?.bindings;
@@ -126,7 +126,7 @@ function createTsx(
126126
return newNames;
127127
})
128128
);
129-
const destructuredPropNames = Unstable.computedSet(
129+
const destructuredPropNames = unstable.computedSet(
130130
computed(() => {
131131
const newNames = new Set(scriptSetupRanges.get()?.defineProps?.destructured);
132132
const rest = scriptSetupRanges.get()?.defineProps?.destructuredRest;
@@ -136,7 +136,7 @@ function createTsx(
136136
return newNames;
137137
})
138138
);
139-
const templateRefNames = Unstable.computedSet(
139+
const templateRefNames = unstable.computedSet(
140140
computed(() => {
141141
const newNames = new Set(
142142
scriptSetupRanges.get()?.useTemplateRef

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type * as CompilerDOM from '@vue/compiler-dom';
22
import type { SFCBlock, SFCParseResult } from '@vue/compiler-sfc';
3-
import { activeSub, activeTrackId, computed, ISignal, setActiveSub, Signal, Unstable } from 'alien-signals';
3+
import { activeSub, activeTrackId, computed, ISignal, setActiveSub, Signal, unstable } from 'alien-signals';
44
import type * as ts from 'typescript';
55
import type { Sfc, SfcBlock, VueLanguagePluginReturn } from '../types';
66
import { parseCssClassNames } from '../utils/parseCssClassNames';
@@ -124,7 +124,7 @@ export function computedSfc(
124124
}
125125
return scriptSetupOriginal.get();
126126
});
127-
const styles = Unstable.computedArray(
127+
const styles = unstable.computedArray(
128128
computed(() => parsed.get()?.descriptor.styles ?? []),
129129
(block, i) => {
130130
const base = computedSfcBlock('style_' + i, 'css', block);
@@ -146,7 +146,7 @@ export function computedSfc(
146146
}) satisfies Sfc['styles'][number];
147147
}
148148
);
149-
const customBlocks = Unstable.computedArray(
149+
const customBlocks = unstable.computedArray(
150150
computed(() => parsed.get()?.descriptor.customBlocks ?? []),
151151
(block, i) => {
152152
const base = computedSfcBlock('custom_block_' + i, 'txt', block);

0 commit comments

Comments
 (0)