Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl/Cmd + left-clicking on user-defined enum value takes you to docs instead of code definition #94284

Closed
MajorMcDoom opened this issue Jul 12, 2024 · 0 comments · Fixed by #95200

Comments

@MajorMcDoom
Copy link
Contributor

MajorMcDoom commented Jul 12, 2024

Tested versions

Reproducible in 4.3.beta3

System information

Godot v4.3.beta3 - Windows 10.0.22631 - GLES3 (Compatibility) - NVIDIA GeForce GTX 1660 SUPER (NVIDIA; 32.0.15.5599) - Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz (16 Threads)

Issue description

When you ctrl/cmd + left-click on a reference to a user-defined enum value in the Script Editor, it opens up a new tab with the documentation for the class that contains the user-defined enum, instead of taking you to the place in the code where that enum value is defined.

Furthermore, if the containing script does not have a class name, it opens up a blank documentation tab which can't be closed with the hotkey (but can still be closed via the right-click context menu).

enum_docs

While it is super cool that you can view a doc page for your own classes (I have no idea how else to trigger this behaviour but it's really cool!), this behaviour is inconsistent with the regular behaviour of ctrl/cmd + left-clicking on user-written types/values, which all take you to the place in the code that defines the item.

Steps to reproduce

  • Open up the attached project, and open up test_script.gd in the Script Editor.
  • Ctrl/Cmd + left-click on MyEnum.HELLO on line 6.
  • Notice that a new documentation tab opens up.
  • Erase the class name in the script, save, and repeat step 2.
  • Notice that a new blank documentation tab is created, and cannot be closed with the hotkey.

Minimal reproduction project (MRP)

bug-report.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants