File tree 3 files changed +5
-13
lines changed
packages/language-core/lib/codegen/template
3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ function* generateValue(
176
176
options ,
177
177
ctx ,
178
178
prop ,
179
- exp ,
180
- ctx . codeFeatures . all
179
+ exp
181
180
) ;
182
181
}
Original file line number Diff line number Diff line change @@ -150,7 +150,6 @@ export function* generateElementProps(
150
150
ctx ,
151
151
prop ,
152
152
prop . exp ,
153
- ctx . codeFeatures . all ,
154
153
enableCodeFeatures
155
154
)
156
155
)
@@ -260,7 +259,6 @@ export function* generateElementProps(
260
259
ctx ,
261
260
prop ,
262
261
prop . exp ,
263
- ctx . codeFeatures . all ,
264
262
enableCodeFeatures
265
263
)
266
264
) ] ;
@@ -281,17 +279,13 @@ export function* generatePropExp(
281
279
ctx : TemplateCodegenContext ,
282
280
prop : CompilerDOM . DirectiveNode ,
283
281
exp : CompilerDOM . SimpleExpressionNode | undefined ,
284
- features : VueCodeInformation ,
285
282
enableCodeFeatures : boolean = true
286
283
) : Generator < Code > {
287
284
const isShorthand = prop . arg ?. loc . start . offset === prop . exp ?. loc . start . offset ;
285
+ const features = isShorthand
286
+ ? ctx . codeFeatures . withoutHighlightAndCompletion
287
+ : ctx . codeFeatures . all ;
288
288
289
- if ( isShorthand && features . completion ) {
290
- features = {
291
- ...features ,
292
- completion : undefined ,
293
- } ;
294
- }
295
289
if ( exp && exp . constType !== CompilerDOM . ConstantTypes . CAN_STRINGIFY ) { // style='z-index: 2' will compile to {'z-index':'2'}
296
290
if ( ! isShorthand ) { // vue 3.4+
297
291
yield * generateInterpolation (
Original file line number Diff line number Diff line change @@ -59,8 +59,7 @@ export function* generateSlotOutlet(
59
59
options ,
60
60
ctx ,
61
61
nameProp ,
62
- nameProp . exp ,
63
- ctx . codeFeatures . all
62
+ nameProp . exp
64
63
) ,
65
64
`]`
66
65
] ;
You can’t perform that action at this time.
0 commit comments