vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Option to lint on save

Open rafaelrenanpacheco opened this issue 5 years ago • 5 comments

Environment
  • Operating System: Linux x64 5.4.28-1-MANJARO
  • JDK version: OpenJDK 11.0.6
  • Visual Studio Code version: 1.43.2
  • Java extension version: 0.59.0
Feature request

When typing some code the extension will automatically lint the code when I stop typing, but before I save the file. This causes some distraction because I get some warning even tho I didn't finish writing my code. Would be possible to add an option to lint the code on save in order to reduce linting distractions?

Current Result

Lint errors/warning while typing code, before any save is done.

Expected Result

Lint when saving the file.

rafaelrenanpacheco avatar Apr 01 '20 16:04 rafaelrenanpacheco

This is also extremely useful for lower-end computers since it lags like hell as you are typing and take a quick pause.

ok-nick avatar Jun 01 '21 19:06 ok-nick

I would also love this option!

jbytes1027 avatar Jun 05 '21 03:06 jbytes1027

I would also love this option. Please make it happen

Pankaj-Talesara avatar Jun 28 '21 04:06 Pankaj-Talesara

it would also be very useful to just have an ignore feature to ignore some errors

isaacherbst613 avatar Oct 01 '21 16:10 isaacherbst613

Yes it can be quite distracting when you're still typing the code and the extension already starts to report errors. An option to increase the error reporting delay from 1000ms to a higher value would be highly appreciated.

ghost avatar Jul 15 '22 09:07 ghost