diff --git a/src/javaServerStarter.ts b/src/javaServerStarter.ts index 4fa228540..679097379 100644 --- a/src/javaServerStarter.ts +++ b/src/javaServerStarter.ts @@ -53,7 +53,11 @@ export function prepareExecutable(requirements: RequirementsData, workspacePath, const transportKind = getJavaConfiguration().get('transport'); switch (transportKind) { + case 'stdio': + executable.transport = TransportKind.stdio; + break; case 'pipe': + default: executable.transport = TransportKind.pipe; try { generateRandomPipeName(); @@ -62,12 +66,6 @@ export function prepareExecutable(requirements: RequirementsData, workspacePath, executable.transport = TransportKind.stdio; } break; - case 'stdio': - executable.transport = TransportKind.stdio; - break; - default: - executable.transport = TransportKind.pipe; - break; } logger.info(`Starting Java server with: ${executable.command} ${executable.args?.join(' ')}`); return executable;