LuaLS / LuaLS/lua-language-server

Feature Request: Language server to be recursive regardless of trailing slashes

未關閉
#2,039 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

enhancement
主要語言
Lua
星號
4.4k
分支
442
PR 合併指標
30 天內沒有已合併 PR

描述

When executing the language server binary with `--check [path]` flag, it will only diagnose the immediate child elements of the given path if it contains a trailing slash
~~Currently, if I want to diagnose a project different subdirectories via the CLI, e.g. the lua-language-server itself, I'll need a script that calls the binary for every subdirectory of the project to get a full report - and as a result I get a check.json for every subdirectory with diagnosed problems.~~ Edit: Just have to make sure the path format is correct.

~~So for example, I'd like to call something like
`.\language-server\bin\lua-language-server.exe --check .\language-server\ --recursive`
and have all the source files in subdirectories checked as well.
That way it might also be possible to have a single check.json as a report as well.~~

The correct enhancement to propose is to handle things like a trailing slash in the path the same

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 language server 的 `--check [path]` 入口開始,追蹤帶有結尾斜線的路徑如何被處理。比較相同路徑的遞迴診斷,然後確認帶有和不帶有結尾斜線的輸入會產生相同的完整報告。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
lua
領域
cli
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。