Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4 from pengx17/patch-1
Browse files Browse the repository at this point in the history
fix an issue of `fromMarkdownString`
  • Loading branch information
alexdima authored Apr 10, 2018
2 parents 29d4a13 + 7600ac6 commit ec6bc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ function toCompletionItem(entry: ls.CompletionItem): DataCompletionItem {

function fromMarkdownString(entry: string | monaco.IMarkdownString): ls.MarkupContent {
return {
kind: (typeof entry === 'string' ? ls.MarkupKind.PlainText : ls.MarkupKind.PlainText),
kind: (typeof entry === 'string' ? ls.MarkupKind.PlainText : ls.MarkupKind.Markdown),
value: (typeof entry === 'string' ? entry : entry.value)
}
}
Expand Down

0 comments on commit ec6bc4d

Please sign in to comment.