Skip to content

Vue extension shows incorrect red color syntax highlighting on nested curly brackets of a plain text file #5029

Closed
@fireattack

Description

@fireattack

Type: Bug

  1. create a text file temp.txt with content such as
{"I am": "just", "a": {"nested": "json"}} 

or

{111, {222}} 

image
image

Expected: no red color for brackets.

Observed: Vue extension causes incorrect "red color" (indicating unmatched bracketing or wrong syntax?) for these brackets despite they're totally valid JSON (case 1), or totally matched (case 2).

Not sure why Vue is syntax-highlighting plain text to begin with; but at least for parentheses and square brackets, this does not happen:

(1, (2)) [1, [2]] 

image

Extension version: 2.1.10
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-14600K (20 x 3494)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.77GB (14.00GB free)
Process Argv --crash-reporter-id b6fcf05e-a986-4547-b92a-20ce53e79f08
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 dvdeprecation:31068756 dwnewjupytercf:31046870 2f103344:31071589 nativerepl1:31139838 pythonrstrctxt:31112756 nativeloc1:31192215 cf971741:31144450 iacca1:31171482 notype1:31157159 5fd0e150:31155592 dwcopilot:31170013 stablechunks:31184530 

Metadata

Metadata

Assignees

No one assigned

    Labels

    good reproduction ✨This issue provides a good reproduction, we will be able to investigate it first

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions