From c2ad779c6063bf73927147999ff5a0e67070d066 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Thu, 2 Feb 2017 17:33:05 +0100 Subject: [PATCH] fix check in parseMessageArguments --- src/vs/workbench/api/node/extHost.api.impl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/api/node/extHost.api.impl.ts b/src/vs/workbench/api/node/extHost.api.impl.ts index 234e7a82ca5..0e6822072e3 100644 --- a/src/vs/workbench/api/node/extHost.api.impl.ts +++ b/src/vs/workbench/api/node/extHost.api.impl.ts @@ -260,7 +260,7 @@ export function createApiFactory(initData: IInitData, threadService: IThreadServ function parseMessageArguments(args: any[]): { options: vscode.MessageOptions; items: any[]; } { const [first, ...rest] = args; - if (first && (typeof first === 'string' || first.title)) { + if (typeof first === 'string' || (first && first.title)) { return { options: emptyMessageOptions, items: args }; } else { return { options: first || emptyMessageOptions, items: rest };