-
Notifications
You must be signed in to change notification settings - Fork 37.5k
Alt fix #288518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Alt fix #288518
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,5 +27,11 @@ suite('Contextview', function () { | |
| assert.strictEqual(layout(200, 20, { offset: 150, size: 50, position: LayoutAnchorPosition.After }), 130); | ||
| }); | ||
|
|
||
| test('layout large hover', () => { | ||
| // When the view is large and almost fits on the preferred side, we should prefer to shift it | ||
| // rather than flip it to the other side which might be far away. | ||
| assert.strictEqual(layout(1084, 306, { offset: 296, size: 2, position: LayoutAnchorPosition.After }), 0); | ||
|
Comment on lines
+30
to
+33
|
||
| }); | ||
|
|
||
| ensureNoDisposablesAreLeakedInTestSuite(); | ||
| }); | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -360,6 +360,19 @@ export class AgentSessionRenderer implements ICompressibleTreeRenderer<IAgentSes | |||||||||||||||||||||||||
| // Title | ||||||||||||||||||||||||||
| lines.push(`**${session.label}**`); | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| lines.push('more'); | ||||||||||||||||||||||||||
| lines.push('more'); | ||||||||||||||||||||||||||
| lines.push('more'); | ||||||||||||||||||||||||||
| lines.push('more'); | ||||||||||||||||||||||||||
| lines.push('more'); | ||||||||||||||||||||||||||
| lines.push('more'); | ||||||||||||||||||||||||||
| lines.push('more'); | ||||||||||||||||||||||||||
| lines.push('more'); | ||||||||||||||||||||||||||
| lines.push('more'); | ||||||||||||||||||||||||||
| lines.push('more'); | ||||||||||||||||||||||||||
| lines.push('more'); | ||||||||||||||||||||||||||
| lines.push('more'); | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
Comment on lines
+363
to
+375
|
||||||||||||||||||||||||||
| lines.push('more'); | |
| lines.push('more'); | |
| lines.push('more'); | |
| lines.push('more'); | |
| lines.push('more'); | |
| lines.push('more'); | |
| lines.push('more'); | |
| lines.push('more'); | |
| lines.push('more'); | |
| lines.push('more'); | |
| lines.push('more'); | |
| lines.push('more'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new OVERLAP_OKAY enum value lacks documentation explaining its purpose and when it should be used, unlike the other layout modes. Consider adding a comment to describe when this mode is appropriate, especially given that it changes the layout behavior to prefer overlapping the anchor rather than flipping to the other side.