mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 23:46:41 +00:00
Don't run syntax checks while a script is running
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user