src/vs/workbench/services/extensionManagement/browser/extensionEnablementService.ts/ExtensionEnablementService/canChangeEnablement
class ExtensionEnablementService:	canChangeEnablement(extension: IExtension): boolean {
		try {
			this.throwErrorIfCannotChangeEnablement(extension);
		} catch (error) {
			return false;
		}
		const enablementState = this.getEnablementState(extension);
		if (enablementState === EnablementState.DisabledByEnvironment
			|| enablementState === EnablementState.DisabledByVirtualWorkspace
			|| enablementState === EnablementState.DisabledByExtensionDependency
			|| enablementState === EnablementState.DisabledByExtensionKind) {
			return false;
		}
		return true;
	}