Check out: https://github.com/microsoft/vscode/blob/403be36aebd235bbf00b36b585969a20bc954a6f/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts#L1123 There is an early return without disposing the reference. You always need to dispose the reference, otherwise the model will leak forever.
Check out:
vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts
Line 1123 in 403be36
There is an early return without disposing the reference. You always need to dispose the reference, otherwise the model will leak forever.