haskell / haskell/haskell-language-server

Incorrect highlighting in hover in VS Code

未关闭
#389 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
component: ghcide type: bug
主要语言
Haskell
星标
3k
派生
455
平均合并
2 天 19 小时
30 天内合并 PR
11

描述

I have noticed the following issues in hover highlighting in VS Code:

1. Type highlighted as a value.
![highlight_hover_error_1](https://user-images.githubusercontent.com/1297748/92630832-b90d5700-f2d0-11ea-9510-921db6ee6d4d.png)

2. Multi-line type signature incorrectly highlighted.
![highlight_hover_error_2](https://user-images.githubusercontent.com/1297748/92630841-bd397480-f2d0-11ea-9e9f-dedbf00af65e.png)

As one of the maintainers of the [VS Code syntax highlighting extension](https://github.com/JustusAdam/language-haskell) I'd like to figure out how to go about fixing these issues.

Could someone let me know how the hover syntax highlighting works in VS Code, i.e. which part of the code is responsible for generating the content of the hover boxes, and in what way is the syntax highlighting engine being called? Then I can try to solve the above two problems. **Edit**: this appears to be at [`Development.IDE.Spans.AtPoint.atPoint`](https://github.com/haskell/ghcide/blob/e837b2d0c5eb038edbadc992436c6d3aa6ba272a/src/Development/IDE/Spans/AtPoint.hs#L72) in `ghcide`. Going to experiment.

Let me know if you come across any other issues with hover syntax highlighting.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。