Explorar o código

Use Mardown code block for hover tooltip

Fathy Boundjadj %!s(int64=7) %!d(string=hai) anos
pai
achega
407357f852
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 : '')
 				}]