nowrap whitespace, trim code lens titles, fixes https://github.com/microsoft/vscode/issues/106718

This commit is contained in:
Johannes Rieken
2020-09-16 09:54:17 +02:00
parent f1920776b4
commit ec415d5a8b
2 changed files with 2 additions and 1 deletions
@@ -7,6 +7,7 @@
overflow: hidden;
display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
}
.monaco-editor .codelens-decoration > span,
@@ -88,7 +88,7 @@ class CodeLensContentWidget implements IContentWidget {
}
hasSymbol = true;
if (lens.command) {
const title = renderCodicons(lens.command.title);
const title = renderCodicons(lens.command.title.trim());
if (lens.command.id) {
children.push(dom.$('a', { id: String(i) }, ...title));
this._commands.set(String(i), lens.command);