mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-19 22:42:35 +01:00
Adding check on log service
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user