Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve ResolveMainClassHandler.resolveMainClassUnderPaths#596

Merged
wenytang-ms merged 2 commits intomicrosoft:main from
snjeza:issue-595
Aug 13, 2025
Merged

Improve ResolveMainClassHandler.resolveMainClassUnderPaths #596
wenytang-ms merged 2 commits intomicrosoft:main from
snjeza:issue-595

Conversation

@snjeza
Copy link
Contributor

@snjeza snjeza commented Jul 20, 2025

Fixes #595

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the ResolveMainClassHandler.resolveMainClassUnderPaths method to provide more targeted main class resolution by filtering projects based on provided paths instead of searching all Java projects.

  • Adds conditional logic to filter Java projects when specific paths are provided
  • Removes REFERENCED_PROJECTS flag from search scope to focus only on source files
  • Imports JavaCore utility for creating IJavaProject instances

Copy link
Contributor Author

snjeza commented Aug 6, 2025

I have updated the PR.

@wenytang-ms wenytang-ms merged commit a209e39 into microsoft:main Aug 13, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot Copilot left review comments

@wenytang-ms wenytang-ms wenytang-ms approved these changes

@testforstephen testforstephen Awaiting requested review from testforstephen testforstephen is a code owner

@jdneo jdneo Awaiting requested review from jdneo jdneo is a code owner

@chagong chagong Awaiting requested review from chagong chagong is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Improve ResolveMainClassHandler.resolveMainClassUnderPaths

AltStyle によって変換されたページ (->オリジナル) /