Skip to content

add additional extensions, clean #569

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

Merged
merged 6 commits into from
Nov 24, 2021

Conversation

vanjabucic
Copy link
Contributor

Linked issue: #567

@lukaszsamson
Copy link
Collaborator

@vanjabucic please see into the failed tests

@lukaszsamson
Copy link
Collaborator

Looks good. Can you add some tests?

@lukaszsamson
Copy link
Collaborator

@vanjabucic are you still interested in finishing this PR?

@vanjabucic
Copy link
Contributor Author

Not sure how to write tests for such a minor code shuffle ...

@lukaszsamson
Copy link
Collaborator

Not sure how to write tests for such a minor code shuffle ...

It's a new feature off by default. This means not many people will be actively testing it and having no test coverage means more maintenance pressure for the team.
There are tests for some init scenarios. Please add another one what makes sure that additional extensions are properly parsed and added to server state.

@vanjabucic
Copy link
Contributor Author

The way extension handling is/has been done means that the state remains unaffected. Extensions are hard-coded, sent to server via RPC, and checked against inline. Extensions are never parsed and added to the server state. Could not find a way to test server state because of that. (should extension list be carried in the server state? that can be done if desired)

What I did was to add a test that verifies that a non-standard-extension file will trigger a build when changed. That should cover it when combined with other existing tests that work on hard-coded file extensions.

Take a look and tell me if that is enough or on the right track.

@lukaszsamson lukaszsamson merged commit 07209bd into elixir-lsp:master Nov 24, 2021
@lukaszsamson
Copy link
Collaborator

Thanks

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.

2 participants