1- import type { Mapping } from '@volar/language-core' ;
21import { camelize , capitalize } from '@vue/shared' ;
32import { computed } from 'alien-signals' ;
43import * as path from 'path-browserify' ;
@@ -46,7 +45,6 @@ const plugin: VueLanguagePlugin = ctx => {
4645 const tsx = codegen . getGeneratedScript ( ) ;
4746 if ( tsx ) {
4847 embeddedFile . content = [ ...tsx . codes ] ;
49- embeddedFile . linkedCodeMappings = [ ...tsx . linkedCodeMappings ] ;
5048 }
5149 }
5250 } ,
@@ -221,9 +219,6 @@ function createTsx(
221219 } ) ;
222220
223221 const getGeneratedScript = computed ( ( ) => {
224- const linkedCodeMappings : Mapping [ ] = [ ] ;
225- let generatedLength = 0 ;
226-
227222 const codes : Code [ ] = [ ] ;
228223 const codegen = generateScript ( {
229224 ts,
@@ -238,8 +233,6 @@ function createTsx(
238233 templateCodegen : getGeneratedTemplate ( ) ,
239234 destructuredPropNames : getSetupDestructuredPropNames ( ) ,
240235 templateRefNames : getSetupTemplateRefNames ( ) ,
241- getGeneratedLength : ( ) => generatedLength ,
242- linkedCodeMappings,
243236 appendGlobalTypes,
244237 } ) ;
245238 fileEditTimes . set ( fileName , ( fileEditTimes . get ( fileName ) ?? 0 ) + 1 ) ;
@@ -248,16 +241,12 @@ function createTsx(
248241 while ( ! current . done ) {
249242 const code = current . value ;
250243 codes . push ( code ) ;
251- generatedLength += typeof code === 'string'
252- ? code . length
253- : code [ 0 ] . length ;
254244 current = codegen . next ( ) ;
255245 }
256246
257247 return {
258248 ...current . value ,
259249 codes,
260- linkedCodeMappings,
261250 } ;
262251 } ) ;
263252
0 commit comments