diff --git a/packages/plugin-ext/src/plugin/message-registry.ts b/packages/plugin-ext/src/plugin/message-registry.ts index 395289a298fed..983f7cd6a8837 100644 --- a/packages/plugin-ext/src/plugin/message-registry.ts +++ b/packages/plugin-ext/src/plugin/message-registry.ts @@ -55,12 +55,11 @@ export class MessageRegistryExt { } } } - for (const item of rest) { - pushItem(item); - } - const actionHandle = await this.proxy.$showMessage(type, message, options, actions); - return actionHandle !== undefined ? items[actionHandle] : undefined; } - + for (const item of rest) { + pushItem(item); + } + const actionHandle = await this.proxy.$showMessage(type, message, options, actions); + return actionHandle !== undefined ? items[actionHandle] : undefined; } }