-
Notifications
You must be signed in to change notification settings - Fork 56
feat: add perl language support #79
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
base: main
Are you sure you want to change the base?
feat: add perl language support #79
Conversation
@microsoft-github-policy-service agree company="Cisco Systems, Inc." |
""" | ||
# Create a basic initialize params structure | ||
# This can be expanded with more specific settings if needed | ||
params = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you write this configuration to a separate json file in the same directory, and read from there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See other language server implementations for example
assert isinstance(result, list) | ||
# The exact assertions will depend on the actual response from the Perl Language Server | ||
# These are placeholder assertions that should be updated with actual expected values | ||
assert len(result) >= 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add actual expected values instead of placeholders?
|
||
assert isinstance(result, list) | ||
# The exact assertions will depend on the actual response from the Perl Language Server | ||
# These are placeholder assertions that should be updated with actual expected values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
Thanks a lot for your PR! Could you also add an entry in the README about PERL support? |
I also see that the unit test is failing, likely cause is that perl is not available in the test environment. My intention with multilspy is for it to be batteries-included - any new language support should ideally handle the downloading+setup of the lsp binary, unless it is not feasible in the scope of multilspy to do so. Could you please try to implement the setup_runtime_dependencies method in the perl language server class? If not feasible, the other option would be to add Perl to the github action/CI config. |
No description provided.