Extract client-side logging

This commit is contained in:
Aleksey Kladov 2020-02-21 15:59:46 +01:00
parent 2cbe8a4c4b
commit 49844ab717
10 changed files with 51 additions and 21 deletions

View file

@ -7,6 +7,7 @@ import { Ctx } from './ctx';
import { activateHighlighting } from './highlighting';
import { ensureServerBinary } from './installation/server';
import { Config } from './config';
import { log } from './util';
let ctx: Ctx | undefined;
@ -38,7 +39,7 @@ export async function activate(context: vscode.ExtensionContext) {
try {
sub.dispose();
} catch (e) {
console.error(e);
log.error(e);
}
}
await activate(context);