svelte-intellij
svelte-intellij copied to clipboard
SvelteKit
SvelteKit went into public beta. This issue is meant to track improvements on intellij plugin side.
- [x]
sveltekit:prefetch
,sveltekit:noscroll
,rel=external
– completions, do not highlight as not allowed - [ ]
load
function- [x] mark as implicitly used
- [ ] completions
- [ ] (?) suggest and validate prop types defined on component and returned from load function
- [ ]
hydrate
,prerender
,router
,ssr
variables- [x] mark as implicitly used
- [ ] completions
- [ ] hooks – mark as implicitly used (
handle
,getSession
,serverFetch
) - [ ] api functions – mark as implicitly used (
get
,del
, etc) - [ ] project generator based on
create-svelte
- [ ] mark
.svelte
subdirectories as library roots or excluded - [x] file references to
static
directory – suppress inspection ~or contribute references~ - [ ] Events on window
- [x] Correct highlighting of
$app/*
paths
Update:
Typescript path alias / resolve does not work for me as well. It could also be a vite issue, but I'm not sure
Is addressing import errors on modules like $app/store
on the agenda as well? It makes using SvelteKit in IntelliJ kind of frustrating sometimes.
@miosenpai yes, sure. It's missing in checklist and I'll amend that.
@miosenpai Workaround is to copy ambient-modules.d.ts
(you can find it with Shift+Shift
popup) and paste it into src/global.d.ts
Private components are not visible for import – https://kit.svelte.dev/docs#routing-private-modules
I would expect <PrivateComponent />
to give me an auto import like import PrivateComponent from './_PrivateComponent'
@tomblachut, hi!
Are there any plans to develop the plugin? In the current version to use it with SvelteKit, very difficult, almost nothing is indexed and it seems the only option is to use VSCode :(