microsoft / microsoft/TypeScript
Memory skyrockets with VSCode extension
まだ誰も着手していません。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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