@@ -159,25 +159,25 @@ fn complete_date() -> anyhow::Result<Option<Vec<lsp_types::CompletionItem>>> {
159159 lsp_types:: CompletionItem {
160160 label: today,
161161 detail: Some ( "today" . to_string( ) ) ,
162- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
162+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
163163 ..Default :: default ( )
164164 } ,
165165 lsp_types:: CompletionItem {
166166 label: cur_month,
167167 detail: Some ( "this month" . to_string( ) ) ,
168- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
168+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
169169 ..Default :: default ( )
170170 } ,
171171 lsp_types:: CompletionItem {
172172 label: prev_month,
173173 detail: Some ( "prev month" . to_string( ) ) ,
174- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
174+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
175175 ..Default :: default ( )
176176 } ,
177177 lsp_types:: CompletionItem {
178178 label: next_month,
179179 detail: Some ( "next month" . to_string( ) ) ,
180- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
180+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
181181 ..Default :: default ( )
182182 } ,
183183 ] ;
@@ -189,22 +189,22 @@ fn complete_kind() -> anyhow::Result<Option<Vec<lsp_types::CompletionItem>>> {
189189 let items = vec ! [
190190 lsp_types:: CompletionItem {
191191 label: String :: from( "txn" ) ,
192- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
192+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
193193 ..Default :: default ( )
194194 } ,
195195 lsp_types:: CompletionItem {
196196 label: String :: from( "balance" ) ,
197- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
197+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
198198 ..Default :: default ( )
199199 } ,
200200 lsp_types:: CompletionItem {
201201 label: String :: from( "open" ) ,
202- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
202+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
203203 ..Default :: default ( )
204204 } ,
205205 lsp_types:: CompletionItem {
206206 label: String :: from( "close" ) ,
207- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
207+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
208208 ..Default :: default ( )
209209 } ,
210210 ] ;
@@ -245,7 +245,7 @@ fn complete_narration(
245245 completions. push ( lsp_types:: CompletionItem {
246246 label : txn_string,
247247 detail : Some ( "Beancount Narration" . to_string ( ) ) ,
248- kind : Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
248+ kind : Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
249249 ..Default :: default ( )
250250 } ) ;
251251 }
@@ -263,7 +263,7 @@ fn complete_account(
263263 completions. push ( lsp_types:: CompletionItem {
264264 label : account,
265265 detail : Some ( "Beancount Account" . to_string ( ) ) ,
266- kind : Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
266+ kind : Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
267267 ..Default :: default ( )
268268 } ) ;
269269 }
@@ -281,7 +281,7 @@ fn complete_tag(
281281 completions. push ( lsp_types:: CompletionItem {
282282 label : tag,
283283 detail : Some ( "Beancount Tag" . to_string ( ) ) ,
284- kind : Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
284+ kind : Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
285285 ..Default :: default ( )
286286 } ) ;
287287 }
@@ -299,7 +299,7 @@ fn complete_link(
299299 completions. push ( lsp_types:: CompletionItem {
300300 label : link,
301301 detail : Some ( "Beancount Link" . to_string ( ) ) ,
302- kind : Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
302+ kind : Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
303303 ..Default :: default ( )
304304 } ) ;
305305 }
@@ -535,25 +535,25 @@ mod tests {
535535 [
536536 lsp_types:: CompletionItem {
537537 label: today,
538- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
538+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
539539 detail: Some ( String :: from( "today" ) ) ,
540540 ..Default :: default ( )
541541 } ,
542542 lsp_types:: CompletionItem {
543543 label: cur_month,
544- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
544+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
545545 detail: Some ( String :: from( "this month" ) ) ,
546546 ..Default :: default ( )
547547 } ,
548548 lsp_types:: CompletionItem {
549549 label: prev_month,
550- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
550+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
551551 detail: Some ( String :: from( "prev month" ) ) ,
552552 ..Default :: default ( )
553553 } ,
554554 lsp_types:: CompletionItem {
555555 label: next_month,
556- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
556+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
557557 detail: Some ( String :: from( "next month" ) ) ,
558558 ..Default :: default ( )
559559 }
@@ -580,22 +580,22 @@ mod tests {
580580 [
581581 lsp_types:: CompletionItem {
582582 label: String :: from( "txn" ) ,
583- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
583+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
584584 ..Default :: default ( )
585585 } ,
586586 lsp_types:: CompletionItem {
587587 label: String :: from( "balance" ) ,
588- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
588+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
589589 ..Default :: default ( )
590590 } ,
591591 lsp_types:: CompletionItem {
592592 label: String :: from( "open" ) ,
593- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
593+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
594594 ..Default :: default ( )
595595 } ,
596596 lsp_types:: CompletionItem {
597597 label: String :: from( "close" ) ,
598- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
598+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
599599 ..Default :: default ( )
600600 } ,
601601 ]
@@ -625,7 +625,7 @@ mod tests {
625625 items,
626626 [ lsp_types:: CompletionItem {
627627 label: String :: from( "\" Test Co\" " ) ,
628- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
628+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
629629 detail: Some ( String :: from( "Beancount Narration" ) ) ,
630630 ..Default :: default ( )
631631 } , ]
@@ -676,13 +676,13 @@ mod tests {
676676 [
677677 lsp_types:: CompletionItem {
678678 label: String :: from( "Assets:Test" ) ,
679- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
679+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
680680 detail: Some ( String :: from( "Beancount Account" ) ) ,
681681 ..Default :: default ( )
682682 } ,
683683 lsp_types:: CompletionItem {
684684 label: String :: from( "Expenses:Test" ) ,
685- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
685+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
686686 detail: Some ( String :: from( "Beancount Account" ) ) ,
687687 ..Default :: default ( )
688688 }
@@ -713,7 +713,7 @@ mod tests {
713713 items,
714714 [ lsp_types:: CompletionItem {
715715 label: String :: from( "#tag" ) ,
716- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
716+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
717717 detail: Some ( String :: from( "Beancount Tag" ) ) ,
718718 ..Default :: default ( )
719719 } , ]
@@ -743,7 +743,7 @@ mod tests {
743743 items,
744744 [ lsp_types:: CompletionItem {
745745 label: String :: from( "^link" ) ,
746- kind: Some ( lsp_types:: CompletionItemKind :: TEXT ) ,
746+ kind: Some ( lsp_types:: CompletionItemKind :: ENUM ) ,
747747 detail: Some ( String :: from( "Beancount Link" ) ) ,
748748 ..Default :: default ( )
749749 } , ]
0 commit comments