From 95b5129a8aa6faacf6a43ed37e4047c81f79a12f Mon Sep 17 00:00:00 2001 From: Veetaha Date: Fri, 20 Mar 2020 21:23:56 +0200 Subject: vscode: remove unnecessary code This cancel is unnecessary since we cancel the previous inlay hints requests in `fetchHints()` method itself. This is not a hard error, we just called cancel() 2 times. --- editors/code/src/inlay_hints.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'editors/code/src') diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts index b19b09ad5..17d0dfa33 100644 --- a/editors/code/src/inlay_hints.ts +++ b/editors/code/src/inlay_hints.ts @@ -134,8 +134,6 @@ class HintsUpdater implements Disposable { // No text documents changed, so we may try to use the cache if (!file.cachedDecorations) { - file.inlaysRequest?.cancel(); - const hints = await this.fetchHints(file); if (!hints) return; -- cgit v1.2.3