typescript-tslint-plugin icon indicating copy to clipboard operation
typescript-tslint-plugin copied to clipboard

Duplicated "fix all auto-fixable tslint failures"

Open DanTup opened this issue 6 years ago • 2 comments

The first and fourth fixes here appear to be the same. I'm not sure if it's something I've done, or a bug (or how to tell).

screenshot 2019-01-03 at 6 48 44 pm

DanTup avatar Jan 03 '19 18:01 DanTup

I run into the same issue after coding for a little while. Also, all tslint issues appear many times. Reloading the window clears the issue for me. Problem only pops up for me after reloading the typescript project (via cmd+p), but it's somewhat random.

Extensions:

Extension Author (truncated) Version
path-intellisense chr 1.4.2
typescript-angular-plugin cyr 1.1.0
prettier-vscode esb 1.7.3
error-gutters Igo 1.0.1
Angular2 joh 7.0.1
vscode-scss mrm 0.6.2
vscode-typescript-tslint-plugin ms- 0.3.0
debugger-for-chrome msj 4.11.1
angular2-inline nat 0.0.17
material-icon-theme PKi 3.6.2
sass-indented rob 1.5.1
ayu tea 0.17.0

superamadeus avatar Jan 10 '19 15:01 superamadeus

Difficult to fix because of how VS code gets quick fixes from the TS Server: we sequentially request fixes for each diagnostic in the selection. The plugin has no way to know that multiple requests are connected.

Could use https://github.com/Microsoft/TypeScript/issues/29452 or may need another TS Server api change (or maybe an ugly workaround)

mjbvz avatar Jan 22 '19 00:01 mjbvz

Closing as TSLint has been deprecated in favor of ESLint. We are archiving this repo as this project is no longer maintained

mjbvz avatar May 01 '23 20:05 mjbvz