提交 c2ad779c 编写于 作者: J Joao Moreno

fix check in parseMessageArguments

上级 ee7de5d4
......@@ -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 };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册