mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Extract client-side logging
This commit is contained in:
parent
2cbe8a4c4b
commit
49844ab717
10 changed files with 51 additions and 21 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue