Skip to main content
Go to Latest
function getText
import { getText } from "https://deno.land/x/denops_lsputil@v0.6.2/mod.ts";

Gets a range from the buffer.

0-based and columns are utf-16 offset. Only range.end.character is excluded.

If the range specification is incorrect, an LSPRangeError is thrown.

Parameters

denops: Denops
bufnr: number
range: LSP.Range

Returns

Promise<string[]>