microsoft / microsoft/TypeScript
Auto imports from referenced project not working until already imported once in project
还没有人认领这个 Issue。
- 主要语言
- Go
- 星标
- 111k
- 派生
- 14.3k
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 132
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先在 VS Code 中复现报告的 Angular 项目引用设置,重点关注被引用的符号尚未在其他位置导入之前的自动导入建议。该 issue 未指出任何仓库文件或测试;完成标准是在新建文件中始终建议来自被引用项目的导入,包括 src/environments/environment。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100