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

Add a collection formatter #397

Open
adpi2 opened this issue Apr 4, 2023 · 0 comments
Open

Add a collection formatter #397

adpi2 opened this issue Apr 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@adpi2
Copy link
Member

adpi2 commented Apr 4, 2023

When inspecting a Scala (or Java) collection in the debugger, it would be very useful to see its elements as if it was an array (or rather a lazy array).

The end result should look like this:

myList: List[Int]
  size: 13
  elems
    0: "foo"
    1: "bar"
    ...
    10: "fizz"
    load more:
      11: "buzz"
      12: "bazz"

We can find some inspiration of how to do it in IntelliJ Scala debugger.

Corresponding feature request in Metals is: scalameta/metals-feature-requests#307

@adpi2 adpi2 added the enhancement New feature or request label Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant