microsoft / microsoft/vscode-cpptools-api
Include flags with relative directories always resolve relative to workspace
まだ誰も着手していません。
- 主要言語
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、SourceFileConfiguration の宣言と、VS Code ワークスペースのルートを基準に compilerFragments を解決するコードを見つけます。コンパイラーの作業ディレクトリがどのように表現されているかを確認し、相対インクルードパスに定義済みのディレクトリが使用されること、また新しいオプションのプロパティが公開 API に公開されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 55/100