microsoft / microsoft/TypeScript

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

Đang mở
#62,230 6 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Domain: Performance Help Wanted Possible Improvement
Ngôn ngữ chính
Go
Star
111k
Fork
14.3k
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
132

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Tái hiện độ trễ với index.ts trống, package.json chứa phosphor-icons-svelte và các bước VS Code được liệt kê; trước tiên hãy khởi động lại máy chủ TypeScript và quan sát thanh trạng thái. So sánh hành vi với issue liên quan 244098. Hoàn thành nghĩa là xác định và giải quyết hồi quy để quá trình phân tích hoàn tất nhanh chóng đối với dự án tối thiểu này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
node.js, typescript, vscode
Lĩnh vực
devtools, performance
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.