mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
fix check in parseMessageArguments
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user