mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Add semicolons
This commit is contained in:
parent
cb41ffbbbd
commit
ff0ceb30a9
14 changed files with 160 additions and 38 deletions
|
@ -19,7 +19,7 @@ export function activateInlayHints(ctx: Ctx) {
|
|||
hintsUpdater.setEnabled(ctx.config.displayInlayHints);
|
||||
}, ctx.subscriptions);
|
||||
|
||||
ctx.onDidRestart(_ => hintsUpdater.setEnabled(ctx.config.displayInlayHints))
|
||||
ctx.onDidRestart(_ => hintsUpdater.setEnabled(ctx.config.displayInlayHints));
|
||||
}
|
||||
|
||||
interface InlayHintsParams {
|
||||
|
@ -96,7 +96,7 @@ class HintsUpdater {
|
|||
|
||||
private async queryHints(documentUri: string): Promise<InlayHint[] | null> {
|
||||
let client = this.ctx.client;
|
||||
if (!client) return null
|
||||
if (!client) return null;
|
||||
const request: InlayHintsParams = {
|
||||
textDocument: { uri: documentUri },
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue