serverGreeting is optional

This commit is contained in:
Martin Aeschlimann
2022-02-09 15:57:56 +01:00
parent 4299ef80de
commit 5a0c28a463
2 changed files with 3 additions and 4 deletions

View File

@@ -97,9 +97,8 @@ export async function setupServerServices(connectionToken: ServerConnectionToken
logService.trace(`Remote configuration data at ${REMOTE_DATA_FOLDER}`);
logService.trace('process arguments:', environmentService.args);
const serverGreeting = productService.serverGreeting.join('\n');
if (serverGreeting) {
spdLogService.info(`\n\n${serverGreeting}\n\n`);
if (Array.isArray(productService.serverGreeting)) {
spdLogService.info(`\n\n${productService.serverGreeting.join('\n')}\n\n`);
}
// ExtensionHost Debug broadcast service