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

fix: robust way of getting a function signature #24

Merged
merged 3 commits into from
Sep 12, 2024

Conversation

Gotfrid
Copy link
Member

@Gotfrid Gotfrid commented Sep 12, 2024

Issue #23

Description

Current implementation assumes that the function signature
will always go on one line. As pointed out in #23, this is not
always the case.

To improve the process, I suggest to explicitly extract
function signature by taking "anything that is not the body".

Definition of Done

  • The change is thoroughly documented.
  • The CI passes (R CMD check, linter, unit tests, spelling).
  • Any generated files have been updated (e.g. .Rd files with roxygen2::roxygenise())

@Gotfrid Gotfrid linked an issue Sep 12, 2024 that may be closed by this pull request
1 task
@radbasa
Copy link
Collaborator

radbasa commented Sep 12, 2024

Please update DESCRIPTION and NEWS

Copy link
Collaborator

@radbasa radbasa left a comment

Choose a reason for hiding this comment

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

LGTM. Tested in VSCode.

@radbasa radbasa merged commit 0215531 into main Sep 12, 2024
5 checks passed
@radbasa radbasa deleted the 23-bug-functions-with-long-signatures-break-boxlsp branch September 12, 2024 09:32
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.

[Bug]: functions with long signatures break box.lsp
2 participants