Skip to content

Commit

Permalink
Merge pull request #91781 from microsoft/fix/long-suggestion-handling
Browse files Browse the repository at this point in the history
suggest: fix handling around long lines
  • Loading branch information
octref authored Feb 28, 2020
2 parents a69a459 + 155fcfa commit 3d23d67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/vs/editor/contrib/suggest/media/suggest.css
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
}

.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .signature-label {
overflow: auto;
overflow: hidden;
text-overflow: ellipsis;
}

Expand Down Expand Up @@ -228,6 +228,7 @@

.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left {
flex-shrink: 1;
flex-grow: 1;
overflow: hidden;
}
.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .monaco-icon-label {
Expand Down
3 changes: 1 addition & 2 deletions src/vs/editor/contrib/suggest/suggestWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,10 @@ class ItemRenderer implements IListRenderer<CompletionItem, ISuggestionTemplateD
const text = append(container, $('.contents'));
const main = append(text, $('.main'));

data.iconContainer = append(main, $('.icon-label.codicon'));
data.left = append(main, $('span.left'));
data.right = append(main, $('span.right'));

data.iconContainer = append(data.left, $('.icon-label.codicon'));

data.iconLabel = new IconLabel(data.left, { supportHighlights: true, supportCodicons: true });
data.disposables.add(data.iconLabel);

Expand Down

0 comments on commit 3d23d67

Please sign in to comment.