Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CreateFileChange from org.eclipse.jdt.ls.core #1967

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

rgrunber
Copy link
Contributor

@rgrunber rgrunber commented Dec 8, 2021

  • Fix regression introduced by reference to CreateFileChange from
    jdt.core.manipulation, which resulted in type mismatch and failure to
    correctly create new files from code actions

Signed-off-by: Roland Grunberg rgrunber@redhat.com

Regression explained in #1923 (comment) .

To test this change, simply define a type that wouldn't exist (eg. MyRandomType foo;) and attempt to create it using a code action (class/interface/enum). I'll see if we can add some tests for this case.

- Fix regression introduced by reference to CreateFileChange from
  jdt.core.manipulation, which resulted in type mismatch and failure to
  correctly create new files from code actions
- Add test case

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
@rgrunber
Copy link
Contributor Author

rgrunber commented Dec 9, 2021

There's #1968 tracking the single test failure, so I'll go ahead and merge this.

@rgrunber rgrunber added this to the Early December milestone Dec 9, 2021
@rgrunber rgrunber merged commit 791f30e into eclipse-jdtls:master Dec 9, 2021
@rgrunber rgrunber deleted the createfile-regression branch December 9, 2021 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant