[Code] Dont use symlink for jdt config on windows (#40338) (#40343)

This commit is contained in:
Pengcheng Xu 2019-07-04 18:33:23 +08:00 committed by GitHub
parent f16b50a8d2
commit b165d8dab7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,6 +127,11 @@ export class JavaLauncher extends AbstractLauncher {
process.platform === 'win32' ? 'java.exe' : 'java'
);
const configPath =
process.platform === 'win32'
? path.resolve(installationPath, 'repository/config_win')
: this.options.jdtConfigPath;
const params: string[] = [
'-Declipse.application=org.elastic.jdt.ls.core.id1',
'-Dosgi.bundles.defaultStartLevel=4',
@ -138,7 +143,7 @@ export class JavaLauncher extends AbstractLauncher {
'-jar',
path.resolve(installationPath, launchersFound[0]),
'-configuration',
this.options.jdtConfigPath,
configPath,
'-data',
this.options.jdtWorkspacePath,
];