microsoft / microsoft/vscode-java-debug
Optimize the search logic for launch.json
未关闭
还没有人认领这个 Issue。
ai-triaged
debt
enhancement
- 主要语言
- TypeScript
- 星标
- 591
- 派生
- 429
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 19
描述
See https://github.com/microsoft/vscode-java-debug/pull/1234/files#r1010024710.
We have some code to search a launch.json file via await vscode.workspace.findFiles(".vscode/launch.json", "**/node_modules/**");, it can be optimized by specifying the workspace folder and maxResult as 1.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中描述的 vscode.workspace.findFiles 调用开始,并查看链接的 pull request 讨论以了解其上下文。更新搜索,使其使用工作区文件夹并将最大结果数设为 1,然后验证 launch.json 的发现仍会返回预期的文件。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript, vscode
- 领域
- devtools
- Issue 类型
- 重构
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100