Skip to content

Commit

Permalink
chore(language-core): update imports from alien-signals
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 23, 2024
1 parent 3bc74a3 commit 30fc134
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/language-core/lib/plugins/vue-tsx.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Mapping } from '@volar/language-core';
import { computed, Unstable } from 'alien-signals';
import { computed, unstable } from 'alien-signals';
import { generateScript } from '../codegen/script';
import { generateTemplate } from '../codegen/template';
import { parseScriptRanges } from '../parsers/scriptRanges';
Expand Down Expand Up @@ -95,7 +95,7 @@ function createTsx(
? parseScriptSetupRanges(ts, _sfc.scriptSetup.ast, vueCompilerOptions.get())
: undefined
);
const scriptSetupBindingNames = Unstable.computedSet(
const scriptSetupBindingNames = unstable.computedSet(
computed(() => {
const newNames = new Set<string>();
const bindings = scriptSetupRanges.get()?.bindings;
Expand All @@ -107,7 +107,7 @@ function createTsx(
return newNames;
})
);
const scriptSetupImportComponentNames = Unstable.computedSet(
const scriptSetupImportComponentNames = unstable.computedSet(
computed(() => {
const newNames = new Set<string>();
const bindings = scriptSetupRanges.get()?.bindings;
Expand All @@ -126,7 +126,7 @@ function createTsx(
return newNames;
})
);
const destructuredPropNames = Unstable.computedSet(
const destructuredPropNames = unstable.computedSet(
computed(() => {
const newNames = new Set(scriptSetupRanges.get()?.defineProps?.destructured);
const rest = scriptSetupRanges.get()?.defineProps?.destructuredRest;
Expand All @@ -136,7 +136,7 @@ function createTsx(
return newNames;
})
);
const templateRefNames = Unstable.computedSet(
const templateRefNames = unstable.computedSet(
computed(() => {
const newNames = new Set(
scriptSetupRanges.get()?.useTemplateRef
Expand Down
6 changes: 3 additions & 3 deletions packages/language-core/lib/virtualFile/computedSfc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type * as CompilerDOM from '@vue/compiler-dom';
import type { SFCBlock, SFCParseResult } from '@vue/compiler-sfc';
import { activeSub, activeTrackId, computed, ISignal, setActiveSub, Signal, Unstable } from 'alien-signals';
import { activeSub, activeTrackId, computed, ISignal, setActiveSub, Signal, unstable } from 'alien-signals';
import type * as ts from 'typescript';
import type { Sfc, SfcBlock, VueLanguagePluginReturn } from '../types';
import { parseCssClassNames } from '../utils/parseCssClassNames';
Expand Down Expand Up @@ -124,7 +124,7 @@ export function computedSfc(
}
return scriptSetupOriginal.get();
});
const styles = Unstable.computedArray(
const styles = unstable.computedArray(
computed(() => parsed.get()?.descriptor.styles ?? []),
(block, i) => {
const base = computedSfcBlock('style_' + i, 'css', block);
Expand All @@ -146,7 +146,7 @@ export function computedSfc(
}) satisfies Sfc['styles'][number];
}
);
const customBlocks = Unstable.computedArray(
const customBlocks = unstable.computedArray(
computed(() => parsed.get()?.descriptor.customBlocks ?? []),
(block, i) => {
const base = computedSfcBlock('custom_block_' + i, 'txt', block);
Expand Down

0 comments on commit 30fc134

Please sign in to comment.