| 513 | } |
| 514 | |
| 515 | void CodeCompletionSettings::migrateCompletionMode() |
| 516 | { |
| 517 | auto *qtcSettings = Core::ICore::settings(); |
| 518 | if (!qtcSettings || qtcSettings->contains(Constants::CC_COMPLETION_MODE)) |
| 519 | return; |
| 520 | |
| 521 | const QString oldMode = completionTriggerMode.stringValue(); |
| 522 | if (oldMode.startsWith("Hint")) |
| 523 | completionMode.setStringValue("Manual"); |
| 524 | else |
| 525 | completionMode.setStringValue("Automatic"); |
| 526 | |
| 527 | writeSettings(); |
| 528 | } |
| 529 | |
| 530 | QString CodeCompletionSettings::processMessageToFIM(const QString &prefix, const QString &suffix) const |
| 531 | { |
nothing calls this directly
no outgoing calls
no test coverage detected