Don't run syntax checks while a script is running

This commit is contained in:
baldurk
2026-08-13 21:05:13 +01:00
parent bf710530d2
commit e7f0aac008
+4
View File
@@ -537,6 +537,10 @@ void PythonShell::doSyntaxCheck()
if(sc->autoCActive() || m_FuncTip)
return;
// also don't do it while running, as it makes no sense and also could stall the UI thread if we're debugging
if(runningScriptEditor)
return;
QByteArray script = sc->getText(sc->textLength() + 1);
PyParseError parseError = completionContext->CheckPyParse(script, "script.py");