# typed: strict # frozen_string_literal: true # If YARP is in the bundle, we have to remove it from the $LOAD_PATH because it contains a default export named `prism` # that will conflict with the actual Prism gem yarp_require_paths = Gem.loaded_specs["yarp"]&.full_require_paths $LOAD_PATH.delete_if { |path| yarp_require_paths.include?(path) } if yarp_require_paths require "sorbet-runtime" # Set Bundler's UI level to silent as soon as possible to prevent any prints to STDOUT require "bundler" Bundler.ui.level = :silent require "uri" require "cgi" require "set" require "strscan" require "prism" require "prism/visitor" require "language_server-protocol" require "rbs" require "ruby-lsp" require "ruby_lsp/base_server" require "ruby_indexer/ruby_indexer" require "core_ext/uri" require "ruby_lsp/utils" require "ruby_lsp/static_docs" require "ruby_lsp/scope" require "ruby_lsp/global_state" require "ruby_lsp/server" require "ruby_lsp/type_inferrer" require "ruby_lsp/node_context" require "ruby_lsp/document" require "ruby_lsp/ruby_document" require "ruby_lsp/erb_document" require "ruby_lsp/rbs_document" require "ruby_lsp/store" require "ruby_lsp/addon" # Response builders require "ruby_lsp/response_builders/response_builder" require "ruby_lsp/response_builders/collection_response_builder" require "ruby_lsp/response_builders/document_symbol" require "ruby_lsp/response_builders/hover" require "ruby_lsp/response_builders/semantic_highlighting" require "ruby_lsp/response_builders/signature_help" # Request support require "ruby_lsp/requests/support/selection_range" require "ruby_lsp/requests/support/annotation" require "ruby_lsp/requests/support/sorbet" require "ruby_lsp/requests/support/common" require "ruby_lsp/requests/support/formatter" require "ruby_lsp/requests/support/rubocop_runner" require "ruby_lsp/requests/support/rubocop_formatter" require "ruby_lsp/requests/support/syntax_tree_formatter" # Requests require "ruby_lsp/requests/request" require "ruby_lsp/requests/code_action_resolve" require "ruby_lsp/requests/code_actions" require "ruby_lsp/requests/code_lens" require "ruby_lsp/requests/completion_resolve" require "ruby_lsp/requests/completion" require "ruby_lsp/requests/definition" require "ruby_lsp/requests/diagnostics" require "ruby_lsp/requests/document_highlight" require "ruby_lsp/requests/document_link" require "ruby_lsp/requests/document_symbol" require "ruby_lsp/requests/folding_ranges" require "ruby_lsp/requests/formatting" require "ruby_lsp/requests/hover" require "ruby_lsp/requests/inlay_hints" require "ruby_lsp/requests/on_type_formatting" require "ruby_lsp/requests/prepare_type_hierarchy" require "ruby_lsp/requests/range_formatting" require "ruby_lsp/requests/references" require "ruby_lsp/requests/rename" require "ruby_lsp/requests/selection_ranges" require "ruby_lsp/requests/semantic_highlighting" require "ruby_lsp/requests/show_syntax_tree" require "ruby_lsp/requests/signature_help" require "ruby_lsp/requests/type_hierarchy_supertypes" require "ruby_lsp/requests/workspace_symbol"