microsoft / microsoft/vscode-cpptools-api
Allow pointing `SourceFileConfigurationItem` to a compile_commands.json file.
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ả
Feature Request
When implementing a CustomConfigurationProvider for intellisense, it would be good to be able to construct a SourceFileConfigurationItem from an existing compile_commands.json.
At Arm we're developing an extension where different files in a project could belong to different build "contexts" e.g. for a different target or compiler toolchain, so we need to be able to set different intellisense configurations depending on which file is being viewed.
Currently I am trying to parse out the command portion of the compile_commands.json to get the compiler args/fragments, and building up the compilerFragments list, but it would be so much better to point at compile_commands.json directly, similar to how it is being done in the c_cpp_properties.json config.
I hope this makes sense. If you have any alternative ideas on how to achieve this, it would be great to hear about it.
Thanks!
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 API SourceFileConfigurationItem và CustomConfigurationProvider, sau đó so sánh hành vi hiện tại của chúng với cách xử lý c_cpp_properties.json được đề cập trong issue. Xác định cách một tệp compile_commands.json phải cung cấp các cấu hình IntelliSense cho từng tệp và xác nhận API cùng các bài kiểm thử dự kiến với các maintainer; hoàn thành khi các bên gọi có thể trỏ tới tệp mà không cần tự phân tích các lệnh biên dị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ệ
- cpp
- Lĩnh vực
- devtools
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100