mfussenegger / nvim-dap

Debug Adapter Protocol client implementation for Neovim
GNU General Public License v3.0
5.45k stars 193 forks source link

Less verbose scopes output #1252

Open simonmclean opened 4 months ago

simonmclean commented 4 months ago

Problem Statement

I'm working on a Scala project, and the REPL output for .scopes is so verbose that it's practically unusable. Below are screenshots of the output as shown in nvim-dap vs IntelliJ (values redacted because work)

nvim-dap

vim

(I know the screenshot is using nvim-dap-ui, but the result is basically the same with vanilla nvim-dap)

IntelliJ

intellij

As you can see, IntelliJ prints out much less in the way of type information. All that scala$collection$immutable$RedBlackTree$Tree$$ left RedBlackTree$Tree is essentially noise.

Possible Solutions

A config option added to nvim-dap, either:

Considered Alternatives

No response

mfussenegger commented 3 months ago

This is kinda tracked with: https://github.com/mfussenegger/nvim-dap/issues/737 and https://github.com/mfussenegger/nvim-dap/issues/1062

But part of this is also up to the debug adapter