Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packages/amazonq/src/lsp/chat/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,13 +447,15 @@ export function registerMessageListeners(
)

// Get the log directory path
const logPath = globals.context.logUri?.fsPath
const logFolderPath = globals.context.logUri?.fsPath
const result = { ...message.params, success: false }

if (logPath) {
if (logFolderPath) {
// Open the log directory in the OS file explorer directly
languageClient.info('[VSCode Client] Opening logs directory')
await vscode.commands.executeCommand('revealFileInOS', vscode.Uri.file(logPath))
const path = require('path')
const logFilePath = path.join(logFolderPath, 'Amazon Q Logs.log')
await vscode.commands.executeCommand('revealFileInOS', vscode.Uri.file(logFilePath))
result.success = true
} else {
// Fallback: show error if log path is not available
Expand Down
Loading