Releases: sveltejs/language-tools
Releases · sveltejs/language-tools
101.5.0
- Add note about uninstalling the old Svelte extension #372 - do this if you haven't already.
- SvelteAction typing fix: allows void as return value #365
- Reintroduce Svelte tag completions, add snippets to completions #364, #368
- Fix imports done through code actions #343
- Split regex to avoid heavy computation when there are comments at the beginning of a file #337
- Basic Pug syntax highlighting #371
- Fix/cleanup
style
attribute typing #345
101.4.0
- Support for Svelte Native (#351), also fixes namespace clashing with React types (#228)
- Exported functions/consts/classes of a component are now visible on the components type (#307)
- Reactive assignments no longer implicitely have type any (#360)
- Fix 'Variable is used before being assigned' error when using bind:this in strict mode (#338)
- Fix type checking getting "disabled" when using directives (#352)
- Fix dblclick event type (#357)
- Add resize event to svelte:window (#348)
- Editor syntax highlighting: Svelte components in template now marked as
support.class.component.svelte
(#321)
101.3.0
101.2.0
101.1.1
- Support optional chaining and nullish coalescing (introduced in
svelte 3.24
) #274 - Possibility to add component documentation #280
- Support default languages (introduced in
svelte-preprocess 4.0
) #291 - Fix incorrect semicolon error before dollar label #289
- Initialized props (
export let bla = 'blubb';
) are marked as optional now #276
101.0.0
- New "Extract into component" refactoring (simple version) #262
- Better typing for union types in reactive assignments and props #214
- Props with default values are now marked as optional #276
- Docs restructuring, FAQ/Troubleshooting for TypeScript #275
- Hover info now contains docs #281
- More bindings for
svelte:window
#265 - Grave accent wrapping #264
BREAKING CHANGE
Adjusted svelte.config.js interface #270
If you want to pass svelte compiler options to the svelte language server (which you probably never will/need to do), you now need to pass them inside compilerOptions
. Note that preprocess
stays where it was before, so you are most likely not affected by this change.
Before:
svelte.config.js
:
module.exports = {
dev: true,
preprocess: ...
};
After:
svelte.config.js
:
module.exports = {
compilerOptions: {
dev: true
},
preprocess: ...
};
This was done as an attempt to harmonize/standarize svelte.config.js
and open up its usage to other tools.
100.1.0
First production release
This release marks the first official prod release of the Svelte for VSCode extension. After a few months in beta and valuable feedback and help from the community, we feel now is the time. Thanks to everyone who helped us find and fix issues!