Skip to content
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

fix: open document side by side with chat panel #1677

Merged
merged 4 commits into from
Nov 8, 2023

Conversation

abeatrix
Copy link
Contributor

@abeatrix abeatrix commented Nov 8, 2023

RE: https://sourcegraph.slack.com/archives/C05AGQYD528/p1699403470817339

fix: open document side by side with chat panel

Check current webview panel location before opening the document to show it side by side instead of replacing the chat panel.

Test plan

Screen.Recording.2023-11-07.at.4.48.21.PM.mov

@abeatrix abeatrix requested review from beyang and a team November 8, 2023 00:50
Copy link
Member

@beyang beyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is better than the current behavior, but what if there are more than two columns?

@abeatrix
Copy link
Contributor Author

abeatrix commented Nov 8, 2023

This is better than the current behavior, but what if there are more than two columns?

good point. Updated to calculate the view column to open the file in based on the current webview panel's view column.
This will make sure to always open the file in the view column beside the current webview panel instead of hardcoded view columns.

@abeatrix abeatrix merged commit 39edcc7 into main Nov 8, 2023
13 checks passed
@abeatrix abeatrix deleted the bee/fix-chat-panel-view branch November 8, 2023 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants