Skip to content

Commit 7767fcb

Browse files
ralishfbricon
authored andcommitted
Exclude ParentProcessWatcher by default
Signed-off-by: Samuel D. Leslie <sdl@nexiom.net>
1 parent e1f7438 commit 7767fcb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/javaServerStarter.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { workspace } from 'vscode'
22
import { Executable, ExecutableOptions } from 'vscode-languageclient';
33
import { RequirementsData } from './requirements';
4+
import * as os from 'os';
45
import * as path from 'path';
56
const glob = require('glob');
67

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

0 commit comments

Comments
 (0)