Skip to content

Commit

Permalink
[vscode-graphql] fix Svelte support (#2861)
Browse files Browse the repository at this point in the history
* fix: LSP server is not registered for svelte files
* fix: status bar icon is not shown for svelte files
* fix: svelte missing from default supported extensions
  • Loading branch information
aloker authored Nov 3, 2022
1 parent f4bac35 commit bdd1bd0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/great-mayflies-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'graphql-language-service-server': patch
'vscode-graphql': patch
---

add missing pieces for svelte language support
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const DEFAULT_SUPPORTED_EXTENSIONS = [
'.jsx',
'.tsx',
'.vue',
'.svelte',
];

/**
Expand Down
1 change: 1 addition & 0 deletions packages/vscode-graphql/src/apis/statusBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const statusBarActivationLanguageIds = [
'typescript',
'typescriptreact',
'vue',
'svelte',
];

export const createStatusBar = () => {
Expand Down
1 change: 1 addition & 0 deletions packages/vscode-graphql/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export async function activate(context: ExtensionContext) {
{ scheme: 'file', language: 'typescript' },
{ scheme: 'file', language: 'typescriptreact' },
{ scheme: 'file', language: 'vue' },
{ scheme: 'file', language: 'svelte' },
],
synchronize: {
// TODO: This should include any referenced graphql files inside the graphql-config
Expand Down

0 comments on commit bdd1bd0

Please sign in to comment.