Try fix invalid memory access in SyntaxDefinitions.

Added attach in Chat UI.
Some minor improvements in Http pool implementation.
This commit is contained in:
Martín Lucas Golini
2025-08-12 00:49:13 -03:00
parent 1e95c07a1f
commit 0ec2a4dba9
34 changed files with 443 additions and 187 deletions

View File

@@ -385,7 +385,7 @@ void FormatterPlugin::formatDoc( UICodeEditor* editor ) {
std::shared_ptr<TextDocument> doc = editor->getDocumentRef();
auto pos = doc->getSelection();
auto scroll = editor->getScroll();
doc->resetCursor();
doc->resetSelection();
doc->selectAll();
doc->setRunningTransaction( true );
doc->textInput( data, false );
@@ -425,7 +425,7 @@ void FormatterPlugin::runFormatter( UICodeEditor* editor, const Formatter& forma
std::shared_ptr<TextDocument> doc = editor->getDocumentRef();
TextPosition pos = doc->getSelection().start();
auto scroll = editor->getScroll();
doc->resetCursor();
doc->resetSelection();
doc->selectAll();
doc->setRunningTransaction( true );
doc->textInput( res.result, false );
@@ -471,7 +471,7 @@ void FormatterPlugin::runFormatter( UICodeEditor* editor, const Formatter& forma
std::shared_ptr<TextDocument> doc = editor->getDocumentRef();
TextPosition pos = doc->getSelection().start();
auto scroll = editor->getScroll();
doc->resetCursor();
doc->resetSelection();
doc->selectAll();
doc->setRunningTransaction( true );
doc->textInput( data, false );