-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
lsp not watching config(?) #1060
Comments
ah yea, I don't think it knows to do anything when these files are changed |
DidChangeWatchedFiles::METHOD => {
if let Ok(config) = Config::load(&self.root) {
self.config = Some(config);
self.create_new_compiler();
self.compile(connection)?;
} else {
self.stored_messages.push(lsp_types::ShowMessageParams {
typ: lsp_types::MessageType::ERROR,
message: "Failed to reload aiken.toml".to_string(),
});
}
self.publish_stored_diagnostics(connection)?;
Ok(())
} seems like it should be doing the right thing? |
I lack the context. |
Are you still having the issue? |
Yes. Related. The help could be more explicit. From a fresh start
results in
Despite this looking like it exists in the |
@waalge good point thanks |
What Git revision are you using?
What operating system are you using, and which version?
nixos
Describe what the problem is?
config.min_val
in some aiken modulemin_val
toaiken.toml
config section.What should be the expected behavior?
Watch config and update without restart?
An aside: There are no non-public config declarations. Worth writing a special error message for this case? maybe not
The text was updated successfully, but these errors were encountered: