Skip to content

Toggle comments not working at startup #3776

@bapman81

Description

@bapman81

When I try to toggle line comments in a .vue file, nothing happens.

It is not working either by using the keyboard shortcut or using the menu (Edit --> Toggle Line Comment).

Also not working when using "Toggle Block Comment".

However it starts working when I switch to a pure JavaScript file and come back to the .vue file! Sometimes switching to another .vue file also makes it working but not systematically.

It used to work before and the only thing I changed was to update to macOS Sonoma (14) from Ventura (13) but I cannot be sure it is coming from it.

VSC info:

Version: 1.84.2 (Universal)
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:52:33.687Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 23.1.0

Volar: 1.8.24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions