microsoft / microsoft/TypeScript
Auto imports from referenced project not working until already imported once in project
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Go
- Star
- 111k
- Fork
- 14.3k
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 132
Mô tả
TS Template added by @mjbvz
TypeScript Version: 4.0.0-dev.20200727
Search Terms
- angular
- project references
- auto imports
- VSCode Version: 1.47.2
- OS Version: Mac OS Catalina 10.15.5
Steps to Reproduce:
I have an Angular project, and just 1 of the files don't have a proper suggestion support in it.
Same happens when I create a file via plus sign from the side bar.
VSCode doesn't suggest "obvious(necessary)" things, quite the contrary happens:
it suggests everything else what's available, but not what I need and not what really exists in the project.
Also, when I try to import environment object with 'src/environments/environment',
it doesn't seem to know about src folder(project_name/src).
Although it already works this way for all the other files in the project.
Cache cleaning && insiders build didn't help out, no errors in debug console and I couldn't find any useful tsserver logs.
Although I can send if necessary.
Having 3.9.7 TS
Does this issue occur when all extensions are disabled?: Yes
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.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện thiết lập tham chiếu dự án Angular được báo cáo trong VS Code, tập trung vào các gợi ý tự động import trước khi symbol được tham chiếu được import ở nơi khác. Issue không nêu tệp hay test nào trong repository; công việc được xem là hoàn tất khi các import từ dự án được tham chiếu, bao gồm src/environments/environment, được gợi ý nhất quán trong các tệp mới tạo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript, vscode
- Lĩnh vực
- developer-experience, tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- 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
- 35/100