LuaLS / LuaLS/lua-language-server

[Question] Why is `ignoreSubmodules` by default true?

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

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

主要言語
Lua
スター
4.4k
フォーク
442
PR マージ指標
30日以内にマージされた PR はありません

説明

The title is my question.

To be more clear, I didn't know this option for years, and always kept seeing 3K errors of undeclared global values that are defined in my submodules. This almost keeps me away from this language server, and I think it is the same for some other people (although I didn't find any issue in this repo reporting such problem).

Is there any particular reason to ignore submodules by default? If this is reasonable, maybe we should prompt the user to let them choose whether they want to ignore submodules? Or we can keep this option to be `false` by default, and make ignoring submodule an extra `diagnostics.disable`?

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

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

はじめの一歩

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

調査の方向性

まず、issue で説明されている `ignoreSubmodules` オプションと、それに関連する `diagnostics.disable` の動作を調査します。サブモジュールがデフォルトで無視される理由を特定し、その後、提案されているデフォルト値とプロンプト表示の代替案を比較します。プロジェクトとして明確で合意された決定がなされ、それに対応する動作が実現された時点で作業は完了です。

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

評価

技術スタック
lua
領域
devtools
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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