Goal VScode autoimports my imports as absolute path except the file is in same directory.
Example Assuming we have ComponentA and ComponentB in the same directory, but a service in a another directory. Then I want this result (angular code):
import { ComponentB } from "./ComponentB"
import { MyService } from "src/app/services/MyService"
@Component({/*...*/})
export class ComponentA {}
From what I’ve seen this isn’t possible with the default VScode settings options:
"relative" to the file location. "non-relative" based on the baseUrl configured in your jsconfig.json / tsconfig.json. "auto" to infer the shortest path type.
Is there an option I overlook?
Is there a VScode addon to tackle this case?