Skip to content

Improve Intellisense Implementation #665

Closed
@Enteleform

Description

@Enteleform

Is your feature request related to a problem? Please describe.

  • VSCode's Rename Symbol only works within a single .svelte file
  • component attributes do not have autocompletion or type information

 

Example:

Counter.svelte

<script lang="ts">
  export let count = 0
</script>

index.svelte

<!-- neither of these will update when using VSCode's `Rename Symbol` on the `count` definition @ Counter.svelte -->

<Counter count={5}/>  

<Counter count={"7"}/>  <!-- should result in error "Type 'string' is not assignable to type 'number'. ts(2322)" -->

 

Describe the solution you'd like

  • Rename Symbol should update all references within a project
  • component attributes should have autocompletion and type information

 

How important is this feature to you?

Absolutely essential. Not being able to use the code intelligence features of TypeScript + VSCode detracts greatly from the development experience and nullifies critical debugging safeguards which are one of the main reasons to use TypeScript in the first place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions