microsoft / microsoft/vscode-cpptools

Need a way to provide system defines and system includes when compiler querying is disabled (with compilerPath of "").

オープン
#6,909 コメント 19 件 リアクション 14 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Feature Request Feature: Configuration Language Service
主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
14時間 46分
マージ済み PR(30日)
61

説明

It's possible to disable compiler querying (and disable fallback to a different compiler on failure) by specifying a compilerPath of "". This also works in combination with a custom configuration provider or compile_commands.json, to prevent use of the compiler they indicate (in case it's not cl.exe, gcc, or a gcc variant we can query). However, the defines and includes from c_cpp_properties.json are not currently getting merged into the configuration in those cases. Since no compiler will be queried, it seems necessary to support a way for the user to provide the missing system includes and systems defines.

This issue tracks merging in the includes and defines from c_cpp_properties.json when a compilerPath of "" is used in combination with a custom configuration provider or compile_commands.json.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

compilerPath が空で、カスタム構成プロバイダーまたは compile_commands.json が構成を提供する場合に、c_cpp_properties.json がどのようにマージされるかを追跡します。コンパイラーの問い合わせが無効になっている構成で動作を検証し、その後、コンパイラーに問い合わせることなく、ユーザーが指定したシステム include と define が存在することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp, typescript
領域
developer-experience, tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。