microsoft / microsoft/vscode-cpptools-api
Include flags with relative directories always resolve relative to workspace
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 33
- 派生
- 20
- PR 合并指标
- 30 天内没有已合并 PR
描述
Problem
If a SourceFileConfiguration includes a entry in compilerFragments like /I..\foo, cpptools will attempt to resolve that include directory relative to the VS Code workspace root and silently discard the flag if the directory does not exist. However, it's possible that the compiler process was invoked with a different working directory than the workspace root, and the relative include directory would have resolved successfully relative to the compiler's working directory.
Suggested fix
Add a new readonly directory?: string; property to SourceFileConfiguration that specifies the working directory of the compiler process. Relative paths in compilerFragments should resolve relative to directory, if it is defined.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 SourceFileConfiguration 声明,以及将 compilerFragments 相对于 VS Code 工作区根目录进行解析的代码。确认编译器工作目录的表示方式,然后确保使用已定义的目录来处理相对 include 路径,并确保新的可选属性在公共 API 中公开。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- api
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100