mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
Use Mardown code block for hover tooltip
This commit is contained in:
parent
64641eebb2
commit
407357f852
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ export class QuickInfoAdapter extends Adapter implements monaco.languages.HoverP
|
||||||
return {
|
return {
|
||||||
range: this._textSpanToRange(resource, info.textSpan),
|
range: this._textSpanToRange(resource, info.textSpan),
|
||||||
contents: [{
|
contents: [{
|
||||||
value: contents
|
value: '```js\n' + contents + '\n```\n'
|
||||||
}, {
|
}, {
|
||||||
value: documentation + (tags ? '\n\n' + tags : '')
|
value: documentation + (tags ? '\n\n' + tags : '')
|
||||||
}]
|
}]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue