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

cmd/languageserver: Log path & version at startup #1326

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

charlieegan3
Copy link
Member

Fixes #1324

Comment on lines +38 to +41
v := version.Version
if v == "" {
v = "Unknown"
}
Copy link
Member

Choose a reason for hiding this comment

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

Do you know cmp.Or? We could write this as

Suggested change
v := version.Version
if v == "" {
v = "Unknown"
}
v := cmp.Or(version.Version, "Unknown")

Copy link
Member

Choose a reason for hiding this comment

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

Oh, nice! Had no idea that was a stdlib thing. I had already merged this but we could easily sprinkle that in lots of places I'm sure.

@anderseknert anderseknert merged commit d445931 into StyraInc:main Jan 9, 2025
5 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.

Have Regal the language server print its location and version on startup
3 participants