Python editor: Add buttons & actions for opening REPL

Opens interactive Python, optionally with the current file imported, for
testing and experimentation.

Change-Id: Ieb120e3698bdba77a1445c40fe7fda533773a0cf
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2020-03-10 16:26:20 +01:00
parent be9d5fa0d9
commit 3b5fc296f2
6 changed files with 135 additions and 2 deletions

View File

@@ -40,6 +40,10 @@ namespace TextEditor { class TextDocument; }
namespace Python {
namespace Internal {
enum class ReplType { Unmodified, Import, ImportToplevel };
void openPythonRepl(const Utils::FilePath &file, ReplType type);
struct PythonLanguageServerState;
class PyLSConfigureAssistant : public QObject