summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/complete/sql_complete.h
diff options
context:
space:
mode:
authorvitya-smirnov <[email protected]>2025-07-03 14:40:24 +0300
committervitya-smirnov <[email protected]>2025-07-03 15:02:48 +0300
commitfdc3ed2f3a53f64b189d53b2cb81513916a78dc3 (patch)
treee9749f48aeb08f70fbbd2802c955b9d8a8c100b6 /yql/essentials/sql/v1/complete/sql_complete.h
parenta4b1cf6267fe6389feafed4bad620bd7a827b23a (diff)
YQL-19747: Support LSP FilterText
LSP protocol has a property ``` /** * A string that should be used when filtering a set of * completion items. When omitted the label is used as the * filter text for this item. */ filterText?: string; ``` It is useful, e.g. when we prepend some punctuation at a candidate content, but still want to filter by prefix, ignoring that punctuation. Related to https://nda.ya.ru/t/KCkzjhXS7G3Epg. commit_hash:01f258218d312eef764350bd4d78da15acb8c9ea
Diffstat (limited to 'yql/essentials/sql/v1/complete/sql_complete.h')
-rw-r--r--yql/essentials/sql/v1/complete/sql_complete.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/complete/sql_complete.h b/yql/essentials/sql/v1/complete/sql_complete.h
index 3387019e25f..41fb67fc090 100644
--- a/yql/essentials/sql/v1/complete/sql_complete.h
+++ b/yql/essentials/sql/v1/complete/sql_complete.h
@@ -41,6 +41,8 @@ namespace NSQLComplete {
size_t CursorShift = 0;
friend bool operator==(const TCandidate& lhs, const TCandidate& rhs) = default;
+
+ TString FilterText() const;
};
struct TCompletion {