Docs · API reference · Verso.Abstractions

Completion Class#

Represents a single code-completion item offered by a kernel's language service.

public sealed record Completion : System.IEquatable<Verso.Abstractions.Completion>

Inheritance System.Object → Completion

Implements System.IEquatable<Completion>

Constructors#

Completion(string, string, string, string, string) Constructor#

Represents a single code-completion item offered by a kernel's language service.

public Completion(string DisplayText, string InsertText, string Kind, string? Description=null, string? SortText=null);

Parameters#

DisplayText System.String

The text shown to the user in the completion list.

InsertText System.String

The text inserted into the editor when the completion is accepted.

Kind System.String

The kind of symbol this completion represents (e.g. "Method", "Property", "Keyword").

Description System.String

An optional description or documentation string displayed alongside the completion.

SortText System.String

An optional string used to control the sort order in the completion list. When null, DisplayText is used.

Properties#

Description Property#

An optional description or documentation string displayed alongside the completion.

public string? Description { get; init; }

Property Value#

System.String

DisplayText Property#

The text shown to the user in the completion list.

public string DisplayText { get; init; }

Property Value#

System.String

InsertText Property#

The text inserted into the editor when the completion is accepted.

public string InsertText { get; init; }

Property Value#

System.String

Kind Property#

The kind of symbol this completion represents (e.g. "Method", "Property", "Keyword").

public string Kind { get; init; }

Property Value#

System.String

SortText Property#

An optional string used to control the sort order in the completion list. When null, DisplayText is used.

public string? SortText { get; init; }

Property Value#

System.String