language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Incorrect syntax highlighting when using object literals

Open yoyo837 opened this issue 1 year ago • 2 comments

Vue - Official extension or vue-tsc version

2.0.28

VSCode version

1.91.1

Vue version

2.x

TypeScript version

None

System Info

System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Max
    Memory: 184.17 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.20.4 - /opt/homebrew/opt/node@18/bin/node
    npm: 10.7.0 - /opt/homebrew/opt/node@18/bin/npm
    pnpm: 9.5.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 126.0.6478.183
    Safari: 17.5

Steps to reproduce

<OrderList
  :order-info="{
    actions: [],
  }"
/>

What is expected?

The lines which that after actions: [], syntax highlighting should works correctly.

What is actually happening?

The lines which that after actions: [], syntax highlighting is incorrect.

Link to minimal reproduction

No response

Any additional comments?

No response

yoyo837 avatar Jul 22 '24 09:07 yoyo837

image


image

yoyo837 avatar Jul 22 '24 09:07 yoyo837

Cannot be reproduced on my machine.

kermanx avatar Jul 23 '24 15:07 kermanx

index.vue.zip

Please help to check this source file.

yoyo837 avatar Jul 26 '24 08:07 yoyo837

Sorry, I still cannot reproduce it. Try disabling all plugins except "Vue - Official" and see if this still happens.

kermanx avatar Jul 27 '24 03:07 kermanx

I confirmed that it was broken by the WindiCSS IntelliSense plugin. Earlier, because WindiCSS stopped maintenance, we had migrated our code to Tailwindcss, but forgot to uninstall the plugin.

yoyo837 avatar Aug 07 '24 01:08 yoyo837