vscode: press ; to respect semicolons

This commit is contained in:
Veetaha 2020-02-17 22:09:44 +02:00
parent 64755b5e1f
commit 7379964048
7 changed files with 17 additions and 17 deletions

View file

@ -29,13 +29,13 @@ export function activateInlayHints(ctx: Ctx) {
ctx.pushCleanup({
dispose() {
hintsUpdater.clear()
hintsUpdater.clear();
}
})
});
// XXX: we don't await this, thus Promise rejections won't be handled, but
// this should never throw in fact...
hintsUpdater.setEnabled(ctx.config.displayInlayHints)
void hintsUpdater.setEnabled(ctx.config.displayInlayHints);
}
interface InlayHintsParams {
@ -57,7 +57,7 @@ const typeHintDecorationType = vscode.window.createTextEditorDecorationType({
const parameterHintDecorationType = vscode.window.createTextEditorDecorationType({
before: {
color: new vscode.ThemeColor('rust_analyzer.inlayHint'),
}
},
});
class HintsUpdater {