From dbbd79d333b24a5de3d71b865eae2f6d9bd3beb2 Mon Sep 17 00:00:00 2001 From: aiday-mar Date: Fri, 26 Aug 2022 09:29:03 +0200 Subject: [PATCH] Adding check on log service --- src/vs/editor/common/services/languageFeatureDebounce.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/common/services/languageFeatureDebounce.ts b/src/vs/editor/common/services/languageFeatureDebounce.ts index e4e67bd700f..46334a11913 100644 --- a/src/vs/editor/common/services/languageFeatureDebounce.ts +++ b/src/vs/editor/common/services/languageFeatureDebounce.ts @@ -75,7 +75,7 @@ class FeatureDebounceInformation implements IFeatureDebounceInformation { this._cache.set(key, avg); } const newValue = clamp(avg.update(value), this._min, this._max); - if (!matchesScheme(model.uri, 'output')) { + if (!matchesScheme(model.uri, 'output') && this._logService) { this._logService.trace(`[DEBOUNCE: ${this._name}] for ${model.uri.toString()} is ${newValue}ms`); } return newValue;