Process class fix a dead-lock.

Compile with C++20 (compilation might fail on some systems, let's see the CI).
Fixed V1 syntax highlighting.
This commit is contained in:
Martín Lucas Golini
2025-03-31 18:52:42 -03:00
parent 70861e98b9
commit 67a86c3c05
20 changed files with 174 additions and 156 deletions

View File

@@ -2090,7 +2090,8 @@ void DebuggerPlugin::run( const std::string& debugger, ProtocolSettings&& protoc
std::function<void( int )> doneFn ) {
if ( !FileSystem::fileExists( cmd ) )
cmd = FileSystem::fileNameFromPath( cmd );
getUISceneNode()->runOnMainThread( [=] {
getUISceneNode()->runOnMainThread( [this, isIntegrated, cmd = std::move( cmd ), cwd, args,
doneFn = std::move( doneFn )] {
if ( isIntegrated ) {
UITerminal* term =
getPluginContext()->getTerminalManager()->createTerminalInSplitter(