Skip to content

Improve ASTParser options when project is resolved. Fix #488 - #490

Merged
Jinbo Wang (testforstephen) merged 2 commits into
microsoft:mainfrom
gayanper:fix_first_lambda
May 26, 2023
Merged

Jinbo Wang (testforstephen) merged 2 commits into
microsoft:mainfrom
gayanper:fix_first_lambda

Conversation

@gayanper

Copy link
Copy Markdown
Contributor

When both the project and compiler options are set, the AST parser doesn't output the method statements. But if we only set the compiler options when project is not resolved, then method statements are resolved.

The issue with #488 was that method was missing statements, and BreakpointLocator endup seeing that closest location is at the end of the method.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. setProject will also set the project's compiler options to the paser.

@testforstephen

Copy link
Copy Markdown
Contributor

Error: src/main/java/com/microsoft/java/debug/plugin/internal/JdtSourceLookUpProvider.java:[352] (regexp) RegexpSingleline: Line has trailing spaces.

Gayan Perera (@gayanper) checkstyle failed.

@testforstephen

Copy link
Copy Markdown
Contributor

Error: src/main/java/com/microsoft/java/debug/plugin/internal/JdtSourceLookUpProvider.java:[352] (regexp) RegexpSingleline: Line has trailing spaces.

Gayan Perera (@gayanper) checkstyle failed.

forget it. I have submit a fix in this PR for checkstyle error.

@testforstephen
Jinbo Wang (testforstephen) merged commit d37cb10 into microsoft:main May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants