From 1dcb248d306c9700cd2d90db2e0e9b8d0b9a9ee2 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Wed, 11 Jul 2018 08:18:17 -0700 Subject: [PATCH] Clear auto closing tag timeout This should already be effectively canceled but no reason to fire it --- .../src/features/tagCompletion.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/typescript-language-features/src/features/tagCompletion.ts b/extensions/typescript-language-features/src/features/tagCompletion.ts index eecdc80aad5..5a1021dd60b 100644 --- a/extensions/typescript-language-features/src/features/tagCompletion.ts +++ b/extensions/typescript-language-features/src/features/tagCompletion.ts @@ -30,7 +30,10 @@ class TagClosing { public dispose() { disposeAll(this.disposables); this._disposed = true; - this.timeout = undefined; + if (this.timeout) { + clearTimeout(this.timeout); + this.timeout = undefined; + } } private onDidChangeTextDocument(