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

Stop scrolling to end of console on selection #3013

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Conversation

parlough
Copy link
Member

@parlough parlough commented Jun 18, 2024

I believe this fixes it as the text editing controller was triggering the listener when selections were made. We don't use the text field/editing functionality anyway.

Fixes #2931

@parlough parlough requested a review from devoncarew June 18, 2024 04:10
Copy link
Member

@devoncarew devoncarew left a comment

Choose a reason for hiding this comment

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

lgtm - thanks!

I wonder if there is any performance difference between a TextField and SelectableText when the amount of text gets large? Esp. as we are appending ~a line of text at a time - I wonder if we'll hit any n^2 issues?

We can keep an eye out for performance issues w/ snippets with lots of output, and perhaps choose to do something like only keep 5k of output at a time.

pkgs/dartpad_ui/lib/console.dart Show resolved Hide resolved
@parlough parlough merged commit 7c33bcb into main Jun 18, 2024
4 checks passed
@parlough parlough deleted the fix/console-scrolling branch June 18, 2024 16:41
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.

Can't copy from compiler error output
2 participants