LuaLS / LuaLS/lua-language-server

[Question] Methods with parameters always show 2 overflows on hover, one typed and one "any"

オープン
#1,589 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement
主要言語
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

To only show the typed parameter, not the any parameter. And pick the typed one by default.

Actual Behaviour

My methods with params are always displaying 2 possible overflows, the typed one and one with any as a param type:

By default it selects the any overflow

I have to manually specify the parameter

Then it works


Reproduction steps

Meta file:

Additional Notes

Is it possible to remove the any overflow? Am i missing some definition / setting?

Log File

No response

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、リンクされたスクリーンショットとメタファイルの例を使って Visual Studio Code 拡張機能のホバー動作を再現し、次にホバーシグネチャとオーバーロードの選択がどのように生成されるかを追跡します。型付きパラメーターのシグネチャが冗長な any オーバーロードなしで表示され、デフォルトで選択されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
lua, vscode
領域
developer-experience, tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。