diff --git a/compiler/crates/relay-lsp/src/folding_ranges/mod.rs b/compiler/crates/relay-lsp/src/folding_ranges/mod.rs index 45c8e0a0ab0c..2da456867332 100644 --- a/compiler/crates/relay-lsp/src/folding_ranges/mod.rs +++ b/compiler/crates/relay-lsp/src/folding_ranges/mod.rs @@ -1,18 +1,20 @@ +use std::collections::VecDeque; use std::path::Path; -use common::{Location, SourceLocationKey}; +use common::Location; +use common::SourceLocationKey; use extract_graphql::JavaScriptSourceFeature; -use graphql_syntax::{parse_executable_with_error_recovery, List, Selection}; -use lsp_types::{ - request::{FoldingRangeRequest, Request}, - FoldingRange, -}; -use std::collections::VecDeque; - -use crate::{ - location::transform_relay_location_to_lsp_location, GlobalState, LSPRuntimeError, - LSPRuntimeResult, -}; +use graphql_syntax::parse_executable_with_error_recovery; +use graphql_syntax::List; +use graphql_syntax::Selection; +use lsp_types::request::FoldingRangeRequest; +use lsp_types::request::Request; +use lsp_types::FoldingRange; + +use crate::location::transform_relay_location_to_lsp_location; +use crate::GlobalState; +use crate::LSPRuntimeError; +use crate::LSPRuntimeResult; /// Resolve a [`FoldingRangeRequest`] request to folding ranges pub fn on_get_folding_ranges(