Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@
{
"type": "npm",
"script": "watch",
"problemMatcher": "$ts-webpack-watch",
"problemMatcher": [
{
"base": "$tsc-watch",
"background": {
"activeOnStart": true,
"beginsPattern": "^webpack \\d+\\.\\d+\\.\\d+",
"endsPattern": "^(webpack \\d+\\.\\d+\\.\\d+ )?compiled|Failed to compile"
}
}
],
"isBackground": true,
"presentation": {
"reveal": "never",
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to the Serilog Syntax Highlighting extension will be documen
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.2] - 2025-10-06

### Fixed
- Output channel no longer forces focus on activation, preventing workflow interruption
- Simplified activation logging to single concise line
- Added proper problem matcher for watch task to eliminate VS Code warnings

## [0.2.1] - 2025-09-21

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "serilog-syntax-vscode",
"displayName": "Serilog Syntax",
"description": "Syntax highlighting for Serilog message templates and Serilog.Expressions",
"version": "0.2.1",
"version": "0.2.2",
"publisher": "mtlog",
"repository": {
"type": "git",
Expand Down
10 changes: 2 additions & 8 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { SerilogBraceMatchProvider } from './providers/braceMatchProvider';
export function activate(context: vscode.ExtensionContext) {
// Create output channel for logging
const outputChannel = vscode.window.createOutputChannel('Serilog Syntax');
outputChannel.show();

const themeManager = new ThemeManager();
const currentTheme = themeManager.getCurrentTheme();
Expand All @@ -23,13 +22,8 @@ export function activate(context: vscode.ExtensionContext) {
const extension = vscode.extensions.getExtension('mtlog.serilog-syntax-vscode');
const version = extension?.packageJSON?.version || 'unknown';

outputChannel.appendLine('=================================');
outputChannel.appendLine(`Serilog Syntax Highlighting v${version}`);
outputChannel.appendLine('=================================');
outputChannel.appendLine(`Extension activated successfully`);
outputChannel.appendLine(`Theme: ${currentTheme === 'light' ? 'Light' : 'Dark'} mode`);
outputChannel.appendLine(`Repository: https://github.com/willibrandon/serilog-syntax-vscode`);
outputChannel.appendLine('');
// Log activation silently (users can view in Output panel if needed)
outputChannel.appendLine(`Serilog Syntax Highlighting v${version} activated (${currentTheme === 'light' ? 'Light' : 'Dark'} mode)`);

const decorationManager = new DecorationManager(themeManager, outputChannel);
const stringParser = new StringLiteralParser();
Expand Down