Skip to content

Classes are not recognized until VS is restarted #108037

@ghost

Description

Issue Type: Bug

I have installed extensions to allow VS to suggest classes when I'm writing my HTML, but this only works once I restart VS.

Let's say I have classes:
.one
.two

If I just opened my html, I am able to type class="o and it will suggest class "one". Or type class="t and it suggests class "two".
Then I go to my css file and add another class:
.three
Save it. Go back to my HTML file.

No matter what I do, it won't suggest class "three". Only when I quit VS and restart it, I am able to type class="t and it suggests class "three".

In Brackets, for example, it shows them automatically, after I save my css file.

VS Code version: Code 1.49.3 (2af0510, 2020-10-02T17:54:06.165Z)
OS version: Darwin x64 17.7.0
Mac osX 10.13.6

System Info
Item Value
CPUs Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz (4 x 2400)
GPU Status 2d_canvas: unavailable_software
flash_3d: disabled_software
flash_stage3d: disabled_software
flash_stage3d_baseline: disabled_software
gpu_compositing: disabled_software
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
protected_video_decode: disabled_off
rasterization: disabled_software
skia_renderer: disabled_off_ok
video_decode: disabled_software
webgl: unavailable_software
webgl2: unavailable_software
Load (avg) 2, 2, 2
Memory (System) 8.00GB (0.09GB free)
Process Argv --crash-reporter-id fbebfd90-2c98-4bd8-ad6e-cf6c08d29e0f
Screen Reader no
VM 0%
Extensions (7)
Extension Author (truncated) Version
vscode-browser-preview auc 0.6.7
prettier-vscode esb 5.7.1
code-beautifier mic 2.3.3
vetur oct 0.28.0
LiveServer rit 5.6.1
highlight-matching-tag vin 0.10.0
html-css-class-completion Zig 1.19.0

(1 theme extensions excluded)

Metadata

Metadata

Assignees

No one assigned

    Labels

    *caused-by-extensionIssue identified to be caused by an extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions