Binaryify / OneDark-Pro

Atom's iconic One Dark theme for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme
MIT License
1.51k stars 291 forks source link

log.tmLanguage.json, diff severity levels #784

Closed CoffeeChaton closed 1 year ago

CoffeeChaton commented 1 year ago

Describe what you want

levels desired color textmate scopes
[info] green (now) log.info
[warning] yellow or dark red log.warning
[error] red or bright red, not like [info] log.error

Additional context Y

vscode log.tmLanguage.json

vscode.window.createOutputChannel('', { log: true });

extensions: One Dark Pro Lite Color Themes: One Dark Pro

Binaryify commented 1 year ago

how to reproduce

CoffeeChaton commented 1 year ago

how to reproduce

// extension.ts

export function activate(context: vscode.ExtensionContext): void {
    const logExp: vscode.LogOutputChannel = vscode.window.createOutputChannel('exp', { log: true });
    logExp.info('log msg');
    logExp.warn('warn msg');
    logExp.error('error msg');
}

error warning info

CoffeeChaton commented 1 year ago

Thanks, super fast update!