TextEditor: Use FilePath in Command

Change-Id: I0916204eefb49713f241dd43da662f258f8c99f7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2023-02-07 18:02:53 +01:00
parent 012a2a6cd8
commit 432d918329
8 changed files with 19 additions and 20 deletions

View File

@@ -244,7 +244,7 @@ void QmlJSEditorPluginPrivate::reformatFile()
QmlJsEditingSettings::get().formatCommandOptions());
const CommandLine commandLine(exe, args, CommandLine::Raw);
TextEditor::Command command;
command.setExecutable(commandLine.executable().toString());
command.setExecutable(commandLine.executable());
command.setProcessing(TextEditor::Command::FileProcessing);
command.addOptions(commandLine.splitArguments());
command.addOption("--inplace");