relax white-space wrap and allow unless extension has details with newlines followed by intentation (whitespace), fixes https://github.com/microsoft/vscode/issues/109717

This commit is contained in:
Johannes Rieken 2020-10-30 10:19:52 +01:00
parent 7670c0c79c
commit 6c8da84718
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -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 = '';