Skip to content

Commit abc8402

Browse files
committed
[FIX] vscode: update notification should not block UI and server
1 parent 2480da8 commit abc8402

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

vscode/client/extension.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,17 @@ async function displayUpdatedNotification(context: ExtensionContext) {
142142
return
143143
}
144144

145-
const selection = await window.showInformationMessage(
145+
window.showInformationMessage(
146146
"The Odoo extension has been updated.",
147147
"Show changelog",
148148
"Dismiss"
149-
)
150-
switch (selection) {
151-
case "Show changelog":
152-
ChangelogWebview.render(context);
153-
break;
154-
}
149+
).then(selection => {
150+
switch (selection) {
151+
case "Show changelog":
152+
ChangelogWebview.render(context);
153+
break;
154+
}
155+
});
155156
}
156157

157158
function updateLastRecordedVersion(context: ExtensionContext) {

0 commit comments

Comments
 (0)