Skip to content

Conversation

@fukanchik
Copy link
Contributor

The better solution might be to have a proper text editing framework, but since the code itself in workspace.py is very simple I'm proposing just this simple solution.

@krassowskikrassowski linked an issue Apr 3, 2025 that may be closed by this pull request
Copy link
Member

@krassowskikrassowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, also takes away a worry about accidentally getting the index wrong.

@krassowskikrassowski changed the title Do not call str.splitlines() twice in the same function. fixes #627Do not call str.splitlines() twice in the same function.Apr 3, 2025
@krassowskikrassowski merged commit 04fa3e5 into python-lsp:developApr 3, 2025
10 checks passed
@ccordoba12ccordoba12 added this to the v1.12.3 milestone May 12, 2025
@ccordoba12ccordoba12 added the bug Something isn't working label May 12, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugSomething isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not call str.splitlines() twice in the same function

3 participants

@fukanchik@krassowski@ccordoba12