File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/amazonq/src/lsp/chat Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -447,13 +447,15 @@ export function registerMessageListeners(
447447 )
448448
449449 // Get the log directory path
450- const logPath = globals . context . logUri ?. fsPath
450+ const logFolderPath = globals . context . logUri ?. fsPath
451451 const result = { ...message . params , success : false }
452452
453- if ( logPath ) {
453+ if ( logFolderPath ) {
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 ( logFolderPath , '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
You can’t perform that action at this time.
0 commit comments