Skip to content

Commit

Permalink
Fix listener requires
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Dec 19, 2023
1 parent 7883936 commit 1fee1f8
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/ruby_lsp/executor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def initialize_request(options)
end

semantic_tokens_provider = if enabled_features["semanticHighlighting"]
require_relative "listeners/semantic_highlighting"
require "ruby_lsp/listeners/semantic_highlighting"
Interface::SemanticTokensRegistrationOptions.new(
document_selector: { scheme: "file", language: "ruby" },
legend: Interface::SemanticTokensLegend.new(
Expand Down
3 changes: 1 addition & 2 deletions lib/ruby_lsp/requests/code_lens.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# typed: strict
# frozen_string_literal: true

require_relative "support/common"
require_relative "../listeners/code_lens"
require "ruby_lsp/listeners/code_lens"

require "shellwords"

Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lsp/requests/completion.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: strict
# frozen_string_literal: true

require_relative "../listeners/completion"
require "ruby_lsp/listeners/completion"

module RubyLsp
module Requests
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lsp/requests/definition.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: strict
# frozen_string_literal: true

require_relative "../listeners/definition"
require "ruby_lsp/listeners/definition"

module RubyLsp
module Requests
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lsp/requests/document_highlight.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: strict
# frozen_string_literal: true

require_relative "../listeners/document_highlight"
require "ruby_lsp/listeners/document_highlight"

module RubyLsp
module Requests
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lsp/requests/document_link.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: strict
# frozen_string_literal: true

require_relative "../listeners/document_link"
require "ruby_lsp/listeners/document_link"
require "ruby_lsp/requests/support/source_uri"

module RubyLsp
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lsp/requests/document_symbol.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: strict
# frozen_string_literal: true

require_relative "../listeners/document_symbol"
require "ruby_lsp/listeners/document_symbol"

module RubyLsp
module Requests
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lsp/requests/folding_ranges.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: strict
# frozen_string_literal: true

require_relative "../listeners/folding_ranges"
require "ruby_lsp/listeners/folding_ranges"

module RubyLsp
module Requests
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lsp/requests/hover.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: strict
# frozen_string_literal: true

require_relative "../listeners/hover"
require "ruby_lsp/listeners/hover"

module RubyLsp
module Requests
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lsp/requests/inlay_hints.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: strict
# frozen_string_literal: true

require_relative "../listeners/inlay_hints"
require "ruby_lsp/listeners/inlay_hints"

module RubyLsp
module Requests
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lsp/requests/semantic_highlighting.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: strict
# frozen_string_literal: true

require_relative "../listeners/semantic_highlighting"
require "ruby_lsp/listeners/semantic_highlighting"

module RubyLsp
module Requests
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lsp/requests/signature_help.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: strict
# frozen_string_literal: true

require_relative "../listeners/signature_help"
require "ruby_lsp/listeners/signature_help"

module RubyLsp
module Requests
Expand Down

0 comments on commit 1fee1f8

Please sign in to comment.