File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed
lib/ruby_lsp/ruby_lsp_rails Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -10,22 +10,16 @@ module Rails
10
10
# definition of the symbol under the cursor.
11
11
#
12
12
# Currently supported targets:
13
- # - Classes
14
- # - Modules
15
- # - Constants
16
- # - Require paths
17
- # - Methods invoked on self only
13
+ # - Callbacks
18
14
#
19
15
# # Example
20
16
#
21
17
# ```ruby
22
- # require "some_gem/file" # <- Request go to definition on this string will take you to the file
23
- # Product.new # <- Request go to definition on this class name will take you to its declaration.
18
+ # before_action :foo # <- Request go to definition on this symbol will take you to the method
24
19
# ```
25
20
class Definition
26
21
extend T ::Sig
27
22
include Requests ::Support ::Common
28
- include ActiveSupportTestCaseHelper
29
23
include Support ::Callbacks
30
24
31
25
sig do
Original file line number Diff line number Diff line change @@ -8,11 +8,6 @@ module Rails
8
8
class DefinitionTest < ActiveSupport ::TestCase
9
9
setup do
10
10
@message_queue = Thread ::Queue . new
11
-
12
- # Build the Rails documents index ahead of time
13
- capture_io do
14
- Support ::RailsDocumentClient . send ( :search_index )
15
- end
16
11
end
17
12
18
13
def teardown
You can’t perform that action at this time.
0 commit comments