Skip to content

Commit

Permalink
Preserve whitespace in tree hover
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 committed Dec 9, 2020
1 parent 59ba649 commit b3c053d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vs/workbench/services/hover/browser/hoverWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export class HoverWidget extends Widget {
const contentsElement = $('div.hover-contents');
if (typeof options.text === 'string') {
contentsElement.textContent = options.text;
contentsElement.style.whiteSpace = 'pre-wrap';
} else {
const markdown = options.text;
const mdRenderer = this._instantiationService.createInstance(
Expand Down

0 comments on commit b3c053d

Please sign in to comment.