LuaLS / LuaLS/lua-language-server
Way to disable HTML tags in hover block
まだ誰も着手していません。
- 主要言語
- Lua
- スター
- 4.4k
- フォーク
- 442
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Hover
Expected Behaviour
Hi. I've come across the fact that some people want to use angle brackets as a classic description for arguments, like command-line arguments <arg>[, arg]. But VS Code automatically considers these HTML tags in hover block and deletes them. I would like to be able to disable this behavior in per-project (workspace or .luarc) and user settings.
-- Adds <amount> of <item> to character.
---@param item string
---@param amount integer
function Character:AddItem(item, amount) end
Also I like to use markdown style, but not html tags.
I found #996 where it feels like html tags can be disabled without disabling markdown - supportHtml.
Actual Behaviour
It ate my names, they're not html tags.
Reproduction steps
- Place anything in angle brackets in your comment
- Look, it's gone when you hover
Additional Notes
I found some info on this page https://luals.github.io/wiki/annotations/
The below methods can be added to the end of a line:
HTML <br> tag (recommended)
\n newline escape character
Two trailing spaces (may be removed by formatting tools)
Markdown backslash \ ( [not recommended](https://www.markdownguide.org/basic-syntax#line-break-best-practices) )
but only the first one seems to work, and the others don't do anything.
Log File
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、Lua language server の hover のレンダリングと設定の経路を追跡し、比較対象として参照されている #996 の supportHtml の動作を使用します。workspace、.luarc、ユーザー設定がどのように読み込まれるかを確認し、その後 VS Code extension で山括弧の例を再現します。markdown を有効にしたまま、HTML タグの解釈をプロジェクト単位またはユーザー設定で無効にできれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- lua, vscode
- 領域
- developer-experience, tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100