utilities

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDocumentChange

func ApplyDocumentChange(change protocol.DocumentChange) error

ApplyDocumentChange applies a DocumentChange (create/rename/delete operations)

func ApplyTextEdit

func ApplyTextEdit(lines []string, edit protocol.TextEdit, lineEnding string) ([]string, error)

ApplyTextEdit applies a single text edit to a set of lines

func ApplyTextEdits

func ApplyTextEdits(uri protocol.DocumentUri, edits []protocol.TextEdit) error

ApplyTextEdits applies a sequence of text edits to a file specified by URI

func ApplyWorkspaceEdit

func ApplyWorkspaceEdit(edit protocol.WorkspaceEdit) error

ApplyWorkspaceEdit applies the given WorkspaceEdit to the filesystem

func RangesOverlap

func RangesOverlap(r1, r2 protocol.Range) bool

RangesOverlap checks if two ranges overlap in position

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL