René's URL Explorer Experiment


Title: Find main classes in projects whose sources are linked in by sorteam · Pull Request #633 · microsoft/java-debug · GitHub

Open Graph Title: Find main classes in projects whose sources are linked in by sorteam · Pull Request #633 · microsoft/java-debug

X Title: Find main classes in projects whose sources are linked in by sorteam · Pull Request #633 · microsoft/java-debug

Description: ResolveMainClassHandler.resolveMainClassUnderPaths builds the search scope by keeping only the projects whose own location is inside the requested folder: projects = Stream.of(ProjectUtils.getAllProjects()) .filter(p -> ProjectUtils.isJavaProject(p) && p.getLocation() != null && ResourceUtils.isContainedIn(p.getLocation(), parentPaths)) A project can instead keep its description outside that folder and reach the sources through linked folders. Such a project is dropped before the search runs, so the folder looks as if it contained no main class: Run and Debug generates no Java configuration for it (the launch configuration provider calls vscode.java.resolveMainClass(folder.uri)), and anything else that resolves a main class by folder gets an empty answer. The code already knows about this shape. acceptSearchMatch makes an exception for the invisible project: if (parentPaths.isEmpty() || ResourceUtils.isContainedIn(project.getLocation(), parentPaths) || isContainedInInvisibleProject(project, parentPaths)) { but the scope filter it depends on has no such exception, so the invisible-project branch can never fire - the project is not in the scope to begin with. Fix Check the locations of the project's source folders as well, in both places: for each source entry of the raw classpath, resolve the workspace path through IWorkspaceRoot.findMember and compare that location against the requested folders. A project belongs to the folder its sources are in rather than to the folder its description happens to live in. Reproduction Create a java project whose source folders are linked resources pointing into a workspace folder, with the project's own location elsewhere (any importer that provisions projects outside the repository does this; the invisible project is a one-link special case of it). Open the workspace folder and note that Run and Debug offers no Java configuration, while the same sources in a regular project do. Verification I compiled the modified class against the plugin jar shipped in vscjava.vscode-java-debug 0.59.0 and the jdt.ls plugins from redhat.java. I have not run the project's Maven build or test suite.

Open Graph Description: ResolveMainClassHandler.resolveMainClassUnderPaths builds the search scope by keeping only the projects whose own location is inside the requested folder: projects = Stream.of(ProjectUtils.getAllPr...

X Description: ResolveMainClassHandler.resolveMainClassUnderPaths builds the search scope by keeping only the projects whose own location is inside the requested folder: projects = Stream.of(ProjectUtils.getAllPr...

Opengraph URL: https://github.com/microsoft/java-debug/pull/633

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:335d0280-3f78-cabd-e9ee-e19ea112be63
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE52A:35FC69:10ABE:16360:6AF67586
html-safe-nonce283fabf525564a40fc6ca24d7221c792e87f80065fa92ccff080b95ab38d6b91
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTJBOjM1RkM2OToxMEFCRToxNjM2MDo2QUY2NzU4NiIsInZpc2l0b3JfaWQiOiI2Mjc1NTI2OTY0NTI2MDg1NTEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4812373ed56d653017e64f85b20f46a58d4519b059fc7e30ae841796004f80d9
hovercard-subject-tagpull_request:4444506801
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/microsoft/java-debug/pull/633/files
twitter:imagehttps://avatars.githubusercontent.com/u/15554297?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/15554297?s=400&v=4
og:image:altResolveMainClassHandler.resolveMainClassUnderPaths builds the search scope by keeping only the projects whose own location is inside the requested folder: projects = Stream.of(ProjectUtils.getAllPr...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5451898e13f81636602c8a1de0fb8d7190b7b2a473a9f8241168fd4dd110372e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/microsoft/java-debug git https://github.com/microsoft/java-debug.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id102583752
octolytics-dimension-repository_nwomicrosoft/java-debug
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id102583752
octolytics-dimension-repository_network_root_nwomicrosoft/java-debug
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8ba36e600310e0a3f7f56ea2244ea1240ea62bbf
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/java-debug/pull/633/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fjava-debug%2Fpull%2F633%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fjava-debug%2Fpull%2F633%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=microsoft%2Fjava-debug
Reloadhttps://github.com/microsoft/java-debug/pull/633/files
Reloadhttps://github.com/microsoft/java-debug/pull/633/files
Reloadhttps://github.com/microsoft/java-debug/pull/633/files
microsofthttps://github.com/microsoft
java-debughttps://github.com/microsoft/java-debug
Codehttps://github.com/microsoft/java-debug
Issues31 (31)https://github.com/microsoft/java-debug/issues
Pull requests11 (11)https://github.com/microsoft/java-debug/pulls
Actionshttps://github.com/microsoft/java-debug/actions
Security and qualityhttps://github.com/microsoft/java-debug/security
Insightshttps://github.com/microsoft/java-debug/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fmicrosoft%2Fjava-debug%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmicrosoft%2Fjava-debug%2Fissues%2Fnew%2Fchoose
wenyt (wenytang-ms)https://github.com/wenytang-ms
microsoft:mainhttps://github.com/microsoft/java-debug/tree/main
sorteam:main-class-search-linked-sourceshttps://github.com/sorteam/java-debug/tree/main-class-search-linked-sources
Conversation 11 https://github.com/microsoft/java-debug/pull/633
Commits 4 https://github.com/microsoft/java-debug/pull/633/commits
Checks 4 https://github.com/microsoft/java-debug/pull/633/checks
Files changed https://github.com/microsoft/java-debug/pull/633/files
Please reload this pagehttps://github.com/microsoft/java-debug/pull/633/files
Find main classes in projects whose sources are linked in https://github.com/microsoft/java-debug/pull/633/files#top
Show all changes 4 commits https://github.com/microsoft/java-debug/pull/633/files
20c9f79 Find main classes in projects whose sources are linked in sorteam Sep 4, 2026 https://github.com/microsoft/java-debug/pull/633/commits/20c9f79ec76cba14b20e8c4b8ec254e855da7e93
3231c5e Merge branch 'main' into main-class-search-linked-sources sorteam Sep 7, 2026 https://github.com/microsoft/java-debug/pull/633/commits/3231c5e2d0cb8c651021fe54783ee85c0c9f05f8
930f333 Answer a folder with the matches that are inside it sorteam Sep 17, 2026 https://github.com/microsoft/java-debug/pull/633/commits/930f333131d5573e4a3b09adab1cc66ecefd400a
3d8829d Merge branch 'main' into main-class-search-linked-sources sorteam Sep 29, 2026 https://github.com/microsoft/java-debug/pull/633/commits/3d8829d62883b90f531f56ff25bbe3ec4fe4dc6f
Clear filters https://github.com/microsoft/java-debug/pull/633/files
Please reload this pagehttps://github.com/microsoft/java-debug/pull/633/files
Please reload this pagehttps://github.com/microsoft/java-debug/pull/633/files
https://github.com/microsoft/java-debug/blob/main/.github/CODEOWNERS#L1
...lugin/src/main/java/com/microsoft/java/debug/plugin/internal/ResolveMainClassHandler.javahttps://github.com/microsoft/java-debug/pull/633/files#diff-0c3c99d36df2694fa09017b6e2fcbcbb050b6f157e2d7ebc5cea638fc72af9e4
View file https://github.com/sorteam/java-debug/blob/3d8829d62883b90f531f56ff25bbe3ec4fe4dc6f/com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal/ResolveMainClassHandler.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/java-debug/pull/633/{{ revealButtonHref }}
https://github.com/microsoft/java-debug/pull/633/files#diff-0c3c99d36df2694fa09017b6e2fcbcbb050b6f157e2d7ebc5cea638fc72af9e4
https://github.com/microsoft/java-debug/pull/633/files#diff-0c3c99d36df2694fa09017b6e2fcbcbb050b6f157e2d7ebc5cea638fc72af9e4
https://github.com/microsoft/java-debug/pull/633/files#diff-0c3c99d36df2694fa09017b6e2fcbcbb050b6f157e2d7ebc5cea638fc72af9e4
https://github.com/microsoft/java-debug/pull/633/files#diff-0c3c99d36df2694fa09017b6e2fcbcbb050b6f157e2d7ebc5cea638fc72af9e4
https://github.com/microsoft/java-debug/pull/633/files#diff-0c3c99d36df2694fa09017b6e2fcbcbb050b6f157e2d7ebc5cea638fc72af9e4
https://github.com/microsoft/java-debug/pull/633/files#diff-0c3c99d36df2694fa09017b6e2fcbcbb050b6f157e2d7ebc5cea638fc72af9e4
https://github.com/microsoft/java-debug/pull/633/files#diff-0c3c99d36df2694fa09017b6e2fcbcbb050b6f157e2d7ebc5cea638fc72af9e4
https://github.com/microsoft/java-debug/pull/633/files#diff-0c3c99d36df2694fa09017b6e2fcbcbb050b6f157e2d7ebc5cea638fc72af9e4
Please reload this pagehttps://github.com/microsoft/java-debug/pull/633/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.