microsoft / microsoft/vscode-cpptools-api
Allow specific file paths in `includePath` and `browse.path` from a custom provider and `c_cpp_properties.json`
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 33
- Fork
- 20
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với các thiết lập includePath và browse.path trong c_cpp_properties.json, sau đó kiểm tra điểm vào của custom provider và so sánh cách xử lý đường dẫn của chúng với forcedInclude. Hoàn thành khi các đường dẫn .c và .h cụ thể được chấp nhận từ cả hai nguồn cấu hình mà không có lỗi thư mục và chỉ các tệp được yêu cầu được phân tích.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- c, cpp
- Lĩnh vực
- devtools, tooling
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100