Skip to content

Commit 9efae1c

Browse files
committed
port: Message Dialogs
1 parent e47ea7d commit 9efae1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Message Dialogs/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ async function createAdvancedDialog() {
5757

5858
dialog.set_extra_child(entry);
5959

60-
const response = await dialog.choose(workbench.window, null);
60+
// @ts-expect-error this function is not detected as async
61+
const response = await dialog.choose(workbench.window, null) as string;
6162
if (response === "login") {
6263
console.log(
6364
`Selected "${response}" response with password "${entry.get_text()}"`,

0 commit comments

Comments
 (0)