feat: Add sharing opened files with code completion requests

This commit is contained in:
Petr Mironychev
2025-04-03 23:38:57 +02:00
parent ffaf6bd61b
commit 996ca0e9c6
9 changed files with 91 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;
};