Skip to content

Commit

Permalink
Exclude ParentProcessWatcher by default
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel D. Leslie <[email protected]>
  • Loading branch information
ralish authored and fbricon committed Mar 20, 2019
1 parent e1f7438 commit 7767fcb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/javaServerStarter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { workspace } from 'vscode'
import { Executable, ExecutableOptions } from 'vscode-languageclient';
import { RequirementsData } from './requirements';
import * as os from 'os';
import * as path from 'path';
const glob = require('glob');

Expand All @@ -27,6 +28,12 @@ function prepareParams(requirements: RequirementsData): string[] {
//params.push('-agentlib:jdwp=transport=dt_socket,server=y,address=1054');
}
let vmargs = workspace.getConfiguration("xml").get("server.vmargs", '');
if (os.platform() == 'win32') {
const watchParentProcess = '-DwatchParentProcess=';
if (vmargs.indexOf(watchParentProcess) < 0) {
params.push(watchParentProcess + 'false');
}
}
parseVMargs(params, vmargs);
let server_home: string = path.resolve(__dirname, '../../server');
let launchersFound: Array<string> = glob.sync('**/org.eclipse.lsp4xml-uber.jar', { cwd: server_home });
Expand Down

0 comments on commit 7767fcb

Please sign in to comment.