mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Extract client-side logging
This commit is contained in:
parent
2cbe8a4c4b
commit
49844ab717
10 changed files with 51 additions and 21 deletions
|
@ -2,6 +2,7 @@ import * as vscode from 'vscode';
|
|||
import * as lc from 'vscode-languageclient';
|
||||
|
||||
import { Ctx, sendRequestWithRetry } from './ctx';
|
||||
import { log } from './util';
|
||||
|
||||
export function activateInlayHints(ctx: Ctx) {
|
||||
const hintsUpdater = new HintsUpdater(ctx);
|
||||
|
@ -71,7 +72,7 @@ class HintsUpdater {
|
|||
}
|
||||
|
||||
async setEnabled(enabled: boolean): Promise<void> {
|
||||
console.log({ enabled, prev: this.enabled });
|
||||
log.debug({ enabled, prev: this.enabled });
|
||||
|
||||
if (this.enabled === enabled) return;
|
||||
this.enabled = enabled;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue