Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Don't import local symbols on "Organize Imports" #88

Conversation

mlangc
Copy link
Collaborator

@mlangc mlangc commented Jul 18, 2015

Fixes #1002506 (actually only one line) and adds some trace messages.

Note that we use the deprecated method `Symbol.isLocal` on purpose,
because `Symbol.isLocalToBlock` is not available for Scala-2.10.x.

Fixes #1002506
@kiritsuku
Copy link
Member

LGTM

@@ -266,6 +266,7 @@ trait CompilationUnitDependencies extends CompilerApiExtensions with ScalaVersio
&& !isSelectFromInvisibleThis(qual)
&& t.name != nme.WILDCARD
&& hasStableQualifier(t)
&& !t.symbol.isLocal
Copy link
Member

Choose a reason for hiding this comment

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

👍

@misto
Copy link
Member

misto commented Jul 20, 2015

Thanks a lot!

misto added a commit that referenced this pull request Jul 20, 2015
…finitions-1002506

Don't import local symbols on "Organize Imports"
@misto misto merged commit 6409082 into scala-ide:master Jul 20, 2015
@mlangc mlangc deleted the organize-imports-adds-incorrect-definitions-1002506 branch July 25, 2015 18:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants