Repository navigation
TS: duplicated imports in this case聽#57726
Copy link
Copy link
Open
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Description
Activity
- assigned and unassigned
on Mar 11, 2024 - addedNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
on Mar 11, 2024 - assigned and unassigned
on Mar 11, 2024 I'm working on a similar issue that duplicates import for 'move to file' and I tried to check if this is the same issue. However, the repro that I was trying out does not give me an error. Benjamin Pasero (@bpasero) please help me understand if this is similar to what you were trying out.
This is what I tried:// @Filename: /a.ts export const t = 0; export const t2 = 0; // @Filename: /b.ts import { t } from "./a"; const y = t + 1; const z = t2/**/ + 1;Used quick fix at /**/ to add import from "./a" and it resulted in
import { t, t2 } from "./file1";navya9singh my steps repro in the
vscodesources if you opensrc/vs/platform/files/node/watcher/baseWatcher.tsand do the suggested change there.- addedRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
on Jul 26, 2024
Metadata
Metadata
Assignees
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Steps to Reproduce:
import { watchFile } from 'fs';unwatchFile=> 馃悰 you get a second import