microsoft / microsoft/TypeScript

TypeScript Language Features: `Analyzing '...' and its dependencies` takes crazy long time!

オープン
#62,230 コメント 6 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Domain: Performance Help Wanted Possible Improvement
主要言語
Go
スター
111k
フォーク
14.3k
平均マージ
2日 4時間
マージ済み PR(30日)
132

説明

Does this issue occur when all extensions are disabled?: Yes

Version: 1.102.3 (user setup)
Commit: 488a1f239235055e34e673291fb8d8c810886f81
Date: 2025-07-29T03:00:23.339Z
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.26100

This takes a long time for am empty TS file:

Image

Steps to Reproduce:

  1. Install NodeJS.
  2. Create an empty folder. Open it with vsCode.
  3. Create the below files with the exact content shown.
  4. Run npm i in terminal to install packages.
  5. Open and view index.ts file.
  6. Do ctrl+shift+p and select TypeScript: Restart TS Server.
  7. In the Status Bar, you would see Analyzing 'index.ts' and its dependencies (Source: TypeScript and JavaScript Language Features).

The Analyzing 'index.ts' and its dependencies spins for a very long time. The package we installed, has a lot of files, but it wasn't like this before. Things worked fine with even a ton of packages and TS files.

Here are the source files to reproduce:

index.ts: EMPTY FILE!

package.json:

{
    "dependencies": {
        "phosphor-icons-svelte": "2.0.9"
    }
}

.gitignore:

/node_modules/

This issue may be related: https://github.com/microsoft/vscode/issues/244098

Locking issues should be a crime! I mentioned the issue and it's not visible in that issue page! I can't even comment on that issue page. Don't lock issues just because you don't like them. Locking issues breaks so many basic and necessary functionalities of GitHub.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

空の index.ts、phosphor-icons-svelte を含む package.json、および記載された VS Code の手順で遅延を再現します。まず TypeScript サーバーを再起動し、ステータスバーを観察します。関連する issue 244098 と動作を比較します。この最小構成のプロジェクトで分析が速やかに完了するよう、リグレッションを特定して解消できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
node.js, typescript, vscode
領域
devtools, performance
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。