Skip to content

Commit

Permalink
bug fix for format on indent of config
Browse files Browse the repository at this point in the history
  • Loading branch information
hapeeeeee committed Jan 30, 2024
1 parent 138e828 commit ed11554
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions language/move-analyzer/src/bin/aptos-move-analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,7 @@ fn on_request(context: &mut Context, request: &Request, analyzer_cfg: &mut Analy
let parameters = serde_json::from_value::<FmtConfig>(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 {
Expand Down

0 comments on commit ed11554

Please sign in to comment.