@@ -236,7 +236,6 @@ export function create(
236
236
prop = {
237
237
name,
238
238
kind : 'prop' ,
239
- isGlobal : true ,
240
239
} ;
241
240
}
242
241
}
@@ -247,7 +246,7 @@ export function create(
247
246
const { isEvent, propName } = getPropName ( prop . name , prop . kind === 'event' ) ;
248
247
249
248
if ( prop . kind === 'prop' ) {
250
- if ( ! prop . isGlobal || specialProps . has ( propName ) ) {
249
+ if ( ! prop . isGlobal ) {
251
250
item . kind = 5 satisfies typeof CompletionItemKind . Field ;
252
251
}
253
252
}
@@ -258,7 +257,7 @@ export function create(
258
257
}
259
258
}
260
259
261
- if ( ! prop . isGlobal || specialProps . has ( propName ) ) {
260
+ if ( ! prop . isGlobal ) {
262
261
tokens . push ( '\u0000' ) ;
263
262
264
263
if ( item . label . startsWith ( ':' ) ) {
@@ -573,7 +572,7 @@ export function create(
573
572
} ) ;
574
573
}
575
574
576
- const models : [ boolean , string ] [ ] = [ ] ;
575
+ const models : string [ ] = [ ] ;
577
576
578
577
for (
579
578
const prop of [
@@ -582,31 +581,28 @@ export function create(
582
581
]
583
582
) {
584
583
if ( prop . name . startsWith ( 'onUpdate:' ) ) {
585
- const isGlobal = ! propNameSet . has ( prop . name ) ;
586
- models . push ( [ isGlobal , prop . name . slice ( 'onUpdate:' . length ) ] ) ;
584
+ models . push ( prop . name . slice ( 'onUpdate:' . length ) ) ;
587
585
}
588
586
}
589
587
for ( const event of events ) {
590
588
if ( event . startsWith ( 'update:' ) ) {
591
- models . push ( [ false , event . slice ( 'update:' . length ) ] ) ;
589
+ models . push ( event . slice ( 'update:' . length ) ) ;
592
590
}
593
591
}
594
592
595
- for ( const [ isGlobal , model ] of models ) {
593
+ for ( const model of models ) {
596
594
const name = casing . attr === AttrNameCasing . Camel ? model : hyphenateAttr ( model ) ;
597
595
598
596
attributes . push ( { name : 'v-model:' + name } ) ;
599
597
propMap . set ( 'v-model:' + name , {
600
598
name,
601
599
kind : 'prop' ,
602
- isGlobal,
603
600
} ) ;
604
601
605
602
if ( model === 'modelValue' ) {
606
603
propMap . set ( 'v-model' , {
607
604
name,
608
605
kind : 'prop' ,
609
- isGlobal,
610
606
} ) ;
611
607
}
612
608
}
0 commit comments