File tree Expand file tree Collapse file tree 6 files changed +10
-9
lines changed
Expand file tree Collapse file tree 6 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -661,7 +661,7 @@ function* generateReferencesForScopedCssClasses(
661661 const startOffset = prop . exp . loc . start . offset - 3 ;
662662
663663 const { ts } = options ;
664- const ast = ts . createSourceFile ( '' , content , 99 satisfies typeof ts . ScriptTarget . Latest ) ;
664+ const ast = ts . createSourceFile ( '' , content , 99 satisfies ts . ScriptTarget . Latest ) ;
665665 const literals : ts . StringLiteralLike [ ] = [ ] ;
666666
667667 ts . forEachChild ( ast , node => {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import type { TemplateCodegenContext } from './context';
77
88export function * generateInterpolation (
99 options : {
10- ts : typeof import ( 'typescript' ) ,
10+ ts : typeof ts ,
1111 destructuredPropNames : Set < string > | undefined ,
1212 templateRefNames : Set < string > | undefined
1313 } ,
Original file line number Diff line number Diff line change 1+ import type * as ts from 'typescript' ;
12import type { VueLanguagePlugin } from '../types' ;
23
34const plugin : VueLanguagePlugin = ( { modules } ) => {
@@ -9,7 +10,7 @@ const plugin: VueLanguagePlugin = ({ modules }) => {
910 compileSFCScript ( lang , script ) {
1011 if ( lang === 'js' || lang === 'ts' || lang === 'jsx' || lang === 'tsx' ) {
1112 const ts = modules . typescript ;
12- return ts . createSourceFile ( 'test.' + lang , script , 99 satisfies typeof ts . ScriptTarget . Latest ) ;
13+ return ts . createSourceFile ( 'test.' + lang , script , 99 satisfies ts . ScriptTarget . Latest ) ;
1314 }
1415 } ,
1516 } ;
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ export type VueLanguagePluginReturn = {
8383
8484export type VueLanguagePlugin = ( ctx : {
8585 modules : {
86- typescript : typeof import ( 'typescript' ) ;
87- '@vue/compiler-dom' : typeof import ( '@vue/compiler-dom' ) ;
86+ typescript : typeof ts ;
87+ '@vue/compiler-dom' : typeof CompilerDOM ;
8888 } ;
8989 compilerOptions : ts . CompilerOptions ;
9090 vueCompilerOptions : VueCompilerOptions ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { Language } from '@vue/language-core';
22import type * as ts from 'typescript' ;
33
44export interface RequestContext < T = any > {
5- typescript : typeof import ( 'typescript' ) ;
5+ typescript : typeof ts ;
66 languageService : ts . LanguageService ;
77 languageServiceHost : ts . LanguageServiceHost ;
88 language : Language < T > ;
Original file line number Diff line number Diff line change @@ -138,14 +138,14 @@ export async function searchNamedPipeServerForFile(fileName: string) {
138138 }
139139
140140 // Find servers containing the current file
141- const containsFile = await sendRequestWorker < boolean > ( { type : 'containsFile' satisfies Request [ 'type' ] , args : [ fileName ] } , socket ) ;
141+ const containsFile = await sendRequestWorker < boolean > ( { type : 'containsFile' , args : [ fileName ] } , socket ) ;
142142 if ( ! containsFile ) {
143143 socket . end ( ) ;
144144 return ;
145145 }
146146
147147 // Get project info for each server
148- const projectInfo = await sendRequestWorker < ProjectInfo > ( { type : 'projectInfo' satisfies Request [ 'type' ] , args : [ fileName ] } , socket ) ;
148+ const projectInfo = await sendRequestWorker < ProjectInfo > ( { type : 'projectInfo' , args : [ fileName ] } , socket ) ;
149149 if ( ! projectInfo ) {
150150 socket . end ( ) ;
151151 return ;
@@ -179,7 +179,7 @@ export async function searchNamedPipeServerForFile(fileName: string) {
179179 }
180180
181181 // Get project info for each server
182- const projectInfo = await sendRequestWorker < ProjectInfo > ( { type : 'projectInfo' satisfies Request [ 'type' ] , args : [ fileName ] } , socket ) ;
182+ const projectInfo = await sendRequestWorker < ProjectInfo > ( { type : 'projectInfo' , args : [ fileName ] } , socket ) ;
183183 if ( ! projectInfo ) {
184184 socket . end ( ) ;
185185 return ;
You can’t perform that action at this time.
0 commit comments