PY-39484: Do not add Python message filter to anything but python run configs.

It is safer to add python filter explicitly, not to add it to any other configuration.

And that is already done (see PythonTracebackFilter)

GitOrigin-RevId: 883972d1694eba9b3fe7602b5348ff1022b80efc
This commit is contained in:
Ilya.Kazakevich
2019-12-23 20:53:08 +00:00
committed by intellij-monorepo-bot
parent 1f7c87c9d5
commit 8aa373bfa5
2 changed files with 0 additions and 19 deletions
@@ -582,7 +582,6 @@
<consoleHistoryModelProvider implementation="com.jetbrains.python.console.PyConsoleHistoryModelProvider"/>
<scratch.rootType implementation="com.jetbrains.python.console.PyConsoleRootType" />
<consoleFilterProvider implementation="com.jetbrains.python.run.PyMessageFilterProvider"/>
<!-- Run Anything -->
<runAnything.executionProvider order="after RunAnythingRunConfigurationProvider" implementation="com.jetbrains.python.run.runAnything.PyRunAnythingProvider"/>
@@ -1,18 +0,0 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.run;
import com.intellij.execution.filters.ConsoleFilterProvider;
import com.intellij.execution.filters.Filter;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;
/**
* @author traff
*/
public class PyMessageFilterProvider implements ConsoleFilterProvider {
@NotNull
@Override
public Filter[] getDefaultFilters(@NotNull Project project) {
return new Filter[]{new PythonTracebackFilter(project)};
}
}