Add a new completion API for experimental plugins feature. (#5000)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Mm2PL
2023-12-10 14:41:05 +01:00
committed by GitHub
parent e4258160cd
commit fd4cac2c2c
13 changed files with 448 additions and 16 deletions
@@ -26,8 +26,12 @@ public:
/// @brief Updates the model based on the completion query
/// @param query Completion query
/// @param fullTextContent Full text of the input, used by plugins for contextual completion
/// @param cursorPosition Number of characters behind the cursor from the
/// beginning of fullTextContent, also used by plugins
/// @param isFirstWord Whether the completion is the first word in the input
void updateResults(const QString &query, bool isFirstWord = false);
void updateResults(const QString &query, const QString &fullTextContent,
int cursorPosition, bool isFirstWord = false);
private:
enum class SourceKind {