Commit 6b32767
Exclude Map.Entry from lazy loading to show key:value inline
Map.Entry objects were incorrectly treated as lazy-loading candidates
because they are included in COLLECTION_TYPES. This caused the debugger
to display entries as 'HashMap$Node@id' instead of showing the actual
key:value details inline.
Map.Entry's details computation (getKey + getValue) is lightweight,
so eager evaluation is safe and significantly improves UX when debugging
large Maps.
Fixes microsoft/vscode-java-debug#1605
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b35f033 commit 6b32767
File tree
1 file changed
+7
-0
lines changed- com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/variables
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
166 | 173 | | |
167 | 174 | | |
168 | 175 | | |
| |||
0 commit comments