Skip to content

cursorWordPartLeft doesn't stop at - when it is excluded from editor.wordSeparators #158667

Description

@nikita-r

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

  • VS Code Version: 1.70.1
  • OS Version: Windows 11

Steps to Reproduce:

  1. Change the "editor.wordSeparators" setting to exclude dash character (e.g. { "editor.wordSeparators": "~!@#$%^&*()=+[{]}\\|;:'\",.<>/?" }) — this is actually a desirable setting in e.g. html/css
  2. Assign a keybinding to "cursorWordPartLeft"/"cursorWordPartRight" commands
  3. Observe how the definition of a "word part" differs between invocation of "editor.action.smartSelect.expand" (default kb is "shift+alt+right") and "cursorWordPart*"; "cursorWordPart*" does not behave as expected for a string mat-button (should have "word breaks" at the same spots as it does in mat_button)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-wordnavEditor word navigation issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions