aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-03-20 19:23:56 +0000
committerGitHub <[email protected]>2020-03-20 19:23:56 +0000
commit95b5129a8aa6faacf6a43ed37e4047c81f79a12f (patch)
tree6e0ae974220c0abd66b1f2ebef14de936c517236 /editors/code
parent92b561b5c7da8303473792ba2bacb430614da2d1 (diff)
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.
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/src/inlay_hints.ts2
1 files changed, 0 insertions, 2 deletions
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 {
134 134
135 // No text documents changed, so we may try to use the cache 135 // No text documents changed, so we may try to use the cache
136 if (!file.cachedDecorations) { 136 if (!file.cachedDecorations) {
137 file.inlaysRequest?.cancel();
138
139 const hints = await this.fetchHints(file); 137 const hints = await this.fetchHints(file);
140 if (!hints) return; 138 if (!hints) return;
141 139