soates / Auto-Import

vscode extension that will automatically finds, parses and provides code actions for all available imports. Only currently works with files in your folder and TypeScript.
MIT License
165 stars 62 forks source link

Option to remove leading . in path of outer file #37

Open OliverJAsh opened 8 years ago

OliverJAsh commented 8 years ago

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'
SamVerschueren commented 7 years ago

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 ./...

rehmsen commented 6 years ago

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