All notable changes to the "svelte-intellisense" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
- [Fixed] Issue with "Request textDocument/hover failed with message: Cannot read property 'helpers' of undefined" and similar issues
- [Added] Support for locations in Svelte v3.
- [Added] Support for events in Svelte v3.
- [Added] Partial support for Svelte v3 - syntax, data, methods, components, slots.
- [Added] Support for aliases in rollup and webpack
- [Added] Hover and definition (go to source file) for different self and imported components metadata
- [Fixed] Fixed some crashes of language server completion requests when medatadata of current document is not provided in some cases
- [Fixed] Update sveltedoc-parser library to 1.1.5 version with crash-fixes
- [Added] Auto-completion for component assign properties
- [Added] Auto-completion for HTML tags attribute assign
- [Added] Sugestions for data properties that have
@type
attribute with union constant types, like{('plain'|'primary'|'secondary')}
- [Added] Definition (go to source file) for component tag in template
- [Added] Definition (go to source file) for imported component and import section in script
- [Fixed] Issue #8: Your extension is affected by event stream and have been blocked
- [Fixed] Issue #2 with
:catch
and:then
svelte syntax auto-insertion - [Fixed] Issue #3 with
ref:
,transition:
,in:
,out:
,use:
auto-insertion when user press : - [Fixed] Improved auto-completion for
this.
- [Fixed] Issue with auto-completion in
this.refs.<>
- [Fixed] Issue with providing completion item of
ref:
from markup into script block, now provided a correct completion itemrefs.
with proper description - [Added] Auto-completion for single property getter
this.get().<>
- [Added] Auto-completion for data and computed properties and helper methods in
{#if _}
,{:elseif _}
,{#each _}
,{#await _}
statements - [Added] Auto-completion for bind target property in
bind:...=<>
syntax in markup
- [Fixed] Auto-completion for nested blocks
- [Added] Hover for component tag documentation in template
- [Added] Hover for imported component documentation in script
- [Added] Auto-completions for template:
- Special svelte components syntax -
svelte:window
,svelte:document
,svelte:head
,svelte:component
. - Special svelte tags syntax -
@debug
,@html
. - Reference syntax for html elements -
ref:...
. - Standard bindings for html elements -
bind:...
. - Class syntax for html elements -
class:...
. - Accessible data, computed, helpers in
{}
. - Accessible data, computed, methods in attribute values like
on:event="..."
. - Accessible transitions for html elements -
transition:...
,in:...
,out:...
. - Accessible actions for html elements -
use:...
. - Accessible bindings for component tags -
<Button bind:...
. - Accessible events for component tags -
<Button on:...
. - Accessible props for component tags -
<Button foo bar=...
. - Accessible slots inside component tags -
<div slot=...
.
- Special svelte components syntax -
- [Added] Auto-completions for script:
- Default svelte component methods -
get
,set
,fire
. - Component references -
this.refs.
. - Own component methods.
- Component state setter properties -
this.set({})
. - Component state properties for getter -
const { prop } = this.get()
. - Component computed property dependecies -
computedProp: ({prop}) => ...
. - Scripts path in
import
statement.
- Default svelte component methods -
- [Added] Auto-completions for styles:
ref:*
selector
- [Fixed] Issue with hover spamming output
- [Added] Auto-completions:
- Path for importing components with support of node_modules search
- svelte language items
- own component data, computed etc.
- [Added] Hover information about imported component