microsoft / microsoft/TypeScript
IntelliSense Import Stops Working After One Import
まだ誰も着手していません。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
TS Template added by @mjbvz
TypeScript Version: 3.9.5
Search Terms
- npm link
- linux
- auto import
- VSCode Version: 1.46.1
- OS Version: Linux x64 5.3.0-61-generic snap
Steps to Reproduce:
I created a stripped down repo: https://github.com/shcca/vscode
npm installcd packages/clinpm link ../core- packages/core/test.ts and enter/save:
export const helloWorld1 = () => {}
- packages/cli/deploy.ts and add at the top:
import { helloWorld1 } from 'core'
- packages/cli/deploy.ts, within the handler function, add/save:
helloWorld1()
- packages/core/test.ts, add/save:
export const helloWorld2 = () => {}
- packages/core/deploy.ts, under helloWorld1(), enter helloWorld2().
IntelliSense doesn't pick up on helloWorld2(). The only way to get it work is to restart VSCode, but then helloWorld3() wouldn't work. This is something that broke recently because I've been working in this project structure for a while with no issues.
Does this issue occur when all extensions are disabled?: Yes
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされた shcca/vscode リポジトリと記載された npm link の手順を使用して問題を再現し、その後、リンクされた export の更新に関係する TypeScript IntelliSense または language-service の経路を調査します。VS Code を再起動せずに helloWorld2 などの新しく追加された export が検出され、再現手順を使用して動作が検証できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript, vscode
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100