@@ -11,7 +11,7 @@ import { logger } from './log';
1111import { addLombokParam , isLombokSupportEnabled } from './lombokSupport' ;
1212import { RequirementsData } from './requirements' ;
1313import { IS_WORKSPACE_VMARGS_ALLOWED , getJavaEncoding , getJavaagentFlag , getKey , isInWorkspaceFolder } from './settings' ;
14- import { deleteDirectory , ensureExists , getJavaConfiguration , getTimestamp , getVersion } from './utils' ;
14+ import { deleteDirectory , ensureExists , getJavaConfiguration , getTimestamp , getVersion , getVSCodeVariablesMap } from './utils' ;
1515import { log } from 'console' ;
1616
1717// eslint-disable-next-line no-var
@@ -39,7 +39,7 @@ const DEPENDENCY_COLLECTOR_IMPL_BF= 'bf';
3939export function prepareExecutable ( requirements : RequirementsData , workspacePath , context : ExtensionContext , isSyntaxServer : boolean ) : Executable {
4040 const executable : Executable = Object . create ( null ) ;
4141 const options : ExecutableOptions = Object . create ( null ) ;
42- options . env = Object . assign ( { syntaxserver : isSyntaxServer } , process . env ) ;
42+ options . env = Object . assign ( { syntaxserver : isSyntaxServer } , process . env , getVSCodeVariablesMap ( ) ) ;
4343 if ( os . platform ( ) === 'win32' ) {
4444 const vmargs = getJavaConfiguration ( ) . get ( 'jdt.ls.vmargs' , '' ) ;
4545 const watchParentProcess = '-DwatchParentProcess=false' ;
0 commit comments