Skip chat extension enablement change when locked by environment (#315453)
When chat.disableAIFeatures is true and the chat extension is in a non-changeable enablement state (DisabledByExtensionKind, DisabledByVirtualWorkspace, DisabledByAllowlist, etc.), ChatTeardownContribution.maybeEnableOrDisableExtension calls setEnablement which throws an unhandled error. Guard with canChangeEnablement / canChangeWorkspaceEnablement before calling. Fixes #312381
D
Dmitriy Vasyura committed
efbff4db9bd1b7044659ab587e926eba32374be4
Parent: b34312d
Committed by GitHub <noreply@github.com>
on 5/19/2026, 12:58:35 PM