Skip to content

Commit ec415d5

Browse files
committed
nowrap whitespace, trim code lens titles, fixes microsoft#106718
1 parent f192077 commit ec415d5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/editor/contrib/codelens/codelensWidget.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
overflow: hidden;
88
display: inline-block;
99
text-overflow: ellipsis;
10+
white-space: nowrap;
1011
}
1112

1213
.monaco-editor .codelens-decoration > span,

src/vs/editor/contrib/codelens/codelensWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class CodeLensContentWidget implements IContentWidget {
8888
}
8989
hasSymbol = true;
9090
if (lens.command) {
91-
const title = renderCodicons(lens.command.title);
91+
const title = renderCodicons(lens.command.title.trim());
9292
if (lens.command.id) {
9393
children.push(dom.$('a', { id: String(i) }, ...title));
9494
this._commands.set(String(i), lens.command);

0 commit comments

Comments
 (0)