-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Open
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugeditor-coreEditor basic functionalityEditor basic functionality
Description
Does this issue occur when all extensions are disabled?: Yes
Version: 1.108.2 (user setup)
Commit: c9d7799
Date: 2026-01-21T13:52:09.270Z
Electron: 39.2.7
ElectronBuildId: 12953945
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26100
Please reopen #116729 and/or #151655. The issue is real and reproducible. Below are a screencast and exact steps.
To Reproduce
Create two files in the same workspace: one .ini and one .properties. The contents can be anything, for example:
foo
bar
Part 1
- Close all files and restart VS Code.
- Open the
.propertiesfile first. - Toggle line comment. See that VS Code uses
#in the.propertiesfile. - Open the
.inifile. - Toggle line comment. See that VS Code also uses
#in the.inifile.
Part 2
- Close all files and restart VS Code.
- Open the
.inifile first. - Toggle line comment. See that VS Code uses
;in the.inifile. - Open the
.propertiesfile. - Toggle line comment. See that VS Code also uses
;in the.propertiesfile.
For the same two files, the comment character used by Toggle Line Comment depends on which file type was opened first.
Screencast
explorer_2026-03-02--15-41-48--715.mp4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugeditor-coreEditor basic functionalityEditor basic functionality