Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode suggestions are too broad with Svelte extension #2168

Closed
bitkidd opened this issue Sep 25, 2023 · 2 comments
Closed

VSCode suggestions are too broad with Svelte extension #2168

bitkidd opened this issue Sep 25, 2023 · 2 comments
Labels
bug Something isn't working limitation Constraints of the existing architecture make this hard to fix

Comments

@bitkidd
Copy link

bitkidd commented Sep 25, 2023

Describe the bug

For some reason Svelte to VSCode extension does not provide optimal TS experience in terms of suggestions, sometimes I get too many of them, sometimes none. I narrowed down the issue to round braces, so if some value is inside of them, suggestions do not work, if not, work okay.

Reproduction

Here suggestions do not work for me.

<script lang="ts">
  const someFunction = (input: string) => input

  export let data: { title: string; excerpt?: string } | null = null
</script>

{#if data}
  <h1>{someFunction(data.title)}</h1> <!-- Here suggestions after . do not work -->
  <p>{data.excerpt}</p>
{/if}

Expected behaviour

Suggestions that are strictly tied to the data type provided in script tag.

System Info

  • OS: MacOS 13.6
  • IDE: VSCode 1.82.2

Which package is the issue about?

Svelte for VS Code extension

Additional Information, eg. Screenshots

Screenshot 2023-09-25 at 15 05 59

@bitkidd bitkidd added the bug Something isn't working label Sep 25, 2023
@jasonlyu123
Copy link
Member

#1302 (comment)

@jasonlyu123 jasonlyu123 added the limitation Constraints of the existing architecture make this hard to fix label Sep 25, 2023
@dummdidumm
Copy link
Member

Closing as duplicate of #1302

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working limitation Constraints of the existing architecture make this hard to fix
Projects
None yet
Development

No branches or pull requests

3 participants