1
- import type { Mapping } from '@volar/language-core' ;
2
1
import { camelize , capitalize } from '@vue/shared' ;
3
2
import { computed } from 'alien-signals' ;
4
3
import * as path from 'path-browserify' ;
@@ -46,7 +45,6 @@ const plugin: VueLanguagePlugin = ctx => {
46
45
const tsx = codegen . getGeneratedScript ( ) ;
47
46
if ( tsx ) {
48
47
embeddedFile . content = [ ...tsx . codes ] ;
49
- embeddedFile . linkedCodeMappings = [ ...tsx . linkedCodeMappings ] ;
50
48
}
51
49
}
52
50
} ,
@@ -221,9 +219,6 @@ function createTsx(
221
219
} ) ;
222
220
223
221
const getGeneratedScript = computed ( ( ) => {
224
- const linkedCodeMappings : Mapping [ ] = [ ] ;
225
- let generatedLength = 0 ;
226
-
227
222
const codes : Code [ ] = [ ] ;
228
223
const codegen = generateScript ( {
229
224
ts,
@@ -238,8 +233,6 @@ function createTsx(
238
233
templateCodegen : getGeneratedTemplate ( ) ,
239
234
destructuredPropNames : getSetupDestructuredPropNames ( ) ,
240
235
templateRefNames : getSetupTemplateRefNames ( ) ,
241
- getGeneratedLength : ( ) => generatedLength ,
242
- linkedCodeMappings,
243
236
appendGlobalTypes,
244
237
} ) ;
245
238
fileEditTimes . set ( fileName , ( fileEditTimes . get ( fileName ) ?? 0 ) + 1 ) ;
@@ -248,16 +241,12 @@ function createTsx(
248
241
while ( ! current . done ) {
249
242
const code = current . value ;
250
243
codes . push ( code ) ;
251
- generatedLength += typeof code === 'string'
252
- ? code . length
253
- : code [ 0 ] . length ;
254
244
current = codegen . next ( ) ;
255
245
}
256
246
257
247
return {
258
248
...current . value ,
259
249
codes,
260
- linkedCodeMappings,
261
250
} ;
262
251
} ) ;
263
252
0 commit comments