Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Look for module of the definition in RDT during rename - #1790

Merged
Jake Bailey (jakebailey) merged 20 commits into
microsoft:masterfrom
MikhailArkhipov:b979
Nov 13, 2019
Merged

Jake Bailey (jakebailey) merged 20 commits into
microsoft:masterfrom
MikhailArkhipov:b979

Conversation

@MikhailArkhipov

Copy link
Copy Markdown

Fixes #979

Variables do not have declaring module so we need to look in RDT, like goto definition does.

Includes #1788 by accident so it needs to go last. Actual change is one file at the end.

MikhailArkhipov added 17 commits September 30, 2019 12:03
@MikhailArkhipov Mikhail Arkhipov (MikhailArkhipov) changed the title Look for module of the definition in RDT Look for module of the definition in RDT during rename Nov 12, 2019
@jakebailey

Copy link
Copy Markdown
Member

#1788 is merged, so this needs a master merge to fix the diff.

Comment thread src/LanguageServer/Impl/Sources/ReferenceSource.cs Outdated
@jakebailey

Copy link
Copy Markdown
Member

Is there any way to test this fix?

@MikhailArkhipov

Copy link
Copy Markdown
Author

Probably yes, need to add file to what we have in tests so it is considered a library. Let me try that.

@jakebailey
Jake Bailey (jakebailey) merged commit 56b0342 into microsoft:master Nov 13, 2019
Mikhail Arkhipov (MikhailArkhipov) pushed a commit that referenced this pull request Jun 15, 2020
* Remove stale reference

* Don't suppress LHS diagnostics on augmented assign

* Look for module in RDT

* Less nesting

* Add test

(cherry picked from commit 56b0342)
Mikhail Arkhipov (MikhailArkhipov) pushed a commit that referenced this pull request Jun 15, 2020
* Remove stale reference

* Don't suppress LHS diagnostics on augmented assign

* Look for module in RDT

* Less nesting

* Add test

(cherry picked from commit 56b0342)
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.

Library function is renamable

2 participants