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

Organize Imports should resolve static imports as well #1415

Merged
merged 1 commit into from
Apr 28, 2020

Conversation

snjeza
Copy link
Contributor

@snjeza snjeza commented Apr 21, 2020

Fixes redhat-developer/vscode-java#1386

Signed-off-by: Snjezana Peco snjezana.peco@redhat.com

@snjeza snjeza requested review from gorkem and fbricon April 21, 2020 22:31
@fbricon
Copy link
Contributor

fbricon commented Apr 22, 2020

When triggering organize imports manually, it seems to work fine (haven't checked ambiguous static imports so far), but when organize imports is executed automatically on save in vscode, all hell breaks loose:

Apr-22-2020 20-06-25

public class MyTest {
/**
   "editor.codeActionsOnSave": {
		"source.organizeImports": true
	}
 */
	@Test
	void test(){
		assertEquals(1, 1, "message");
	}
}

@snjeza
Copy link
Contributor Author

snjeza commented Apr 25, 2020

test this please

@snjeza
Copy link
Contributor Author

snjeza commented Apr 25, 2020

@fbricon I have updated the PR.

@snjeza
Copy link
Contributor Author

snjeza commented Apr 27, 2020

test this please

@snjeza snjeza changed the title [WIP] Organize Imports should resolve static imports as well Organize Imports should resolve static imports as well Apr 27, 2020
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
@fbricon fbricon merged commit 7a01202 into eclipse-jdtls:master Apr 28, 2020
@fbricon
Copy link
Contributor

fbricon commented Apr 28, 2020

Thanks @snjeza!

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.

Organize Imports should resolve static imports as well
2 participants