LuaLS / LuaLS/vscode-lua

Git submodules are handled in a weird way

未關閉
#132 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
TypeScript
星號
215
分支
62
PR 合併指標
30 天內沒有已合併 PR

描述

Which OS are you using?

Linux

Expected Behaviour

I would like completion and linting to work :(

Actual Behaviour

Capture vidéo du 2023-12-21 21-17-28.webm

The stent folder is a submodule. This bug happens also with every other submodule in my workspace.

Reproduction steps
  1. Open a folder in VSCode with Lua code, which contains Git submodules also with Lua code defining type classes, globals, etc.
  2. Open a file from the main folder which depends on submodule code (classes or globals) in VSCode editor
  3. See these references are unknown or undefined
  4. Open in a second tab a file from the submodule
  5. Go back to the first file, see that the references are right
  6. Close the file from the submodule
  7. Go back to the first file, see that the references are unknown or undefined
Additional Notes

No response

Log

Will provide it full if needed but its long due to being workspace related stuff and I looked into it without finding an error or something suspicious.

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

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

研究方向

issue 中未指定檔案或測試。按照列出的步驟在 Linux VSCode workspace 中重現該行為,然後追蹤 extension 中對 workspace 和 submodule 的處理,以及 language-server integration。完成標準是:無需先開啟 submodule 檔案,completion 和 linting 即可辨識 submodule 中的 Lua 定義。

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

評估

技術堆疊
git, lua, typescript, vscode
領域
developer-experience, tooling
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

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

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