Skip to content

Commit dbbd79d

Browse files
author
aiday-mar
committed
Adding check on log service
1 parent 084179a commit dbbd79d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/common/services/languageFeatureDebounce.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class FeatureDebounceInformation implements IFeatureDebounceInformation {
7575
this._cache.set(key, avg);
7676
}
7777
const newValue = clamp(avg.update(value), this._min, this._max);
78-
if (!matchesScheme(model.uri, 'output')) {
78+
if (!matchesScheme(model.uri, 'output') && this._logService) {
7979
this._logService.trace(`[DEBOUNCE: ${this._name}] for ${model.uri.toString()} is ${newValue}ms`);
8080
}
8181
return newValue;

0 commit comments

Comments
 (0)