aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/formattexteditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/formattexteditor.cpp')
-rw-r--r--src/plugins/texteditor/formattexteditor.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/texteditor/formattexteditor.cpp b/src/plugins/texteditor/formattexteditor.cpp
index caebeb8c23..d4d1d61636 100644
--- a/src/plugins/texteditor/formattexteditor.cpp
+++ b/src/plugins/texteditor/formattexteditor.cpp
@@ -27,6 +27,18 @@ using namespace std::chrono_literals;
namespace TextEditor {
+class FormatTask
+{
+public:
+ Utils::FilePath filePath;
+ QString sourceData;
+ TextEditor::Command command;
+ int startPos = -1;
+ int endPos = 0;
+ QString formattedData = {};
+ QString error = {};
+};
+
void formatCurrentFile(const Command &command, int startPos, int endPos)
{
if (TextEditorWidget *editor = TextEditorWidget::currentTextEditorWidget())