Skip to content

Commit

Permalink
relax white-space wrap and allow unless extension has details with ne…
Browse files Browse the repository at this point in the history
…wlines followed by intentation (whitespace), fixes #109717
  • Loading branch information
jrieken committed Oct 30, 2020
1 parent 7670c0c commit 6c8da84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/vs/editor/contrib/suggest/media/suggest.css
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@

.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap {
white-space: normal;
word-break: break-all;
}


Expand Down
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/suggest/suggestWidgetDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class SuggestDetailsWidget {
this._type.textContent = cappedDetail;
this._type.title = cappedDetail;
dom.show(this._type);
this._type.classList.toggle('auto-wrap', !cappedDetail.includes('\n'));
this._type.classList.toggle('auto-wrap', !/\r?\n^\s+/gmi.test(cappedDetail));
} else {
dom.clearNode(this._type);
this._type.title = '';
Expand Down

0 comments on commit 6c8da84

Please sign in to comment.