Change GotoDeclaration tooltip text

I've created a couple of GotoDeclarationHandler classes. One of them simply opens a file matching its filename usage in another file, so when you ctrl-hover over the filename, the tooltip shows the absolute path of the file that would be navigated to. That's fine.

The second handler takes you to a YAML declaration in another file. When you click, it works exactly as desired. However, when you ctrl-hover over the target, the tooltip says something like YAML Key Value Impl "tag" [something.yml]. Is there way to customize this tooltip text? I tried changing the implementation of GotoDeclarationHandler.getActionText method, but that didn't seem to do anything.

0
1 comment

This text comes from the YAML plugin. We can improve the current generic text to make it look better, but it's not possible to customize the text from a different plugin.

0

Please sign in to leave a comment.