From 96cfc0ed133d4e4614c49463e8cae65afa65c55c Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Sat, 6 May 2023 14:56:11 -0700 Subject: [PATCH] ignore/types: add 'graphql' type GraphQL file extensions: .graphql and .graphqls (schema) We could also add `.gql`, but perhaps it's less correct to do so. We'll start conservatively here, and we can always add `.gql` later. Closes #2439, Closes #2508 --- CHANGELOG.md | 2 +- crates/ignore/src/default_types.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 055ce132e..58c35064c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ Unreleased changes. Release notes have not yet been written. Feature enhancements: -* Added or improved file type filtering for Fuchsia +* Added or improved file type filtering for Fuchsia, GraphQL Bug fixes: diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 0fedf136f..4c1d85510 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -85,6 +85,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ("gn", &["*.gn", "*.gni"]), ("go", &["*.go"]), ("gradle", &["*.gradle"]), + ("graphql", &["*.graphql", "*.graphqls"]), ("groovy", &["*.groovy", "*.gradle"]), ("gzip", &["*.gz", "*.tgz"]), ("h", &["*.h", "*.hh", "*.hpp"]),