Add a command that opens the raw errors-ai.log in an editor tab. Handy when you want to read the full file, search it, or see a report the tree hasn't parsed.
What to do
- In
package.json, add a command stacktale.openLog (title Open errors-ai.log, category stacktale, icon $(go-to-file)) and put it in the view/title menu of stacktale.reports (group navigation).
- In
src/extension.ts, register stacktale.openLog: resolve the file via the existing locateLogFile() helper, then vscode.window.showTextDocument(vscode.Uri.file(path)). If no file is found, vscode.window.showInformationMessage("No errors-ai.log found in this workspace.").
How to verify
F5, open a project with an errors-ai.log, click the new title-bar button (or run the command from the palette) and confirm the file opens. npm run compile clean.
Files: package.json, src/extension.ts.
Add a command that opens the raw
errors-ai.login an editor tab. Handy when you want to read the full file, search it, or see a report the tree hasn't parsed.What to do
package.json, add a commandstacktale.openLog(titleOpen errors-ai.log, categorystacktale, icon$(go-to-file)) and put it in theview/titlemenu ofstacktale.reports(groupnavigation).src/extension.ts, registerstacktale.openLog: resolve the file via the existinglocateLogFile()helper, thenvscode.window.showTextDocument(vscode.Uri.file(path)). If no file is found,vscode.window.showInformationMessage("No errors-ai.log found in this workspace.").How to verify
F5, open a project with an
errors-ai.log, click the new title-bar button (or run the command from the palette) and confirm the file opens.npm run compileclean.Files:
package.json,src/extension.ts.