GeezerVison is showing github.com — prioritize lookup the project source code during debugging (#463) · christama/java-debug@e0f2bd2
File tree
Expand file treeCollapse file tree
Open diff view settings
com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal/InlineValueHandler.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -166,7 +166,7 @@ private static IMethod findMethodInLocalTypes(IMethod enclosingMethod, int stopp |
166 | 166 | */ |
167 | 167 | private static Position getPosition(IBuffer buffer, int offset) { |
168 | 168 | int[] result = JsonRpcHelpers.toLine(buffer, offset); |
169 | | - if (result == null && result.length < 1) { |
| 169 | + if (result == null || result.length < 1) { |
170 | 170 | return new Position(-1, -1); |
171 | 171 | } |
172 | 172 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal/JdtUtils.java +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -213,10 +213,10 @@ public static ISourceContainer[] getSourceContainers(String projectName) { |
213 | 213 | projects.stream().distinct().map(project -> JdtUtils.getJavaProject(project)) |
214 | 214 | .filter(javaProject -> javaProject != null && javaProject.exists()) |
215 | 215 | .forEach(javaProject -> { |
216 | | - // Add source containers associated with the project's runtime classpath entries. |
217 | | - containers.addAll(Arrays.asList(getSourceContainers(javaProject, calculated))); |
218 | 216 | // Add source containers associated with the project's source folders. |
219 | 217 | containers.add(new JavaProjectSourceContainer(javaProject)); |
| 218 | + // Add source containers associated with the project's runtime classpath entries. |
| 219 | + containers.addAll(Arrays.asList(getSourceContainers(javaProject, calculated))); |
220 | 220 | }); |
221 | 221 |
|
222 | 222 | return containers.toArray(new ISourceContainer[0]); |
|