File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 11import { workspace } from 'vscode'
22import { Executable , ExecutableOptions } from 'vscode-languageclient' ;
33import { RequirementsData } from './requirements' ;
4+ import * as os from 'os' ;
45import * as path from 'path' ;
56const 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 } ) ;
You can’t perform that action at this time.
0 commit comments