Skip to content

[language-javascript] simple folding issue (includes minimal test case) #1616

Description

@leggewie

Thanks in advance for your bug report!

  • Have you reproduced issue in safe mode?
  • Have you used the debugging guide to try to resolve the issue?
  • Have you checked our FAQs to make sure your question isn't answered there?
  • Have you checked to make sure your issue does not already exist?
  • Have you checked you are on the latest release of Pulsar?

What happened?

document.addEventListener("DOMContentLoaded", () => {
  console.log("hello");
});

Above JavaScript code should fold as a single entity. bracket matching does work fine, but folding does not. The last line is not grouped when it should be.

Image

Pulsar version

1.132.1

Which OS does this happen on?

🐧 Debian based (Linux Mint, Ubuntu, etc.)

OS details

Ubuntu Noble

Which CPU architecture are you running this on?

x86_64/AMD64

What steps are needed to reproduce this?

copy above code in pulsar and try to fold / minimize it. it should become a single line but it only folds down to two lines, one outside the grouping.

Additional Information:

the two first checkmarks on the bug report are mandatory so I ticked them but their links don't go anywhere meaningful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions