[CodeWithMe] CWM-6658: Add support for more run contents

GitOrigin-RevId: 73dcfec80acca1cb8d2149ded31e3f4f0b33c9cf
This commit is contained in:
Vyacheslav Moklev
2022-07-13 13:12:46 +03:00
committed by intellij-monorepo-bot
parent 93df5edbd1
commit 66fc359182
3 changed files with 6 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ import com.intellij.openapi.ui.TextFieldWithBrowseButton;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.vfs.LocalFileSystem;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.ui.viewModel.extraction.ToolWindowContentExtractor;
import com.jetbrains.python.PythonHelper;
import com.jetbrains.python.ReSTService;
import com.jetbrains.python.run.PythonCommandLineState;
@@ -94,6 +95,7 @@ public class SphinxBaseCommand {
try {
if (!setWorkDir(module)) return;
final ProcessHandler process = createProcess(module);
process.putUserData(ToolWindowContentExtractor.SYNC_TAB_TO_GUEST, true);
new RunContentExecutor(project, process)
.withFilter(new PythonTracebackFilter(project))
.withTitle("reStructuredText")