Merge pull request #20 from fathyb/hover/cover-block

Use Mardown code block for hover tooltip
This commit is contained in:
Alexandru Dima 2018-05-15 12:40:12 +02:00 committed by GitHub
commit 03655e6da9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -330,7 +330,7 @@ export class QuickInfoAdapter extends Adapter implements monaco.languages.HoverP
return {
range: this._textSpanToRange(resource, info.textSpan),
contents: [{
value: contents
value: '```js\n' + contents + '\n```\n'
}, {
value: documentation + (tags ? '\n\n' + tags : '')
}]