Skip to content

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

@DeflateAwning

Description

@DeflateAwning

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions