Skip to content

[Bug] Wrong string selection in double quotes on double click #292784

@Profesor08

Description

@Profesor08

Does this issue occur when all extensions are disabled?: No

Version: 1.109.0-insider (user setup)
Commit: bdd88df
Date: 2026-02-04T02:00:40.203Z
Electron: 39.3.0
ElectronBuildId: 13168319
Chromium: 142.0.7444.265
Node.js: 22.21.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Steps to Reproduce:

  1. Open VSCode Insiders
  2. Open settings
  3. Set theme Darkula, install if not available (https://marketplace.visualstudio.com/items?itemName=alex-pex.theme-darkula)
  4. Create .js file with code
const test = (arg) => {
  return arg;
}

test("test-sample");
  1. Double click on first or last symbol in string

Extepected: full string in double quotes to be selected

Image

Actual: string is selected without first and last symbols

Image
20260204-0810-52.8171923.mp4

Issue appeared a few weeks ago. I have checked theme extension alex-pex.theme-darkula, it was updated a log time ago. This mean, the issue is with one of latest updates of vscode.

Also I have check theme file itself, and tried to modify it, to fix issue. And found the cause, may be. Removing this part, fixes issue, but it breaks highlight.

		<dict>
			<key>name</key>
			<string>Punctuation</string>
			<key>scope</key>
			<string>punctuation</string>
			<key>settings</key>
			<dict>
				<key>foreground</key>
				<string>#808080</string>
			</dict>
		</dict>

There is the file: darkula.tmTheme.zip

This issue reproduces not only on one theme, but on other themes too, not on all.

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugregressionSomething that used to work is now brokenverification-foundIssue verification failed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions