Skip to content

Minor cleanups in importFixes#23995

Merged
2 commits merged into
masterfrom
existingImports
May 24, 2018
Merged

Minor cleanups in importFixes#23995
2 commits merged into
masterfrom
existingImports

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented May 9, 2018

  • Removed 'cachedImportDeclarations'. This was only used in getExistingImportDeclarations, but this is unlikely to be called for the same module multiple times -- that would require the module to be exporting the same name twice.
  • getCodeActionsForAddImport no longer includes code actions for using an existing import, as the name implies.
  • Factored out getExportInfos, which finds all the ways a symbol is (re-)exported.

@ghost ghost requested a review from amcasey May 9, 2018 16:00
@ghost ghost force-pushed the existingImports branch from 18c5820 to 466196e Compare May 9, 2018 16:46
@ghost ghost merged commit ee8337d into master May 24, 2018
@ghost ghost deleted the existingImports branch May 24, 2018 14:46
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
This pull request was closed.
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.

1 participant