haskell-language-server icon indicating copy to clipboard operation
haskell-language-server copied to clipboard

Reporting semantic tokens for tokens that are not "truly semantic"

Open MangoIV opened this issue 7 months ago • 1 comments

Hi ~ I would like to use the semantic tokens provider to replace all of the highlighting in an editor, i.e. I don't want to use any other highlighting providers. Unfortunately, at the moment it seems that the semantic highlighting doesn't know about keywords, string literals, comments etc.

Is there a specific reason why this has been decided against? Is there any significant barrier for adding this onto hls?

cc @soulomoon

Thank you!

MangoIV avatar Jul 16 '25 09:07 MangoIV

Because we are only retrieving identifiers(with Name in ghc) from hieast for simplicity. We do not parse things ground up or use other sources. They look to me more like syntax object? Do you feel like adding them, that's welcoming.

soulomoon avatar Jul 17 '25 00:07 soulomoon