-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ef6f18
commit fc6d3b1
Showing
3 changed files
with
141 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
import vscode from "vscode"; | ||
|
||
export default function ci(label: string, details: string, kind: vscode.CompletionItemKind): vscode.CompletionItem { | ||
const completionItem: vscode.CompletionItem = new vscode.CompletionItem(label); | ||
completionItem.insertText = label; | ||
completionItem.label = label; | ||
completionItem.kind = kind; | ||
completionItem.detail = details; | ||
completionItem.documentation = new vscode.MarkdownString(details); | ||
return completionItem; | ||
} | ||
export default function ci( | ||
label: string, | ||
details: string, | ||
kind: vscode.CompletionItemKind | ||
): vscode.CompletionItem { | ||
const completionItem: vscode.CompletionItem = new vscode.CompletionItem( | ||
label | ||
); | ||
completionItem.insertText = label; | ||
completionItem.label = label; | ||
completionItem.kind = kind; | ||
completionItem.detail = details; | ||
completionItem.documentation = new vscode.MarkdownString(details); | ||
return completionItem; | ||
} |
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