"Configure your IntelliSense settings" displays on startup with file already open, if using a custom config provider
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cpp, typescript, vscode
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Bắt đầu với việc xử lý khi khởi động đối với một tệp .cpp đã mở, đăng ký custom configuration provider và prompt "Configure your IntelliSense settings". Tái hiện chuỗi trong issue, sau đó xác minh rằng prompt không xuất hiện sau khi custom configuration được đăng ký khi không còn vấn đề thiếu header nào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Repro steps:
- Use a workspace folder configured using a custom configuration provider.
- Leave a .cpp file open when the workspace folder was last used.
- Open that workspace folder.
Seeing:

Note that there are no 'problems' here to resolve.
Expected: No prompt to fix my missing headers when there are none missing.
This is likely happening for everyone who use custom configuration providers (including those who are automatically configured to use one), any time they open a workspace folder that already has a .cpp file open.
When cpptools starts up, there is a brief period of time in which the custom configuration would not yet be registered. Rather than wait for it to register, a TU is started (for the already open file in the editor) with the base configuration, which likely will not be a proper configuration for the file. Moments later, as the custom configuration provider registers, the TU is recreated, and any transient errors are cleared out. Yet, this dialog is still displayed.
One possible solution would be to delay this dialog until a certain amount of time after start-up, and not display it if whatever issue that triggered it has already been resolved.
Ideally, we could remove this prompt whenever we see that there is no longer any such issue to address. If it's not possible to programmatically dismiss the dialog, perhaps we should open a feature request for that against VS Code.
- Ngôn ngữ chính
- TypeScript
- Star
- 6.2k
- Fork
- 1.7k
- Merge trung bình
- 14 giờ 46 phút
- Pull request đã merge (30 ngày)
- 61
Hướng dẫn đóng góp
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.
Issue khác của microsoft/vscode-cpptools
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/vscode-cpptools#14787 ·
-
[Bug] cpptools fails to start on Ubuntu ARM64 due to missing execute permissions on shared libraries Đang mởbug fixed Language Service regression
microsoft/vscode-cpptools#14779 · 1 người được giao ·
-
Language Service more info needed
microsoft/vscode-cpptools#14778 · 1 bình luận · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 64/100
microsoft/vscode-cpptools#14769 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
microsoft/vscode-cpptools#14768 · 1 bình luận ·
Tất cả issue của microsoft/vscode-cpptools
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
0xMiden/bridge-portal#132 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
area:tools bug good first issue help wanted priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
newrelic-experimental/preflight#793 · 1 bình luận ·