Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lint errors not being refreshed after fix

In VS Code I get a lot of lint errors, but they do not refresh after fix. If you look in image I removed line 16 but it still appears.

Is this a bug in VS Code or how do these get removed?

enter image description here Do I have to restart VS Code?

like image 882
Thomas Segato Avatar asked Nov 27 '25 03:11

Thomas Segato


1 Answers

The accepted answer here is real bad, there's no actual explaination.

For ESLint: I pull this from this thread https://github.com/microsoft/vscode-eslint/issues/477

To fix this you need to restart the lint server:

  1. Use CTRL + SHIFT + P
  2. Look for: ESLint: Restart ESLint Server

For TSLint: VSCode needs to be restarted after modifying tsconfig and tslint files in nrwl nx projects to eliminate errors (not sure why the answer got a -1 as this seems to be viable. If anyone knows please let me know!)

  1. Use CTRL + SHIFT + P
  2. Look for: Restart TS Server
like image 149
Kris Boyd Avatar answered Nov 28 '25 16:11

Kris Boyd



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!