vscode-verilog-hdl-support icon indicating copy to clipboard operation
vscode-verilog-hdl-support copied to clipboard

[BUG] Picking end statements (e.g., `endgenerate`) from autocomplete dialog doesn't auto-dedent (unindent)

Open DeflateAwning opened this issue 1 year ago • 0 comments

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

  1. Begin typing this code:
generate
        for (i=0; i<4; i++) begin
            assign 1;
        end
        endgen
  1. You'll see the autocomplete popup suggest endgenerate as you get halfway through typing it (i.e., you're typing endgen per Step 1).
  2. Press enter to select completing the endgen partial text to endgenerate.
  3. See that endgenerate is 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.

DeflateAwning avatar Feb 26 '24 06:02 DeflateAwning