mirror of
https://github.com/Microsoft/vscode
synced 2024-10-04 02:14:06 +00:00
add logging when running into event cap, https://github.com/microsoft/vscode/issues/108292
This commit is contained in:
parent
adf57aa968
commit
c131e8bd6d
|
@ -55,6 +55,7 @@ export class ExtHostDecorations implements ExtHostDecorationsShape {
|
|||
|
||||
// too many resources per event. pick one resource per folder, starting
|
||||
// with parent folders
|
||||
this._logService.warn('[Decorations] CAPPING events from decorations provider', extensionId.value, array.length);
|
||||
const mapped = array.map(uri => ({ uri, rank: count(uri.path, '/') }));
|
||||
const groups = groupBy(mapped, (a, b) => a.rank - b.rank);
|
||||
let picked: URI[] = [];
|
||||
|
|
Loading…
Reference in a new issue