mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Fix linter issues
This commit is contained in:
parent
f7b8ae1ee7
commit
583f5c9612
3 changed files with 72 additions and 32 deletions
|
@ -152,9 +152,15 @@ export function activate(context: vscode.ExtensionContext) {
|
|||
if (Server.config.displayInlayHints) {
|
||||
const hintsUpdater = new HintsUpdater();
|
||||
hintsUpdater.loadHints(vscode.window.activeTextEditor).then(() => {
|
||||
vscode.window.onDidChangeActiveTextEditor(editor => hintsUpdater.loadHints(editor));
|
||||
vscode.workspace.onDidChangeTextDocument(e => hintsUpdater.updateHints(e));
|
||||
vscode.workspace.onDidChangeConfiguration(_ => hintsUpdater.toggleHintsDisplay(Server.config.displayInlayHints));
|
||||
vscode.window.onDidChangeActiveTextEditor(editor =>
|
||||
hintsUpdater.loadHints(editor)
|
||||
);
|
||||
vscode.workspace.onDidChangeTextDocument(e =>
|
||||
hintsUpdater.updateHints(e)
|
||||
);
|
||||
vscode.workspace.onDidChangeConfiguration(_ =>
|
||||
hintsUpdater.toggleHintsDisplay(Server.config.displayInlayHints)
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue