Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix removal of default import#25200

Merged
1 commit merged into
mastermicrosoft/TypeScript:masterfrom
rmDefaultImportmicrosoft/TypeScript:rmDefaultImportCopy head branch name to clipboard
Jun 25, 2018
Merged

Fix removal of default import#25200
1 commit merged into
mastermicrosoft/TypeScript:masterfrom
rmDefaultImportmicrosoft/TypeScript:rmDefaultImportCopy head branch name to clipboard

Conversation

@ghost

@ghost ghost commented Jun 25, 2018

Copy link
Copy Markdown

Fixes the error from #25199

@ghost ghost force-pushed the rmDefaultImport branch from 13b43b9 to cc0cb19 Compare June 25, 2018 18:35
@ghost ghost requested a review from amcasey June 25, 2018 18:35
@ghost ghost merged commit 0b5b7ef into master Jun 25, 2018
@ghost ghost deleted the rmDefaultImport branch June 25, 2018 19:41

@amcasey amcasey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

else if (namedBindings.kind === SyntaxKind.NamespaceImport) {
// `import foo, * as a from "./a";` --> `import * as a from ".a/"; import { foo } from "./a";`
changes.deleteNode(importingSourceFile, ref);
changes.deleteRange(importingSourceFile, { pos: ref.getStart(importingSourceFile), end: namedBindings.getStart(importingSourceFile) });

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Presumably, this will also clobber trivia.

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.