microsoft / microsoft/TypeScript
TypeScript Language Features: `Analyzing '...' and its dependencies` takes crazy long time!
还没有人认领这个 Issue。
- 主要语言
- Go
- 星标
- 111k
- 派生
- 14.3k
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 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:
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`:
```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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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