microsoft / vscode-typescript-tslint-plugin

VS Code extension that provides TSLint support using the typescript-tslint-plugin
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin
MIT License
188 stars 35 forks source link

Memory skyrocket #126

Closed EnochGao closed 4 years ago

EnochGao commented 4 years ago

In vscode1.41.0, angular application CTRL +s, memory will skyrocket

RonaldTheodoro commented 4 years ago

Steps to Reproduce:

  1. Open a *.ts file
  2. Edit any part of the file

Does this issue occur when all extensions are disabled?: No

darkpoetcc commented 4 years ago

This sounds somewhat similar to the issue sussed out here: https://github.com/microsoft/vscode/issues/86723

GitStorageOne commented 4 years ago

vscode 1.41.1 windows 10.0.17763.914 With only one plugin installed - TSLint (ms-vscode.vscode-typescript-tslint-plugin)

simple angular component:


import { Component } from '@angular/core';
import { ITest, createSomething } from '../test-bug/some-file';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {

  title = 'ng-lng-srvc';
  variable: ITest;

  somefunc() {
    createSomething();
  }

}

some-file.ts


export function createSomething() {

}

export interface ITest {
  justOneMoreThing: string;
}

To reproduce fatal problem, we must quickly repeat described actions (few times):

vscode will eat all available memory then crash.
If plugin is disabled, everything will be fine.

To be lucky one, it's better to use slow hard drive rather than SSD.
Also, i found that a big project gets error more often.

mjbvz commented 4 years ago

Duplicate of https://github.com/microsoft/vscode/issues/85919