microsoft / microsoft/TypeScript

TS: duplicated imports in this case

Open
#57,726 2 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Needs Investigation Rescheduled
Dominant language
Go
Stars
111k
Forks
14.4k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

Steps to Reproduce:

  1. in our sources have a TS file that uses import { watchFile } from 'fs';
  2. somewhere begin to use unwatchFile
  3. use quick fix to add import
  4. pick "Add import from 'fs'"

=> 🐛 you get a second import

import { watchFile } from 'fs';
import { unwatchFile } from 'fs';

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.