Skip to content

Commit 22564e7

Browse files
committed
fix: use dynamic version and remove obsolete brace color from console output
1 parent 5fa7422 commit 22564e7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/decorations/decorationManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class DecorationManager {
3838
// Log the colors being used
3939
const theme = this.themeManager.getCurrentTheme();
4040
this.outputChannel?.appendLine(`Initializing decorations for ${theme} theme`);
41-
this.outputChannel?.appendLine(`Sample colors: property=${colors.property}, brace=${colors.brace}`);
41+
this.outputChannel?.appendLine(`Sample colors: property=${colors.property}, format=${colors.format}`);
4242

4343
// Create decoration types with theme-appropriate colors
4444
const decorationTypes: [string, vscode.TextEditorDecorationType][] = [

src/extension.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ export function activate(context: vscode.ExtensionContext) {
1818
const themeManager = new ThemeManager();
1919
const currentTheme = themeManager.getCurrentTheme();
2020

21+
// Get version from package.json
22+
const extension = vscode.extensions.getExtension('mtlog.serilog-syntax-vscode');
23+
const version = extension?.packageJSON?.version || 'unknown';
24+
2125
outputChannel.appendLine('=================================');
22-
outputChannel.appendLine('Serilog Syntax Highlighting v0.0.1');
26+
outputChannel.appendLine(`Serilog Syntax Highlighting v${version}`);
2327
outputChannel.appendLine('=================================');
2428
outputChannel.appendLine(`Extension activated successfully`);
2529
outputChannel.appendLine(`Theme: ${currentTheme === 'light' ? 'Light' : 'Dark'} mode`);

0 commit comments

Comments
 (0)