class RubyLsp::Requests::SelectionRanges

The selection ranges request informs the editor of ranges that the user may want to select based on the location(s) of their cursor(s).

Trigger this request with: Ctrl + Shift + -> or Ctrl + Shift + <-

Note that if using VSCode Neovim, you will need to be in Insert mode for this to work correctly.

Example

def foo # --> The next selection range encompasses the entire method definition.
  puts "Hello, world!" # --> Cursor is on this line
end

Public Class Methods

new(document)

Calls superclass method

Public Instance Methods

perform()