Skip to content

Organize imports in ambient modules#22087

Merged
amcasey merged 3 commits into
microsoft:masterfrom
amcasey:AmbientModuleImports
Feb 24, 2018
Merged

Organize imports in ambient modules#22087
amcasey merged 3 commits into
microsoft:masterfrom
amcasey:AmbientModuleImports

Conversation

@amcasey
Copy link
Copy Markdown
Member

@amcasey amcasey commented Feb 21, 2018

The first two commits are #22007.

Fixes #10020 (i.e. further work will be bug-/request-driven)

@amcasey amcasey requested a review from a user February 21, 2018 18:34
@amcasey
Copy link
Copy Markdown
Member Author

amcasey commented Feb 22, 2018

Ping

@ghost
Copy link
Copy Markdown

ghost commented Feb 23, 2018

@amcasey Could you rebase now that #22007 and #22102 are in?

@amcasey amcasey force-pushed the AmbientModuleImports branch from 828ac3d to 8ead7ab Compare February 23, 2018 00:33
const sortedImportGroups = stableSort(oldImportGroups, (group1, group2) =>
compareModuleSpecifiers(group1[0].moduleSpecifier, group2[0].moduleSpecifier));
function organizeImportsWorker(oldImportDecls: ReadonlyArray<ImportDeclaration>) {
if (length(oldImportDecls) === 0) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit: use .length since this oldImportDecls should always be defined.

@amcasey amcasey merged commit b31aa4e into microsoft:master Feb 24, 2018
@amcasey amcasey deleted the AmbientModuleImports branch February 24, 2018 01:43
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
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