Skip to content

Commit

Permalink
fix: re-introduce allowed extensions (#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Sep 20, 2020
1 parent de0021b commit eedd575
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/graphql-language-service-server/src/parseDocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@ import { findGraphQLTags, DEFAULT_TAGS } from './findGraphQLTags';

export const DEFAULT_SUPPORTED_EXTENSIONS = ['.js', '.ts', '.jsx', '.tsx'];

export const DEFAULT_SUPPORTED_GRAPHQL_EXTENSIONS = ['.graphql'];
/**
* .graphql is the officially reccomended extension for graphql files
*
* .gql and .graphqls are included for compatibility for commonly used extensions
*
* GQL is a registered trademark of Google, and refers to Google Query Language.
* GraphQL Foundation does *not* recommend using this extension or acronym for
* referring to GraphQL.
*/
export const DEFAULT_SUPPORTED_GRAPHQL_EXTENSIONS = [
'.graphql',
'.graphqls',
'.gql',
];

/**
* Helper functions to perform requested services from client/server.
Expand Down

0 comments on commit eedd575

Please sign in to comment.