LuaLS / LuaLS/lua-language-server
non-`file:` URIs in library/userThirdParty settings don't work
還沒有人認領這個 Issue。
- 主要語言
- Lua
- 星號
- 4.4k
- 分支
- 442
- PR 合併指標
- 30 天內沒有已合併 PR
描述
my extension generates a LuaLS userThirdParty bundle dynamically from Factorio's doc files (from the local game install, generally). I'm working on trying to switch to using a virtual FS provider for these files instead of cluttering up real workspace-associated folders with them. I've registered as the provider for fmtk: uris, and i can open all the files for the generated bundle in vscode in editor tabs, but LuaLS won't load them as libraries.
I set
"Lua.workspace.userThirdParty": [
"fmtk:/luals"
],
in my settings.json, instead of setting the generated folder path as i had done previously, but LuaLS seems to have completely ignored it.
I also tried
"Lua.workspace.library": [
"fmtk:/luals/factorio/library"
],
but that also seems to ignore anything that isn't a plain file path.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,使用報告中顯示的 fmtk: 虛擬檔案系統提供者以及 Lua.workspace.userThirdParty 和 Lua.workspace.library 設定重現問題。追蹤這些設定如何解析函式庫路徑;當非檔案 URI 被載入為函式庫而不是遭到忽略,且有一個涵蓋此行為的回歸測試時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- lua, vscode
- 領域
- devtools
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100