-
Notifications
You must be signed in to change notification settings - Fork 368
/
CompletionItem.cs
34 lines (25 loc) · 1.08 KB
/
CompletionItem.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
namespace Microsoft.DotNet.Interactive.Events
{
public class CompletionItem
{
public CompletionItem(string displayText, string kind, string filterText = null, string sortText = null, string insertText = null, string documentation = null)
{
DisplayText = displayText ?? throw new ArgumentNullException(nameof(displayText));
Kind = kind ?? throw new ArgumentException(nameof(kind));
FilterText = filterText;
SortText = sortText;
InsertText = insertText;
Documentation = documentation;
}
public string DisplayText { get; }
public string Kind { get; }
public string FilterText { get; }
public string SortText { get; }
public string InsertText { get; }
public string Documentation { get; set; }
public override string ToString() => DisplayText;
}
}