delve/service/api
Stefan Haller aec354cd0b
Shorten variable types (#3535)
* Add ShortenType function

Taken from

  https://github.com/aarzilli/gdlv/blob/master/internal/prettyprint/short.go

with kind permission by @aarzilli.

* Shorten type names in variable values

The variables view in VS Code is a lot easier to read if long type names are
shortened in much the same way as we shorten them for functions in the call
stack view.

We only shorten them in the value strings; the Type field of dap.Variable is
kept as is. Since this only appears in a tooltip, it isn't a problem to have the
full type visible there.
2023-11-09 10:15:25 +01:00
..
command.go proc,service,terminal: add ways to list goroutines waiting on a channel (#3481) 2023-08-23 13:02:34 -07:00
conversions.go *: Correct spelling mistakes (#3555) 2023-11-06 07:55:44 -06:00
prettyprint_test.go terminal: add -size argument to examinemem command 2020-09-11 08:21:11 +02:00
prettyprint.go Shorten variable types (#3535) 2023-11-09 10:15:25 +01:00
shorten_type_test.go Shorten variable types (#3535) 2023-11-09 10:15:25 +01:00
shorten_type.go Shorten variable types (#3535) 2023-11-09 10:15:25 +01:00
types.go *: Correct spelling mistakes (#3555) 2023-11-06 07:55:44 -06:00