Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 3, 2025

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.

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

@krassowski krassowski 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.

@krassowski krassowski changed the title Do not call str.splitlines() twice in the same function. fixes #627 Do not call str.splitlines() twice in the same function. Apr 3, 2025
@krassowski krassowski merged commit 04fa3e5 into python-lsp:develop Apr 3, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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