From 70625e1e3ada44e1ed0ce2377313c6c191fbef92 Mon Sep 17 00:00:00 2001 From: Rikki Date: Sun, 20 Sep 2020 13:44:50 -0400 Subject: [PATCH] fix: re-introduce allowed extensions --- .../graphql-language-service-server/src/parseDocument.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/graphql-language-service-server/src/parseDocument.ts b/packages/graphql-language-service-server/src/parseDocument.ts index 7190119c354..3eb12d9a3f9 100644 --- a/packages/graphql-language-service-server/src/parseDocument.ts +++ b/packages/graphql-language-service-server/src/parseDocument.ts @@ -6,7 +6,11 @@ import { findGraphQLTags, DEFAULT_TAGS } from './findGraphQLTags'; export const DEFAULT_SUPPORTED_EXTENSIONS = ['.js', '.ts', '.jsx', '.tsx']; -export const DEFAULT_SUPPORTED_GRAPHQL_EXTENSIONS = ['.graphql']; +export const DEFAULT_SUPPORTED_GRAPHQL_EXTENSIONS = [ + '.graphql', + '.graphqls', + '.gql', +]; /** * Helper functions to perform requested services from client/server.