from typing import List


def get_lines(ls, params) -> List[str]:
    """Get all text lines in the current document."""
    text_doc = ls.workspace.get_document(params.text_document.uri)
    source = text_doc.source
    return source.splitlines()