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
refactor: adding wrapper for metals server configuration #4845
Conversation
2480170
to
181ba66
Compare
19423ef
to
3055e72
Compare
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.
Really great jobs with documenting all of those parameters, surely @ckipp01 will be in seventh heaven while seeing this :D
metals/src/main/scala/scala/meta/internal/metals/MetalsServerConfiguration.scala
Outdated
Show resolved
Hide resolved
metals/src/main/scala/scala/meta/internal/metals/MetalsServerConfiguration.scala
Outdated
Show resolved
Hide resolved
bae7573
to
834591a
Compare
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.
Thanks for working on this! I am not sure about the name inputs, but I can't think of anything better.
metals/src/main/scala/scala/meta/internal/metals/MetalsLspService.scala
Outdated
Show resolved
Hide resolved
metals/src/main/scala/scala/meta/internal/metals/MetalsLspService.scala
Outdated
Show resolved
Hide resolved
834591a
to
9293cfd
Compare
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.
Excellent work 🚀
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.
Great work!
Context: A number of parameters must passed to
MetalsLanguageServer
andMetalsLspService
to allow for custom behaviour needed for testing.Previously: All those parameters were passed as arguments to both
MetalsLanguageServer
andMetalsLspService
constructors.Now: The arguments are wrapped in a configuration class.
closes #4789