Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DeflateAwning opened this issue Feb 26, 2024 · 0 comments
Labels

Comments

@DeflateAwning
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant