tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
485 stars 38 forks source link

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

Closed dadiborn closed 1 year ago

dadiborn commented 2 years ago

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

tomblachut commented 2 years ago

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

tomblachut commented 1 year ago

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