Include flags with relative directories always resolve relative to workspace
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- api
调研方向
首先定位 SourceFileConfiguration 声明,以及将 compilerFragments 相对于 VS Code 工作区根目录进行解析的代码。确认编译器工作目录的表示方式,然后确保使用已定义的目录来处理相对 include 路径,并确保新的可选属性在公共 API 中公开。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 33
- 派生
- 20
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/vscode-cpptools-api 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 5/5 一周以上 新手友好度 25/100
microsoft/vscode-cpptools-api#56 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
microsoft/vscode-cpptools-api#50 · 2 条评论 · 2 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
microsoft/vscode-cpptools-api#43 · 6 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
microsoft/vscode-cpptools-api#42 · 2 条评论 · 1 个 reaction ·
查看 microsoft/vscode-cpptools-api 的全部 Issue
相似的 Issue
-
bot:ai-assisted component:compact-js status:untriaged
难度 2/5 1-3 小时 新手友好度 84/100
midnightntwrk/midnight-sdk#403 ·
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
joinmarket-webui/jam#1496 · 1 条评论 ·
-
Tech
难度 2/5 1-3 小时 新手友好度 68/100
opencrvs/opencrvs-core#13865 ·
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
linagora/twake-calendar-frontend#1377 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 72/100
EclipseFdn/open-vsx.org#13385 · 1 条评论 ·