Skip to content

Selecting word makes CTRL + Click -> "Go to Definition" stop working #249371

@FMorschel

Description

@FMorschel

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

  • VS Code Version: 1.100.2
  • OS Version: Windows 11 Pro

Steps to Reproduce:

  1. Create a .py file with the following content:
class AA:
    pass

class B(AA):
    pass
  1. Select AA on line 4 (inside B(AA))
  2. Use CTRL + Click (F12 and context menu work normally)
  3. See that the cursor doesn't move to the declaration

If you unselect AA, the command works as expected.

I can also reproduce this in Dart, it is not a language-specific problem.

20250520_132754.mp4

This example is inside the Dart SDK:

20250520_105412.mp4

The first time I noticed it and tried screen recording for this issue, the issue stopped occurring. I had a break and put my computer in Sleep/Hibernate (not Suspended) mode, and when I came back, I could reproduce this fine again. Maybe something to do with that? I have no idea.

CC @DanTup

Metadata

Metadata

Assignees

Labels

editor-symbolsdefinitions, declarations, references

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions