Auto-Import icon indicating copy to clipboard operation
Auto-Import copied to clipboard

Option to remove leading . in path of outer file

Open OliverJAsh opened this issue 8 years ago • 2 comments

Given module foo/a.ts and bar/b.ts, if I want to import the latter in the former, this plugin would generate:

import { whatever } from './../bar/b.ts'

I would like the option to remove the leading . in this path

import { whatever } from '../bar/b.ts'

OliverJAsh avatar Nov 21 '16 11:11 OliverJAsh

It shouldn't be an option in my opinion, it should be the default. I never saw someone importing a file from a parent directory with ./...

SamVerschueren avatar Feb 16 '17 15:02 SamVerschueren

#47 does not seem to have fixed it. I am running 1.5.3, and I can still reproduce this issue, and I don't seem to be alone: https://github.com/soates/Auto-Import/pull/47#issuecomment-371547038

rehmsen avatar Sep 06 '18 07:09 rehmsen