ErrorSnap
ErrorSnap helps with managing and displaying error logs within your workspace.
Features
Tracks and logs errors in your workspace.
Provides error solutions and tagging options.
Displays error messages in a user-friendly interface.
Allows enabling and disabling popups for error notifications.
Stores error logs in a JSON file for reference.
Commands
error-snap.openScreen : Opens the ErrorSnap panel to display error logs.
error-snap.enablepopup : Enables error popups for tracking new errors.
error-snap.disablepopup : Disables error popups to prevent notifications.
Requirements
Visual Studio Code
Node.js
Installation
To install this extension:
Open the Extensions view (Ctrl+Shift+X ).
Search for "ErrorSnap" and click Install
Reload VS Code if required.
Usage
Once installed, run the error-snap.openScreen command to view and manage error logs in your workspace.
Work Flow
Function |
Description |
activate(context) |
Initializes the extension, sets up commands, diagnostic tracking, and log file management. |
updateLogFilePath() |
Sets the path for storing error logs and ensures the file exists. |
generateUniqueId(errors) |
Generates a unique ID for each logged error to avoid duplicates. |
updateDiagnostics(panel, filePath?) |
Checks for errors, prompts users to log new errors, and updates the error log file. |
trackDiagnostics(context) |
Tracks document save events and updates diagnostics accordingly. |
deactivate() |
Cleans up diagnostics when the extension is deactivated. |
License
MIT License
| |