@@ -113,22 +113,22 @@ public partial record CompletionItem : ICanBeResolved, IRequest<CompletionItem>,
113113
114114 /// <summary>
115115 /// A string that shoud be used when comparing this item
116- /// with other items. When `falsy` the label is used.
116+ /// with other items. When omitted the label is used.
117117 /// </summary>
118118 [ Optional ]
119119 public string ? SortText { get ; init ; }
120120
121121 /// <summary>
122122 /// A string that should be used when filtering a set of
123- /// completion items. When `falsy` the label is used.
123+ /// completion items. When omitted the label is used.
124124 /// </summary>
125125
126126 [ Optional ]
127127 public string ? FilterText { get ; init ; }
128128
129129 /// <summary>
130130 /// A string that should be inserted a document when selecting
131- /// this completion. When `falsy` the label is used.
131+ /// this completion. When omitted the label is used.
132132 /// </summary>
133133
134134 [ Optional ]
@@ -223,7 +223,7 @@ public partial record CompletionItem : ICanBeResolved, IRequest<CompletionItem>,
223223 [ Optional ]
224224 public JToken ? Data { get ; init ; }
225225
226- private string DebuggerDisplay => $ "[{ Kind } ] { Label } { ( Tags ? . Any ( ) == true ? $ " tags: { string . Join ( ", " , Tags . Select ( z => z . ToString ( ) ) ) } " : "" ) } ";
226+ private string DebuggerDisplay => $ "[{ Kind } ] { Label } { ( Tags ? . Any ( ) == true ? $ " tags: { string . Join ( ", " , Tags . Select ( z => z . ToString ( ) ) ) } " : "" ) } ";
227227
228228 /// <inheritdoc />
229229 public override string ToString ( ) => DebuggerDisplay ;
@@ -351,7 +351,7 @@ public class CompletionRegistrationCompletionItemOptions
351351 /// details (see also `CompletionItemLabelDetails`) when receiving
352352 /// a completion item in a resolve call.
353353 ///
354- /// @since 3.17.0 - proposed state
354+ /// @since 3.17.0
355355 /// </summary>
356356 [ Optional ]
357357 public bool ? LabelDetailsSupport { get ; set ; }
@@ -438,7 +438,7 @@ public CompletionList(IEnumerable<CompletionItem> items, bool isIncomplete) : ba
438438 /// signals support for this via the `completionList.itemDefaults`
439439 /// capability.
440440 ///
441- /// @since 3.17.0 - proposed state
441+ /// @since 3.17.0
442442 /// </summary>
443443 [ Optional ]
444444 public CompletionListItemDefaults ? ItemDefaults { get ; set ; }
@@ -450,11 +450,11 @@ public CompletionList(IEnumerable<CompletionItem> items, bool isIncomplete) : ba
450450 {
451451 ItemDefaults = list . ItemDefaults
452452 } ,
453- _ => null
453+ _ => null
454454 } ;
455455
456456 public static CompletionList From ( CompletionList ? source , IEnumerable < CompletionItem > ? result )
457- => new ( ( source ? . Items ?? Array . Empty < CompletionItem > ( ) ) . Concat ( result ?? Array . Empty < CompletionItem > ( ) ) )
457+ => new ( ( source ? . Items ?? Array . Empty < CompletionItem > ( ) ) . Concat ( result ?? Array . Empty < CompletionItem > ( ) ) )
458458 {
459459 ItemDefaults = source ? . ItemDefaults
460460 } ;
@@ -559,7 +559,7 @@ public CompletionList(bool isIncomplete, params CompletionItem<T>[] items) : bas
559559 /// signals support for this via the `completionList.itemDefaults`
560560 /// capability.
561561 ///
562- /// @since 3.17.0 - proposed state
562+ /// @since 3.17.0
563563 /// </summary>
564564 [ Optional ]
565565 public CompletionListItemDefaults ? ItemDefaults { get ; set ; }
@@ -574,71 +574,71 @@ public CompletionList(bool isIncomplete, params CompletionItem<T>[] items) : bas
574574 } ,
575575 _ => null
576576 } ;
577-
577+
578578 [ return : System . Diagnostics . CodeAnalysis . NotNullIfNotNull ( "container" ) ]
579- public static implicit operator CompletionList ? ( CompletionList < T > ? container ) => container switch
579+ public static implicit operator CompletionList ? ( CompletionList < T > ? container ) => container switch
580580 {
581581 not null => new CompletionList ( container . Select ( value => ( CompletionItem ) value ) , container . IsIncomplete )
582582 {
583583 ItemDefaults = container . ItemDefaults
584584 } ,
585- _ => null
585+ _ => null
586586 } ;
587-
587+
588588 }
589-
590- internal class TypedCompletionListConverter : JsonConverter
591- {
592- public override void WriteJson ( JsonWriter writer , object ? value , JsonSerializer serializer )
593- {
594- serializer . Serialize ( writer , ( CompletionList ? ) value ) ;
595- }
596589
597- public override object ? ReadJson ( JsonReader reader , Type objectType , object ? existingValue , JsonSerializer serializer )
598- {
599- var completionList = serializer . Deserialize < CompletionList > ( reader ) ;
600- return objectType . GetMethod ( nameof ( CompletionList < IHandlerIdentity > . Create ) , BindingFlags . Static | BindingFlags . Public ) !
601- . Invoke ( null , new object [ ] { completionList } ) ! ;
602- }
590+ internal class TypedCompletionListConverter : JsonConverter
591+ {
592+ public override void WriteJson ( JsonWriter writer , object ? value , JsonSerializer serializer )
593+ {
594+ serializer . Serialize ( writer , ( CompletionList ? ) value ) ;
595+ }
603596
604- public override bool CanConvert ( Type objectType )
605- {
606- return objectType . IsGenericType && objectType . GetGenericTypeDefinition ( ) == typeof ( CompletionList < > ) ;
607- }
597+ public override object ? ReadJson ( JsonReader reader , Type objectType , object ? existingValue , JsonSerializer serializer )
598+ {
599+ var completionList = serializer . Deserialize < CompletionList > ( reader ) ;
600+ return objectType . GetMethod ( nameof ( CompletionList < IHandlerIdentity > . Create ) , BindingFlags . Static | BindingFlags . Public ) !
601+ . Invoke ( null , new object [ ] { completionList } ) ! ;
602+ }
608603
609- public override bool CanRead => true ;
604+ public override bool CanConvert ( Type objectType )
605+ {
606+ return objectType . IsGenericType && objectType . GetGenericTypeDefinition ( ) == typeof ( CompletionList < > ) ;
610607 }
611608
609+ public override bool CanRead => true ;
610+ }
611+
612612 public record CompletionListItemDefaults
613613 {
614614 /// <summary>
615615 /// A default commit character set.
616616 ///
617- /// @since 3.17.0 - proposed state
617+ /// @since 3.17.0
618618 /// </summary>
619619 [ Optional ]
620620 public Container < string > ? CommitCharacters { get ; init ; }
621621
622622 /// <summary>
623623 /// A default edit range
624624 ///
625- /// @since 3.17.0 - proposed state
625+ /// @since 3.17.0
626626 /// </summary>
627627 [ Optional ]
628628 public RangeOrEditRange ? EditRange { get ; init ; }
629629
630630 /// <summary>
631631 /// A default insert text format
632632 ///
633- /// @since 3.17.0 - proposed state
633+ /// @since 3.17.0
634634 /// </summary>
635635 [ Optional ]
636636 public InsertTextFormat ? InsertTextFormat { get ; init ; }
637637
638638 /// <summary>
639639 /// A default insert text mode
640640 ///
641- /// @since 3.17.0 - proposed state
641+ /// @since 3.17.0
642642 /// </summary>
643643 public InsertTextMode ? InsertTextMode { get ; init ; }
644644
@@ -704,7 +704,7 @@ public partial class CompletionCapability : DynamicCapability
704704 /// The client's default when the completion item doesn't provide a
705705 /// `insertTextMode` property.
706706 ///
707- /// @since 3.17.0 - proposed state
707+ /// @since 3.17.0
708708 /// </summary>
709709 [ Optional ]
710710 public InsertTextMode ? InsertTextMode { get ; set ; }
@@ -713,7 +713,7 @@ public partial class CompletionCapability : DynamicCapability
713713 /// The client supports the following `CompletionList` specific
714714 /// capabilities.
715715 ///
716- /// @since 3.17.0 - proposed state
716+ /// @since 3.17.0
717717 /// </summary>
718718 [ Optional ]
719719 public CompletionListCapabilityOptions ? CompletionList { get ; set ; }
@@ -723,19 +723,19 @@ public partial class CompletionCapability : DynamicCapability
723723 /// The client supports the following `CompletionList` specific
724724 /// capabilities.
725725 ///
726- /// @since 3.17.0 - proposed state
726+ /// @since 3.17.0
727727 /// </summary>
728728 public class CompletionListCapabilityOptions
729729 {
730730 /// <summary>
731- /// The client supports the the following itemDefaults on
731+ /// The client supports the following itemDefaults on
732732 /// a completion list.
733733 ///
734734 /// The value lists the supported property names of the
735735 /// `CompletionList.itemDefaults` object. If omitted
736736 /// no properties are supported.
737737 ///
738- /// @since 3.17.0 - proposed state
738+ /// @since 3.17.0
739739 /// </summary>
740740 [ Optional ]
741741 public Container < string > ? ItemDefaults { get ; set ; }
@@ -832,7 +832,7 @@ public class CompletionItemCapabilityOptions
832832 /// The client has support for completion item label
833833 /// details (see also `CompletionItemLabelDetails`).
834834 ///
835- /// @since 3.17.0 - proposed state
835+ /// @since 3.17.0
836836 /// </summary>
837837 [ Optional ]
838838 public bool LabelDetailsSupport { get ; set ; }
0 commit comments