microsoft / microsoft/vscode-java-debug
Allow 3rd-party extensions to contribute in-memory launch config
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 591
- 派生
- 429
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 19
描述
Currently, vscode-java-debug searches the .vscode/launch.json file for a launch config matching the classname+project name.
If none is found, a default config is built in memory:
I'd like the JBang extension to provide a custom in-memory config, where we can dynamically set the add-opens args for instance, to be able to keep in synch' with the JBang directives in the java file, rather than having to create/update .vscode/launch.json at some point.
Would be nice if vscode-java-debug allowed 3rd-party extension to contribue launch config participants, that, if they match, would then provide a custom in-memory config, if none was found on disk.
See the video at the 4'37" mark and https://twitter.com/fbricon/status/1698735665259626996 for context
cc @maxandersen
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 src/extension.ts 第427-433行和450-459行中的 launch-config 查找和回退构造开始。跟踪默认内存中配置的选择方式,然后确定像 JBang 这样的第三方参与者如何提供匹配的配置。当磁盘上不存在匹配项时,扩展能够提供自定义的内存中配置(包括动态派生的 add-opens 参数),即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100