8000 Do not call str.splitlines() twice in the same function · Issue #627 · python-lsp/python-lsp-server · GitHub
[go: up one dir, main page]

Skip to content
Do not call str.splitlines() twice in the same function #627
Closed
@fukanchik

Description

@fukanchik

Document.lines is a property which executes self.source.splitlines(True). It is used in apply_change and in word_at_position and in both cases called twice which is not necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0