Skip to content

feat: "Open errors-ai.log" command to open the raw file #4

Description

@GabrielBBaldez

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

  1. 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).
  2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions