From 0e42e103d15711ca6f4c47a16ec52d89d188ed59 Mon Sep 17 00:00:00 2001 From: Laurent Le Brun Date: Fri, 24 Jun 2022 13:46:58 +0200 Subject: [PATCH] Comments: Wrap non-Markdown content (#152987) In https://github.com/microsoft/vscode/issues/145380, the style for comments was changed to preserve indentation. However, when a line is too long, the text will be hidden instead of wrapping. Using `pre-wrap` fixes that issue. --- src/vs/workbench/contrib/comments/browser/media/review.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/comments/browser/media/review.css b/src/vs/workbench/contrib/comments/browser/media/review.css index c641f752f30..e7c5c1650ec 100644 --- a/src/vs/workbench/contrib/comments/browser/media/review.css +++ b/src/vs/workbench/contrib/comments/browser/media/review.css @@ -114,7 +114,7 @@ } .review-widget .body .review-comment .review-comment-contents .comment-body .comment-body-plainstring { - white-space: pre; + white-space: pre-wrap; } .review-widget .body .review-comment .review-comment-contents .comment-body {