mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
vscode: press ; to respect semicolons
This commit is contained in:
parent
64755b5e1f
commit
7379964048
7 changed files with 17 additions and 17 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue