class RubyLsp::Requests::DocumentSymbol
The document symbol request informs the editor of all the important symbols, such as classes, variables, and methods, defined in a file. With this information, the editor can populate breadcrumbs, file outline and allow for fuzzy symbol searches.
In VS Code, fuzzy symbol search can be accessed by opening the command palette and inserting an @
symbol.
Example¶ ↑
class Person # --> document symbol: class attr_reader :age # --> document symbol: field def initialize @age = 0 # --> document symbol: variable end def age # --> document symbol: method end end
Public Class Methods
new(uri, dispatcher)
Calls superclass method