Browse Source

Use Mardown code block for hover tooltip

Fathy Boundjadj 7 years ago
parent
commit
407357f852
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/languageFeatures.ts

+ 1 - 1
src/languageFeatures.ts

@@ -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 : '')
 				}]