Skip to content

Annotation editor support#568

Merged
Earthcomputer merged 15 commits intomasterfrom
annotations-support
Oct 18, 2025
Merged

Annotation editor support#568
Earthcomputer merged 15 commits intomasterfrom
annotations-support

Conversation

@Earthcomputer
Copy link
Contributor

Implements a few features / hooks to support the annotations editor.

The annotations editor is also ready to try out on my branch of yarn.

The features in question are:

  • Implements icons in the gutter, and adds the ability for plugins to add them for declarations.
  • API for plugins to get the active GUI scale.
  • API for plugins to check whether the GUI is set to a dark theme.
  • API for plugins to create a JEditorPane the same as the main one in Enigma.
  • API for plugins to get the declaration under the cursor (as opposed to only the reference).
  • API for plugins to list all classes including library classes (the existing API only listed project classes).
  • API for plugins to create a LocalVariableEntry, so that they can get the yarn names of parameters.
  • Exposed BridgeMethodIndex to the API.

These features are for the most part in individual commits, but there are some of the commits are fixes to features added in earlier commits.

@Earthcomputer Earthcomputer merged commit 87581ff into master Oct 18, 2025
4 checks passed
@Earthcomputer Earthcomputer deleted the annotations-support branch October 18, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants