svelte-intellij icon indicating copy to clipboard operation
svelte-intellij copied to clipboard

Auto Imports for TypeScript Components do not respect IDE Code Style Setting: Use paths relative to tsconfig.json

Open dadiborn opened this issue 3 years ago • 1 comments

For components thats use lang="ts", auto imports of other (nested) components do not respect IDE Setting: Settings/Editor/Code Style/TypeScript : Use paths relative to tsconfig.json [unchecked]

And to get relative path for components thats use typescript, additionally to unchecked setting above, we need to uncheck similar for JavaScript: Settings/Editor/Code Style/JavaScript : Use paths relative to the project, resource or source roots

When both unchecked, auto import of .svelte components uses relative paths and works as expected

dadiborn avatar Nov 15 '21 02:11 dadiborn

Hello, can you provide sample reproduction and version of IDE and plugin used? This should work in newest versions

tomblachut avatar Dec 21 '21 20:12 tomblachut

Migrated to WEB-54246 Svelte plugin imports using .js extension on TypeScript blocks

tomblachut avatar Jul 04 '23 17:07 tomblachut