mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-10-09 05:25:18 -04:00
refactor: Add model output settings instead smartprocessing setting (#220)
This commit is contained in:
@ -99,6 +99,19 @@ const QVector<LanguageProperties> &getKnownLanguages()
|
||||
return knownLanguages;
|
||||
}
|
||||
|
||||
bool CodeHandler::hasCodeBlocks(const QString &text)
|
||||
{
|
||||
QStringList lines = text.split('\n');
|
||||
|
||||
for (const QString &line : lines) {
|
||||
if (line.trimmed().startsWith("```")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static QHash<QString, QString> buildLanguageToCommentPrefixMap()
|
||||
{
|
||||
QHash<QString, QString> result;
|
||||
|
Reference in New Issue
Block a user