A Java linter for Visual Studio Code using the the language server protocol.
javac-linter
provides linting for Java sources using javac
.
Tip: use
ctrl-k ctrl-h
to showjavac-linter
logs
JDK is required.
This extension contributes the following settings:
javac-linter.enable
: true
or false
(true by default)javac-linter.maxNumberOfProblems
: max number of source code problems (20 by default)javac-linter.javac
: Location of Java compiler executable (javac by default)javac-linter.classpath
: project classpath array ([workspaceRoot] by default)By example in settings.json
:
{
"javac-linter.enable": true,
"javac-linter.maxNumberOfProblems": 100,
"javac-linter.javac": "c:/Program Files/Java/jdk1.8.0_112/bin/javac.exe",
"javac-linter.classpath": [
"${workspaceRoot}/bin/classes"
]
}
Lint "on-fly" is not supported.
Take care when saving too quickly (ctrl-s
the Java source), because each time when the document is saved, javac
is executed.
Also .class
files are generated inside of the first classpath.
See CHANGELOG.md
Note: JDK is required.
First, to compile server.js
:
server
directory in terminal.npm install
npm run compile
Second, to compile extension.js
:
client
directory in VSCodenpm install
F5
to inspect and debug this extensionNote: Alternatively, you can copy this client folder to your
.vscode/extension
directory