Skip to content

For import completion, if multiple re-exports exist, choose the one with the shortest path#20049

Merged
3 commits merged into
masterfrom
completionsImport_ofAlias_preferShortPath
Nov 17, 2017
Merged

For import completion, if multiple re-exports exist, choose the one with the shortest path#20049
3 commits merged into
masterfrom
completionsImport_ofAlias_preferShortPath

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Nov 15, 2017

Fixes #19888

@ghost ghost requested a review from armanio123 November 15, 2017 20:42
@ghost ghost force-pushed the completionsImport_ofAlias_preferShortPath branch from a9e3fe2 to 31637fa Compare November 15, 2017 22:19
Comment thread src/compiler/core.ts Outdated
return result;
}

export function mapIter<T, U>(iter: Iterator<T>, mapFn: (x: T) => U): Iterator<U> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'll suggest not abbreviating. Instead of mapIter -> mapIterator.

Same for the parameter: iter -> iterator

Comment thread src/compiler/core.ts Outdated
}
}

export function arrayIter<T>(array: ReadonlyArray<T>): Iterator<T> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same name abbreviation

@ghost ghost force-pushed the completionsImport_ofAlias_preferShortPath branch from 31f51c0 to 9239035 Compare November 17, 2017 15:21
@ghost ghost merged commit 97bb471 into master Nov 17, 2017
@ghost ghost deleted the completionsImport_ofAlias_preferShortPath branch November 17, 2017 22:35
errendir added a commit to errendir/TypeScript that referenced this pull request Nov 20, 2017
* origin/master: (140 commits)
  test overriding Session.event
  Update editorServices.ts
  Fix semantic merge conflict (microsoft#20119)
  LEGO: check in for master to temporary branch.
  Moved minified file exclusion
  Fixed internal safelist
  For import completion, if multiple re-exports exist, choose the one with the shortest path (microsoft#20049)
  Bundle fileName with CodeActionCommand (microsoft#19881)
  Simplify documentHighlights (microsoft#20091)
  LEGO: check in for master to temporary branch.
  Support semantic classification of alias (microsoft#20012)
  In `getContextualTypeForBinaryOperand`, only need to look for `=` assignment operator, not e.g. `+=` (microsoft#20037)
  lineAction: Use an enum instead of true | false | undefined (microsoft#20086)
  LEGO: check in for master to temporary branch.
  cleanup NodeTypingsInstaller
  remove comments
  type `event` callback correctly
  update baselines
  defer callback and remove handler object
  Support arbitrary prototype property assignments in navigation bar (microsoft#19923)
  ...
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 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