Module: Kapusta::LSP::Formatting
- Defined in:
- lib/kapusta/lsp/formatting.rb
Class Method Summary collapse
Class Method Details
.full_range(text) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/kapusta/lsp/formatting.rb', line 19 def full_range(text) lines = text.split("\n", -1) end_line = [lines.length - 1, 0].max end_character = lines.last ? lines.last.length : 0 { start: { line: 0, character: 0 }, end: { line: end_line, character: end_character } } end |