-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: syntax highlight for log viewer #394
Conversation
root: [ | ||
[/\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d{3}]/, 'timestamp'], | ||
[/\[error]/, 'error'], | ||
[/^\s*at.*$/, 'stackTrace'], | ||
[/['"].*?['"]/, 'string'], | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now, syntax highlighting is applied only to:
- timestamps:
[2025-01-01 00:00:00.000]
- error keyword:
[error]
- stack trace line starting with
at
:at FSWatcher.emit (node:events:518:28)
- strings:
'string'
or"string"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
Description
This PR adds basic syntax highlight for the log viewer in the Settings dialog, making it easy to read and scan issues.
How to Test
Checklist
npm run lint
) and all checks pass.npm test
) and all tests pass.Screenshots (if appropriate):
Related PR(s)/Issue(s)
Resolves #387