vscode-verilog-hdl-support
                                
                                 vscode-verilog-hdl-support copied to clipboard
                                
                                    vscode-verilog-hdl-support copied to clipboard
                            
                            
                            
                        [BUG] Picking end statements (e.g., `endgenerate`) from autocomplete dialog doesn't auto-dedent (unindent)
Describe the bug
Picking end-of-block statements (e.g., endgenerate) from autocomplete dialog doesn't auto-dedent (unindent)
Environment:
- OS: Windows 10, Linux Mint (repro on both)
- VS Code version: latest
- Extension version: v1.13.2
Steps to reproduce
- Begin typing this code:
generate
        for (i=0; i<4; i++) begin
            assign 1;
        end
        endgen
- You'll see the autocomplete popup suggest endgenerateas you get halfway through typing it (i.e., you're typingendgenper Step 1).
- Press enter to select completing the endgenpartial text toendgenerate.
- See that endgenerateis filled, but does not return to the parent indent level.
This can be reproduced with many end-of-block keywords (e.g., end [albeit tough to do because it's so short], endmodule, endgenerate, etc.).
Note that typing the entire end-of-block keyword dedents as expected, so this isn't really an issue for the extremetly-short end keyword.