microsoft / microsoft/TypeScript
Auto imports from referenced project not working until already imported once in project
まだ誰も着手していません。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、報告された Angular のプロジェクト参照設定を VS Code で再現し、参照先のシンボルが他の場所でまだ import されていない状態での自動 import 候補に焦点を当てます。issue ではリポジトリのファイルやテストは指定されていません。完了条件は、src/environments/environment を含む参照先プロジェクトからの import が、新しく作成したファイルで一貫して候補に表示されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript, vscode
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100