MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / migrateCompletionMode

Method migrateCompletionMode

settings/CodeCompletionSettings.cpp:515–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515void 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
530QString CodeCompletionSettings::processMessageToFIM(const QString &prefix, const QString &suffix) const
531{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected