Skip to content

Commit 1af44ff

Browse files
committed
fix(amazonq): point to the log file inside the folder
1 parent 109a674 commit 1af44ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,9 @@ export function registerMessageListeners(
453453
if (logPath) {
454454
// Open the log directory in the OS file explorer directly
455455
languageClient.info('[VSCode Client] Opening logs directory')
456-
await vscode.commands.executeCommand('revealFileInOS', vscode.Uri.file(logPath))
456+
const path = require('path')
457+
const logFilePath = path.join(logPath, 'Amazon Q Logs.log')
458+
await vscode.commands.executeCommand('revealFileInOS', vscode.Uri.file(logFilePath))
457459
result.success = true
458460
} else {
459461
// Fallback: show error if log path is not available

0 commit comments

Comments
 (0)