Skip to content

Commit 5581665

Browse files
committed
refactor
1 parent d471ddf commit 5581665

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

packages/amazonq/src/lsp/chat/messages.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -452,20 +452,16 @@ export function registerMessageListeners(
452452
languageClient.info('[VSCode Client] Opening logs directory')
453453
await vscode.commands.executeCommand('revealFileInOS', vscode.Uri.file(logPath))
454454
const result = { ...message.params, success: true }
455-
void webview?.postMessage({
456-
command: message.command,
457-
params: result,
458-
})
459455
} else {
460456
// Fallback: show error if log path is not available
461457
void vscode.window.showErrorMessage('Log location not available.')
462458
languageClient.error('[VSCode Client] Log location not available')
463459
const result = { ...message.params, success: false }
464-
void webview?.postMessage({
465-
command: message.command,
466-
params: result,
467-
})
468460
}
461+
void webview?.postMessage({
462+
command: message.command,
463+
params: result,
464+
})
469465
break
470466
}
471467
// eslint-disable-next-line no-fallthrough

0 commit comments

Comments
 (0)