Skip to content

Commit a9936dd

Browse files
committed
Improve isMarkdownString check
1 parent 878ed51 commit a9936dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/api/common/extHostTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ export class MarkdownString {
12761276
if (thing instanceof MarkdownString) {
12771277
return true;
12781278
}
1279-
return (thing !== undefined) && thing.appendCodeblock && thing.appendMarkdown && thing.appendText && (thing.value !== undefined);
1279+
return thing && thing.appendCodeblock && thing.appendMarkdown && thing.appendText && (thing.value !== undefined);
12801280
}
12811281
}
12821282

0 commit comments

Comments
 (0)