-
Notifications
You must be signed in to change notification settings - Fork 347
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
improvement: Ask to start http server if not running #7083
base: main
Are you sure you want to change the base?
Conversation
This will show up after indexing and users can start the server themselves or ignore it for the session. Should help with scalameta#7072
I am still wondering if this will be more useful or whether it might be annoying to people 🤔 |
55b4214
to
3794b0b
Compare
I think it's harmless enough improvement, so we can merge that. What do you think @kasiaMarek ? |
def getHttpServer(): Future[Option[MetalsHttpServer]] = { | ||
httpServer match { | ||
// If there is no doctor format set then no doctor will be available otherwise | ||
case HttpServerOff if clientConfig.doctorFormat() == None => |
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.
What about:
case HttpServerOff if clientConfig.doctorFormat() != None =>
Also how can clientConfig.doctorFormat() == None
? It has a getOrElse
part. Shouldn't it be something in line of clientConfig.isHttpEnabled() == false
?
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.
Ach right. I changed it to use isExecuteClientCommandProvider, since if both that is disabled and no server is running then user might want to start it.
This will show up after indexing and users can start the server themselves or ignore it for the session.
Fixes #7072