3173: vscode: fix stupid mistake of mine r=matklad a=Veetaha

Shame on me...
Fixes #3056

Co-authored-by: Veetaha <gerzoh1@gmail.com>
This commit is contained in:
bors[bot] 2020-02-16 17:40:23 +00:00 committed by GitHub
commit a90f5b0787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ export function activateInlayHints(ctx: Ctx) {
vscode.workspace.onDidChangeTextDocument(
async event => {
if (event.contentChanges.length !== 0) return;
if (event.contentChanges.length === 0) return;
if (event.document.languageId !== 'rust') return;
await hintsUpdater.refresh();
},