microsoft / microsoft/TypeScript
Memory skyrockets with VSCode extension
Chưa có ai nhận issue này.
- 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ả
### Extension Version
0.20260708.2
### VS Code Version
1.133.0
### Operating system Version
Ubuntu 26.04
### Steps to reproduce
1. Setup a blank project and install these 3 packages
```
mkdir test-memory
cd test-memory
npm init -y
npm install gulp sass gulp-sass
```
2. Create a file `gulpfile.js` (or any name afaik) with the below contents
```js
"use strict";
const gulp = require("gulp");
const sass = require("sass");
const gulpSassPackage = require("gulp-sass");
// const gulpSass = gulpSassPackage(sass);
```
3. Open said file in VSCode with the Typescript 7 extension enabled
4. Open a memory monitor and uncomment the last line
5. Run `Restart TS Server` or `Reload window` after memory starts exploding to prevent full computer crash
### Issue
In the scenario outlined memory explodes to all remaining memory on my system within 5-10 seconds if I don't stop it.
I have no idea why this specific combination of factors causes this but it's incredibly consistent even in an isolated project as set up above. I have tested this with all my other extensions disabled, as long as the `Typescript 7` extension is enabled and `Enable tsgo` is on the memory explosion happens.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện báo cáo bằng npm setup và gulpfile.js được cung cấp, sau đó mở trong VS Code với extension TypeScript 7 và Enable tsgo được bật. Theo dõi bộ nhớ trong khi bỏ comment phần khởi tạo gulp-sass và so sánh hành vi sau khi khởi động lại TS server hoặc tải lại cửa sổ. Hoàn thành khi bản tái hiện tối thiểu không còn gây tăng bộ nhớ không giới hạn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, node.js, sass, typescript, vscode
- Lĩnh vực
- developer-experience, tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100