You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to work for the initial state, but it never gets updated when the property is removed or re-added. It looks like the cause is somewhere in here:
@eamodio this looks like a case for different printing/comparing logic. We cannot traverse into objects that have changed because this happens a lot but we can think of either a new context key operator that compare object-property values or use the regexp-operator with some JSON-based value printing (which is hopefully not huge strings...)
jrieken
changed the title
"config." context keys for an object property won't correctly cause menus to update
Allow context key expression that compares object properties
Apr 1, 2020
@jrieken I was attempting to change the Timeline's
timeline.excludeSources
setting from an array to an object (as requested here).I've pushed a branch with the changes here: eamodio/timeline-excludesources
Here I am trying to use the
timeline.excludeSources.<source-id>
property as thetoggled
condition.vscode/src/vs/workbench/contrib/timeline/browser/timelinePane.ts
Line 1177 in 2d551ab
This seems to work for the initial state, but it never gets updated when the property is removed or re-added. It looks like the cause is somewhere in here:
vscode/src/vs/platform/contextkey/browser/contextKeyService.ts
Lines 102 to 120 in db36e74
Where
this._values
will containtimeline.excludeSources.<source-id>
, but theevent.affectedKeys
will only havetimeline.excludeSources
./cc @rebornix
The text was updated successfully, but these errors were encountered: