Skip to content

Commit b8be284

Browse files
committed
feat: adds basic log syntax highlighting
1 parent 4b0bbea commit b8be284

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ import { getConfigLogLevel, Logger } from './services/logging';
1616
import { WhatsNew } from './features/commands';
1717

1818
// Make it global to catch errors when activation fails
19-
const logger = new Logger(vscode.window.createOutputChannel('Modern Fortran'), getConfigLogLevel());
19+
const logger = new Logger(
20+
vscode.window.createOutputChannel('Modern Fortran', 'log'),
21+
getConfigLogLevel()
22+
);
2023

2124
export async function activate(context: vscode.ExtensionContext) {
2225
const config = vscode.workspace.getConfiguration(EXTENSION_ID);

src/services/logging.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export enum LogLevel {
1111

1212
export class Logger {
1313
constructor(
14-
private channel: OutputChannel = window.createOutputChannel('Modern Fortran'),
14+
private channel: OutputChannel = window.createOutputChannel('Modern Fortran', 'log'),
1515
private level: LogLevel = LogLevel.INFO
1616
) {}
1717

0 commit comments

Comments
 (0)