diff --git a/language/move-analyzer/src/bin/aptos-move-analyzer.rs b/language/move-analyzer/src/bin/aptos-move-analyzer.rs index 262d3d3304..24e065c9a9 100644 --- a/language/move-analyzer/src/bin/aptos-move-analyzer.rs +++ b/language/move-analyzer/src/bin/aptos-move-analyzer.rs @@ -270,9 +270,7 @@ fn on_request(context: &mut Context, request: &Request, analyzer_cfg: &mut Analy let parameters = serde_json::from_value::(request.params.clone()) .expect("could not deserialize movefmt config"); log::info!("call movefmt config {:?}", parameters); - if analyzer_cfg.movefmt_config.enable == parameters.enable && parameters.enable == true { - return; - } + analyzer_cfg.movefmt_config = parameters; if !analyzer_cfg.movefmt_config.enable { let params = lsp_types::UnregistrationParams {