microsoft / microsoft/TypeScript
Memory skyrockets with VSCode extension
未关闭
还没有人认领这个 Issue。
- 主要语言
- Go
- 星标
- 111k
- 派生
- 14.3k
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 132
描述
Extension Version
0.20260708.2
VS Code Version
1.133.0
Operating system Version
Ubuntu 26.04
Steps to reproduce
- Setup a blank project and install these 3 packages
mkdir test-memory
cd test-memory
npm init -y
npm install gulp sass gulp-sass
- Create a file
gulpfile.js(or any name afaik) with the below contents
"use strict";
const gulp = require("gulp");
const sass = require("sass");
const gulpSassPackage = require("gulp-sass");
// const gulpSass = gulpSassPackage(sass);
- Open said file in VSCode with the Typescript 7 extension enabled
- Open a memory monitor and uncomment the last line
- Run
Restart TS ServerorReload windowafter 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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用提供的 npm 设置和 gulpfile.js 重现该报告,然后在启用 TypeScript 7 扩展和 Enable tsgo 的 VS Code 中打开它。在取消 gulp-sass 初始化的注释时监控内存,并比较重启 TS server 或重新加载窗口后的行为。当最小复现不再导致内存无限增长时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, node.js, sass, typescript, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100