GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal
    • InlineValueHandler.java
    • JdtUtils.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal/InlineValueHandler.java‎

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 numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private static IMethod findMethodInLocalTypes(IMethod enclosingMethod, int stopp
166166
*/
167167
private static Position getPosition(IBuffer buffer, int offset) {
168168
int[] result = JsonRpcHelpers.toLine(buffer, offset);
169-
if (result == null && result.length < 1) {
169+
if (result == null || result.length < 1) {
170170
return new Position(-1, -1);
171171
}
172172

Collapse file

‎com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal/JdtUtils.java‎

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 numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ public static ISourceContainer[] getSourceContainers(String projectName) {
213213
projects.stream().distinct().map(project -> JdtUtils.getJavaProject(project))
214214
.filter(javaProject -> javaProject != null && javaProject.exists())
215215
.forEach(javaProject -> {
216-
// Add source containers associated with the project's runtime classpath entries.
217-
containers.addAll(Arrays.asList(getSourceContainers(javaProject, calculated)));
218216
// Add source containers associated with the project's source folders.
219217
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)));
220220
});
221221

222222
return containers.toArray(new ISourceContainer[0]);

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.