Skip to content

Smart select randomly selects first parenthesis in call expression #101199

@OliverJAsh

Description

@OliverJAsh
  • VSCode Version: latest
  • OS Version: latest

Steps to Reproduce:

a(
  1
)
  1. Place your cursor on a (before/after the function name)
  2. Run "expand selection" twice

Expected: the whole call expression should be selected, including the arguments.

image

Actual: only a( is selected. This is not at all helpful. The user has to run "expand selection" again to get what they want.

image

Note this works in a variable declaration, so I don't see why we would want different behaviour outside of a variable? E.g.

const x = a(
  1
)

image

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions