Skip to content

Feature: Expose token level hover actions, similar to what we have now for lines #420

@ShpetimA

Description

@ShpetimA

Prerequisites

Proposal

I would like to have token based hover actions on top of the line level ones that we have atm.

For example something like:
onTokenEnter
onTokenLeave
onTokenClick

I have a fork of the feature here https://github.com/ShpetimA/pierre/tree/pierre-token , I was curious if you guys would add something like this in the future or I could even create a pr for this.

Screen.Recording.2026-03-25.at.7.07.24.PM.mov

Motivation and context

Lsp integration with annotation (have):

The reason why I want this feature is because atm I'm working on a local code reviewing tool and I'm starting to add lsp support on top, atm with the current api I can only add annotations which are good for showing diagnostic information :

Image

Additional lsp actions (missing):

But as additional features I also want to add lsp information on hover like showing type definitions, gtd gtr etc. To achieve this I need these new onToken callbacks or something to that extent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions