feat: Add sharing opened files with code completion requests (#156)

This commit is contained in:
Petr Mironychev
2025-04-04 10:38:06 +02:00
committed by GitHub
parent ffaf6bd61b
commit 9d2d70fc63
9 changed files with 92 additions and 4 deletions

View File

@ -34,6 +34,13 @@ struct Message
// clang-format on
};
struct FileMetadata
{
QString filePath;
QString content;
bool operator==(const FileMetadata &) const = default;
};
struct ContextData
{
std::optional<QString> systemPrompt;
@ -41,6 +48,7 @@ struct ContextData
std::optional<QString> suffix;
std::optional<QString> fileContext;
std::optional<QVector<Message>> history;
std::optional<QList<FileMetadata>> filesMetadata;
bool operator==(const ContextData &) const = default;
};