-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add completion suggestions in Elm language service and VSCode extension
- Loading branch information
Showing
28 changed files
with
930 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
implement/Pine.Core/LanguageServerProtocol/CompletionParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Pine.Core.LanguageServerProtocol; | ||
|
||
/// <summary> | ||
/// https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionParams | ||
/// </summary> | ||
public record CompletionParams( | ||
TextDocumentIdentifier TextDocument, | ||
Position Position, | ||
CompletionContext? Context); | ||
|
||
/// <summary> | ||
/// https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionContext | ||
/// </summary> | ||
public record CompletionContext(); | ||
|
||
/// <summary> | ||
/// https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionItem | ||
/// </summary> | ||
public record CompletionItem( | ||
string Label, | ||
string? SortText, | ||
string? FilterText, | ||
string? InsertText, | ||
string? TextEditText, | ||
string? Detail, | ||
string? Documentation, | ||
bool? Preselect, | ||
bool? Deprecated, | ||
IReadOnlyList<string>? CommitCharacters); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.