0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VS CodeでTypeScriptの補完や型チェックが重いときの対処法

0
Posted at

はじめに

大規模な TypeScript プロジェクトを開いていると、VS Code の補完や型チェックが重くなったり、tsserver がクラッシュしたりすることがあります。

このような場合は、tsserver に割り当てる最大メモリ量を増やすことで改善することがあります。

設定方法

settings.json に以下を追加します。

{
  "js/ts.tsserver.maxMemory": 4096
}

4096 は tsserver に割り当てる最大メモリ量(MB)を表します。プロジェクトの規模に応じて適宜変更してください。

稼働環境

  • Visual Studio Code 1.126.0
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?