Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Aug 26, 2024
1 parent 39235d8 commit 2fd7159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/language-core/lib/plugins/vue-tsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function createTsx(
compilerOptions: ctx.compilerOptions,
vueCompilerOptions: ctx.vueCompilerOptions,
template: _sfc.template,
edited: ctx.test || (fileEditTimes.get(fileName) ?? 0) >= 2,
edited: ctx.vueCompilerOptions.__test || (fileEditTimes.get(fileName) ?? 0) >= 2,
scriptSetupBindingNames: scriptSetupBindingNames(),
scriptSetupImportComponentNames: scriptSetupImportComponentNames(),
templateRefNames: new Map(),
Expand Down Expand Up @@ -160,7 +160,7 @@ function createTsx(
templateCodegen: _template,
compilerOptions: ctx.compilerOptions,
vueCompilerOptions: ctx.vueCompilerOptions,
edited: ctx.test || (fileEditTimes.get(fileName) ?? 0) >= 2,
edited: ctx.vueCompilerOptions.__test || (fileEditTimes.get(fileName) ?? 0) >= 2,
getGeneratedLength: () => generatedLength,
linkedCodeMappings,
});
Expand Down
1 change: 0 additions & 1 deletion packages/language-core/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export type VueLanguagePlugin = (ctx: {
compilerOptions: ts.CompilerOptions;
vueCompilerOptions: VueCompilerOptions;
globalTypesHolder: string | undefined;
test?: boolean;
}) => VueLanguagePluginReturn | VueLanguagePluginReturn[];

export interface SfcBlock {
Expand Down

0 comments on commit 2fd7159

Please sign in to comment.