diff --git a/python/intellij.python.community.communityOnly/src/intellij.python.community.communityOnly.xml b/python/intellij.python.community.communityOnly/src/intellij.python.community.communityOnly.xml index ffccc57afe21..29b08d66b793 100644 --- a/python/intellij.python.community.communityOnly/src/intellij.python.community.communityOnly.xml +++ b/python/intellij.python.community.communityOnly/src/intellij.python.community.communityOnly.xml @@ -1,8 +1,7 @@ - - + + diff --git a/python/pluginCore/resources/META-INF/plugin.xml b/python/pluginCore/resources/META-INF/plugin.xml index 62d6ff577925..8fbb08790df6 100644 --- a/python/pluginCore/resources/META-INF/plugin.xml +++ b/python/pluginCore/resources/META-INF/plugin.xml @@ -625,6 +625,9 @@ The Python plug-in provides smart editing for Python scripts. The feature set of + diff --git a/python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java b/python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java index d6912f7b7062..03bc38316d9b 100644 --- a/python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java +++ b/python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java @@ -1,7 +1,7 @@ // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.jetbrains.python.console; -import com.intellij.openapi.application.ApplicationManager; +import com.intellij.openapi.extensions.ExtensionPointName; import com.intellij.openapi.module.Module; import com.intellij.openapi.project.Project; import com.jetbrains.python.run.PythonRunConfiguration; @@ -9,8 +9,11 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; public abstract class PythonConsoleRunnerFactory { + private static final ExtensionPointName EP_NAME = + ExtensionPointName.create("com.jetbrains.python.console.runnerFactory"); + public static @NotNull PythonConsoleRunnerFactory getInstance() { - return ApplicationManager.getApplication().getService(PythonConsoleRunnerFactory.class); + return EP_NAME.getExtensionList().get(0); } public abstract @NotNull PydevConsoleRunner createConsoleRunner(@NotNull Project project, @Nullable Module contextModule);