-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hover documentation is truncated for some symbols #65
Comments
Couple of points noted when creating a solution for the immediate issue:
|
hauserx
added a commit
to hauserx/bazel-lsp
that referenced
this issue
Dec 5, 2024
Documentation for builtin starlark methods contains HTML tags, while LSP clients handle markdown much easier. Used htmd crate to convert HTML tags to markdown, and additionally change links from relative to pointing to bazel website. Fixes cameron-martin#65
This was referenced Dec 5, 2024
cameron-martin
pushed a commit
that referenced
this issue
Dec 9, 2024
The binary .pb files are now generated during build and embedded as previously in the binary itself. But repo contains text proto versions of the files. This provides more transparency about what is built into the binary itself, and more visibility into what PRs change around those files (for more informed reviews as well as less security concerns). Addresses one of the points mentioned in #65 (comment)
hauserx
added a commit
to hauserx/bazel-lsp
that referenced
this issue
Dec 10, 2024
Documentation for builtin starlark methods contains HTML tags, while LSP clients handle markdown much easier. Used htmd crate to convert HTML tags to markdown, and additionally change links from relative to pointing to bazel website. Fixes cameron-martin#65
cameron-martin
pushed a commit
that referenced
this issue
Dec 12, 2024
Documentation for builtin starlark methods contains HTML tags, while LSP clients handle markdown much easier. Used htmd crate to convert HTML tags to markdown, and additionally change links from relative to pointing to bazel website. Fixes #65
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See most prominent example here:
Looks like vscode is accepting some tags, but for uknown it simply removes content.
Possible solution 1: change vscode bazel extension
Applying this patch to vscode-bazel seems to do the trick:
Possible solution 2: Sanitize documentation
Remove html tags or/and replace those with marksdown
Possible crate to use, seems pretty lightweight: https://github.com/letmutex/htmd
Additional example: nvim
Example does not seem pretty in nvim as well (at least with my config). Not sure whether can teach nvim to understand html, possibly then option 2 would be better.
The text was updated successfully, but these errors were encountered: