microsoft / microsoft/vscode-cpptools-api

Allow specific file paths in `includePath` and `browse.path` from a custom provider and `c_cpp_properties.json`

オープン
#73 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

主要言語
TypeScript
スター
33
フォーク
20
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello,
currently only folders can be specified in browse.path and includePath.
This leads to issues in bigger projects that contain smaller sub-projects.

project
├───common_include
│   ├───foo.h
│   └───bar.h
├───target_include
│   ├───foo.h
│   └───bar.h
└───main.c

As an example, here only common_include/foo.h and target_include/bar.h are required but as only folders can be defined via browse.path and includePath both */foo.h and */bar.h files will be parsed.

This may be solved by using compile_commands.json files however this is not possible in my case.
I know all the correct files that should be used in IntelliSense however I'm unable to define them as these

browse.path: Path is not a directory: c:\path\to\common_include\foo.h
includePath: Path is not a directory: c:\path\to\target_include\bar.h

errors are raised while entering specific files (applies to both .h and .c files).

At the same time forcedInclude allows to define specific files that should be included.

Would it be possible to allow specific files to also be defined in the other settings in the c_cpp_properties.json file and by a custom provider?

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

調査の方向性

まず c_cpp_properties.json の includePath と browse.path の設定から始め、次に custom provider のエントリーポイントを調べ、それらのパス処理を forcedInclude と比較します。完了とは、両方の設定ソースから特定の .c および .h パスがディレクトリエラーなしで受け入れられ、要求されたファイルだけが解析されることです。

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

評価

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

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

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