Skip to content

Releases: sveltejs/language-tools

104.0.0

13 Jan 14:38
f561e2c
Compare
Choose a tag to compare
  • (feat) add support for semantic tokens for TypeScript users. This is enabled by default and adds semantic highlighting to your theme, if it supports it. You can disable this through the extension options (svelte.plugin.typescript.semanticTokens.enable) if you don't like it or it hurts the performance of your IDE. (#71)
  • (feat) better diagnostics (#753, #718)
  • (feat) add "Extract Component" command to context menu (#187)
  • (feat) bump prettier + make some prettier options configurable (#451 , #721)
  • (feat) expose the language server via VS Code's language client for experiments. This is considered private API, so use at your own risk! (#725)
  • (fix) add prefix/suffix to rename (#755)

BREAKING CHANGE

The bump to prettier-plugin-svelte 2.1.0 means that your code is now formatted differently if you do not have prettier-plugin-svelte in your project's node_modules. Read the changelog for all the changes.

103.0.0

08 Jan 14:08
c8718b3
Compare
Choose a tag to compare
  • (feat) if VS Code user disabled auto import suggestions in their config, don't show them (#695)
  • (feat) add sapper:prefetch attribute (#581)
  • (fix) no html hover info for Svelte components that have the same (case insensitive) name as a component (#711)
  • (fix) better autocompletion for global css vars. By making the label contain the var-part, it will show up more likely for users. (#521)
  • (fix) remove wrong import type autocompletions (#687)
  • (fix) comma operator in {@debug ..} tag (#739)
  • (fix) don't transform properties of interfaces/types/classes that start with a $ (#691)
  • (fix) add path svg and as attribute (#745) (#741)
  • (fix) update capture attribute (#728)
  • (fix) more robust syntax highlighting (#743)

BREAKING CHANGES

  • Bump to new language server protocol version 3.16 with corresponding types. Also bump vscode-languageserver/languageclient. The VS Code extension now requires a minimum version of 1.52.0 (#171)

102.8.0

11 Dec 13:58
4862c8d
Compare
Choose a tag to compare
  • (feat) restart language server when tsconfig/jsconfig changed
  • (feat) prettier/emmet VS Code setting updates are now reflected in the LSP (#709)
  • (feat) option to disable emmet for html/css (#708, #677)
  • (fix) only search for imports to update when ts/js/svelte/json file paths changed
  • (fix) add part attribute (#703)
  • (fix) Fall back to any-type when a prop has no fallback value in JS (#697)
  • (fix) Transform if-blocks to ternaries. This way the TypeScript control flow will be broken in less instances of nested if-blocks (#619)

102.7.0

04 Dec 13:49
bed66a1
Compare
Choose a tag to compare
  • (feat) imports now adhere to your ts/js module-ending/quote-style user preferences (#681)
  • (fix) syntax highlighting for each/await when there is a variable that starts with as/then (#692)
  • (fix) syntax highlighting inside template (#694)

102.6.0

25 Nov 10:10
e72c8c4
Compare
Choose a tag to compare
  • (feat) brand new syntax highlighting grammar which gives more fine granular options to color Svelte specific syntax. See here for how to adjust the colors, if you don't like some of the colors your theme chooses. (#657)
  • (fix) import completion: Insert inside script when it's not the first import and module script present (#660)
  • (fix) handle negative lines in mapper (#666)
  • (fix) event handler typing (#672)
  • (fix) make <any>variable usage possible by transform it to a variable as any expression (#477)
  • (fix) ignore html end-tag-like inside moustache (#309)
  • (fix) better tyings for svelte2tsx class generation function (#686)

102.5.1

05 Nov 20:05
69e4971
Compare
Choose a tag to compare
  • (fix) correct blanking of script/style (#655)

102.5.0

05 Nov 15:28
5e54e26
Compare
Choose a tag to compare
  • (feat) typescript signature help (#653)
  • (fix) add back export const, function and class being valid props so they can be used for bind:X (#649, #647)
  • (perf) intellisense should perform better on files with large script/style tags now (#654)

102.4.0

30 Oct 15:39
d412d37
Compare
Choose a tag to compare
  • (feat) JSDoc support: Autocompletion, hover info (#572)
  • (feat) Improved Pug syntax highlighting (#295, #106)
  • (feat) When having a tsconfig.json, newly created TS/JS files within project scope are now known directly and not only after a first import to Svelte files (#639)
  • (fix) Correct rename settings (#640)
  • (fix) Relax svelte2tsx typing to prevent "cannot read property $on of unknown" errors when using TS and importing untyped library components (85c7e94)
  • (fix) deal with ranges with swapped start/end (829cf87)
  • (fix) Bump HTML language service, removes duplicated autocompletion suggestions and improves parsing (#547)

102.3.0

22 Oct 07:56
68c187c
Compare
Choose a tag to compare
  • (feat) Jsdoc template completion (#607, #572)
  • (feat) Selection range (#556)
  • (fix) Broken link to "Using with preprocessors" (#609)
  • (fix) Filter out invalid class name chars (#613)
  • (fix) Handle $$slots with dashed-name (#617)
  • (fix) Improve on:event autocompletion (#621)
  • (fix) Props/Events doc: extract last leading multiline comment instead of first; strip typedef (#612)
  • (fix) correct syntax highlighting when there are numbers in the attribute name (#625)
  • (fix) add missing attributes intermediate, ismap, allowpaymentrequest (#628)

102.2.0

15 Oct 05:42
9356897
Compare
Choose a tag to compare
  • (feat) adhere to vscode emmet config (#591)
  • (fix) syntax highlighting for namespaced svelte components (#599)
  • (fix) turn off intellisense for stylus because it would give wrong results (#590)
  • (fix) now within name=value only name is highlighted as a attribute name color (#595)
  • (fix) getDefinitions falls back to Location if LocationLink is not supported (#592)
  • (fix) add missing events to autocomplete (#545)
  • (fix) format files within node_modules, too (#604)
  • (chore) bump prettier plugin to 1.4.1 (#606)