LuaLS / LuaLS/vscode-lua

Include LuaCATS library with a dependent extension

未关闭
#127 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
215
派生
62
PR 合并指标
30 天内没有已合并 PR

描述

Hi,

I have a set of LuaCATS types for a proprietary SDK: https://github.com/notpeter/playdate-luacats/

I would like to create a simple VSCode extension which depends upon sumneko.lua and bundles those types. Is this possible?

If it is not currently possible, I believe vscode-lua could provide a public API for other extensions by adding additional functions to the object returned from the activate(context: vscode.ExtensionContext) function:

https://github.com/LuaLS/vscode-lua/blob/7b58d50b4ea5feb1a478e6b0c18194ca1d1192a1/client/src/extension.ts#L33-L37

See: VSCode extensions API Documentation.

This exported API could be something simple like library_add(path) so I can provide a path to a subdirectory in my extension bundle for my lua ---@meta files.

I would love to attempt this myself, but I'm still struggling setup a working extension development environment. See: https://github.com/LuaLS/vscode-lua/discussions/125.

Thanks again for creating a great extension.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 client/src/extension.ts 第 33-37 行附近以及 VS Code extensions API 文档开始,然后查看链接的 extension-development 讨论,以了解设置上下文。确定依赖扩展是否可以捆绑 LuaCATS 类型,或者是否需要 public API;当受支持的集成路径建立并完成文档记录后,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
lua, typescript, vscode
领域
tooling
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。