Based on https://github.com/Shopify/ruby-lsp/pull/462#discussion_r1082638008, we should better handle what happens with on type formatting in case there is content in the next line. For example ```ruby if something # ^ break here immediate_content # This results in this, which is definitely not ideal if something endimmediate_content ``` Fixing this means we have to perform some sort of lookahead to figure out what comes on the next lines.