Open bpasero opened 3 months ago
This is fixed, but jumping between 2 active tabs still results in 4 updates.
This is happening because we are redrawing when
doShowEditor
is being called andWe only need to redraw from updateEditorSelections
if a selection got removed. Otherwise it gets handled by the open editor
call.
To fully optimize, this requires supporting selectedEditors
on the filtered model.
When I log a stack trace in
redrawTabSelectedActiveAndDirty
, I see 3 calls when I click on the active tab, even when the tab is already active:For some reason a
onDidChangeEditorSelection
selection event is fired always?