tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
482 stars 38 forks source link

Add parsing-only support for typescript #154

Closed anstarovoyt closed 3 years ago

anstarovoyt commented 4 years ago

Added parsing support for typescript in script tags with lang="ts"

<script lang="ts">
 export let test: number;
 </script>

There are some limitations of the implementation:

  1. It uses WS internal TypeScript engine instead of TypeScript service integration 2. Auto-imports don't work (only imports by quick fixes) // I will take a look, most likely it can be easily fixed fixed
  2. It uses TypeScript as the content language unlike regular script tags that use an extension of js language SvelteJSLanguage
anstarovoyt commented 3 years ago

32 can be closed with this, right? LSP support is not really urgent now I think.

@tomblachut I am 100% sure that we still need to provide the integration with ts service but yes, it isn't a critical task for now.

tomblachut commented 3 years ago

Okay