VSCode does not detect vite-imagetools parameters
khromov opened this issue · comments
Stanislav Khromov commented
I have a SvelteKit project where I have added vite-imagetools like this in vite.config.ts
:
import { sveltekit } from '@sveltejs/kit/vite';
import type { UserConfig } from 'vite';
import { imagetools } from 'vite-imagetools';
const config: UserConfig = {
plugins: [
imagetools(),
sveltekit(),
]
};
export default config;
Building the project works correctly, but VS Code complains as soon as I add a query param:
The same issue shows if I add ?format=webp
and also if I use direct paths (without $lib alias)
Is there some way to add the annotations to VS Code?
Michael Caviness commented
There are several strategies in #160 that should help you.
Stanislav Khromov commented
Thanks! I saw that there is also #532 on the same topic!
Jonas Kruckenberg commented
closing as duplicate of #160