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-graphql-syntax] autocompletion in svelte files still not working in version 0.8.1 #2857

Closed
1 task done
aloker opened this issue Nov 3, 2022 · 0 comments · Fixed by #2861
Closed
1 task done

Comments

@aloker
Copy link
Contributor

aloker commented Nov 3, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Description

The lsp-server does not provide autocompletion for inline GraphQL snippets inside .svelte files.
vscode-graphql-svelte

It works fine in .ts files, though.
vscode-graphql-ts

Version 0.8.1 of the VSCode plugin is supposed to add svelte support (see #2829)
The extension should provide intellisense in the <script> section of .svelte files.

I've created a minimal repro: https://github.com/aloker/vscode-graphql-test

Output channel log:

Starting inspector on localhost:6009 failed: address already in use
3.11.2022, 12:59:28 [3] (pid: 19740) graphql-language-service-usage-logs: {"type":"usage","messageType":"initialize"}
GraphQL LSP restarted
3.11.2022, 12:59:28 [1] (pid: 19740) graphql-language-service-usage-logs: invalid/unknown file in graphql config documents entry:
 '*.{svelte,ts}'
3.11.2022, 12:59:28 [1] (pid: 19740) graphql-language-service-usage-logs: Error: 
      Unable to find any GraphQL type definitions for the following pointers:
        
          - *.{svelte,ts}
3.11.2022, 12:59:28 [1] (pid: 19740) graphql-language-service-usage-logs: invalid/unknown file in graphql config documents entry:
 '*.{svelte,ts}'
3.11.2022, 12:59:28 [1] (pid: 19740) graphql-language-service-usage-logs: Error: 
      Unable to find any GraphQL type definitions for the following pointers:
        
          - *.{svelte,ts}

Note that there's no output in the logs when I edit the svelte file, even if I add syntax errors. When I add syntax errors to the .ts file, they get printed in the log.

Environment

VSCode: 
  Version: 1.73.0 (user setup)
  Commit: 8fa188b2b301d36553cbc9ce1b0a146ccb93351f
  Date: 2022-11-01T15:34:06.111Z
  Electron: 19.0.17
  Chromium: 102.0.5005.167
  Node.js: 16.14.2
  V8: 10.2.154.15-electron.0
  OS: Windows_NT x64 10.0.19043
  Sandboxed: No

Relevant plugins:
  GraphQL: Language Feature Support: v0.8.1
  GraphQL: Syntax Highlighting: v1.0.4

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant