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

[lsp-server] 🐞 Svelte: LSP stops working when event handler is added in template #2996

Closed
1 task done
zakkor opened this issue Jan 17, 2023 · 1 comment
Closed
1 task done
Labels
bug lsp-server graphql-language-service-server

Comments

@zakkor
Copy link

zakkor commented Jan 17, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

<script lang="ts">
  import type { FeaturedExpertFields } from '$houdini';
  import { fragment, graphql } from '$houdini';

  export let expert: FeaturedExpertFields;

  $: data = fragment(
    expert,
    graphql(`#graphql
      fragment FeaturedExpertFields on CoachProfile {
        id
        nam # Autocomplete and error reporting not working!
      }
    `)
  );
</script>

<a on:click={() => {}}>Hello world!</a>

Expected Behavior

<script lang="ts">
  import type { FeaturedExpertFields } from '$houdini';
  import { fragment, graphql } from '$houdini';

  export let expert: FeaturedExpertFields;

  $: data = fragment(
    expert,
    graphql(`#graphql
      fragment FeaturedExpertFields on CoachProfile {
        id
        nam # Autocomplete and error reporting here works perfectly!
      }
    `)
  );
</script>

<a>Hello world!</a>

Steps To Reproduce

As soon as the handler (any kind of handler, not just click) is added, LSP features stop working: 
 `on:click={() => {}}`

Environment

- LSP Server Version: latest
- OS: macOS 13.1
- LSP Client: vscode

Anything else?

No response

@zakkor zakkor added bug lsp-server graphql-language-service-server labels Jan 17, 2023
@zakkor zakkor changed the title [lsp-server] 🐞 Svelte LSP stops working when event handler is added in template [lsp-server] 🐞 Svelte: LSP stops working when event handler is added in template Jan 17, 2023
@acao
Copy link
Member

acao commented Jan 17, 2023

in terms of follow-up, I'm considering this a duplicate of #2836

@acao acao closed this as completed Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug lsp-server graphql-language-service-server
Projects
None yet
Development

No branches or pull requests

2 participants