LuaLS / LuaLS/lua-language-server
let .luarc.json runtime.special's require detection accepts lua path with .lua suffix
未关闭
还没有人认领这个 Issue。
- 主要语言
- Lua
- 星标
- 4.4k
- 派生
- 442
- PR 合并指标
- 30 天内没有已合并 PR
描述
Recoil Engine's lua script uses VFS.Include as require, I want use "runtime.special": {"VFS.Include":"require"}, but VFS.Include uses path with suffix (e,g, VFS.Include("LuaRules/Configs/modCommandsDefs.lua")) which currently not supported by luals.
Can you make it possible? let require detection accepts lua path with .lua suffix
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 runtime.special 的 require 检测入口点以及 VFS.Include 映射的处理方式。使用类似 LuaRules/Configs/modCommandsDefs.lua 的路径复现该配置,然后验证 require 检测能够接受 .lua 后缀,同时不会破坏无后缀路径。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- lua
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100