microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.42k stars 28.95k forks source link

Code Color Format issue in passing object to child class (in latest Vscode update ) vue js 2 #229366

Closed aiengrimran closed 3 weeks ago

aiengrimran commented 3 weeks ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

  1. we are developing an app before the current update our code format was fine, but now it is giving color format issues when passing objects to a child class <CustomSelect label="Area" :items="areaList" :inputClass="{'class' : true}" here( for class key I cannot other than string value) v-model.number="form.area_id" @input="deliveryAreaSelect"

                                    >
                                        <template #information>
                                            <Popover :name="popUpMessage('delivery_area')" />
                                        </template>
                                        <template #has-error>
                                            <has-error :form="form" field="area_id"></has-error>
                                        </template>
                                </CustomSelect>
  2. issue can be observed from the a) for string color format is ok Screenshot 2024-09-23 at 4 15 38 PM

    attached images

b) for non string values

Screenshot 2024-09-23 at 4 16 26 PM Screenshot 2024-09-23 at 4 17 22 PM

thanks for reading is this issue is related to vscode color format or syntax error in general

mjbvz commented 3 weeks ago

VS Code does support or highlight vue out of the box. Please file this against your vue extension

aiengrimran commented 3 weeks ago

@mjbvz :) Thanks mate after disabling the Vue official extension the format issue is gone. I will contact there