Fix registered contextkey issue (#215564)

fix registered contextkey removes others
This commit is contained in:
Benjamin Christopher Simmonds 2024-06-14 11:38:21 -07:00 committed by GitHub
parent 1c74595688
commit 4666c5068d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -761,7 +761,7 @@ export class EditorParts extends MultiWindowParts<EditorPart> implements IEditor
let groupRegisteredContextKeys = this.registeredContextKeys.get(group.id);
if (!groupRegisteredContextKeys) {
groupRegisteredContextKeys = new Map<string, IContextKey>();
this.scopedContextKeys.set(group.id, groupRegisteredContextKeys);
this.registeredContextKeys.set(group.id, groupRegisteredContextKeys);
}
let scopedRegisteredContextKey = groupRegisteredContextKeys.get(provider.contextKey.key);