More tweaks to vscode-boot-java jvm finding.

Look for a sibling JDK if the found java exe belongs to a jre.
This commit is contained in:
Kris De Volder
2018-02-05 14:57:53 -08:00
parent 4f180c08c1
commit 476dc27e0b
4 changed files with 53 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ export function activate(context: VSCode.ExtensionContext) {
DEBUG: false,
CONNECT_TO_LS: false,
extensionId: 'boot-java',
preferJdk: true,
launcher: (context: VSCode.ExtensionContext) => 'org.springframework.boot.loader.JarLauncher',
classpath: (context: VSCode.ExtensionContext, jvm: commons.JVM) => {
const classpath = [

View File

@@ -49,7 +49,7 @@
"vsce-package": "vsce package"
},
"dependencies": {
"commons-vscode": "0.1.4",
"commons-vscode": "file:../commons-vscode/commons-vscode-0.1.4.tgz",
"vscode-languageclient": "^3.4.5"
},
"devDependencies": {