This commit is contained in:
parent
0b75d84286
commit
3b9a4ffed4
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { execFile, spawn } from 'child_process';
|
||||
import { existsSync } from 'fs';
|
||||
import { existsSync, mkdirSync } from 'fs';
|
||||
import getPort from 'get-port';
|
||||
import * as glob from 'glob';
|
||||
import { platform as getOsPlatform } from 'os';
|
||||
|
@ -177,6 +177,11 @@ export class JavaLauncher extends AbstractLauncher {
|
|||
);
|
||||
}
|
||||
|
||||
// Check if workspace exists before launching
|
||||
if (!existsSync(this.options.jdtWorkspacePath)) {
|
||||
mkdirSync(this.options.jdtWorkspacePath);
|
||||
}
|
||||
|
||||
const p = spawn(javaPath, params, {
|
||||
cwd: this.options.jdtWorkspacePath,
|
||||
detached: false,
|
||||
|
|
Loading…
Reference in a new issue