"Configure your IntelliSense settings" displays on startup with file already open, if using a custom config provider

Đang mở
#10,875 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

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ả

Feature: Configuration Language Service

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:
image

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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/vscode-cpptools

Tất cả issue của microsoft/vscode-cpptools

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.