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

Incorrect code folding in class files when using sections/chapters/etc. without arguments #3703

Closed
FWDekker opened this issue Oct 22, 2024 · 0 comments · Fixed by #3804
Closed
Labels
bug Deficiencies in TeXiFy behaviour.
Milestone

Comments

@FWDekker
Copy link
Contributor

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

IntelliJ IDEA 2024.2.3 (Ultimate Edition)

Operating System

Debian Testing

TeXiFy IDEA version

v0.9.7

What I did (steps to reproduce)

  1. Create a class file (e.g. myclass.cls).
  2. Use a command that typically defines a section of code (such as \section or \chapter) without arguments (for example to redefine the format of its title).
  3. Place a foldable block of code beneath the code from Step 2.
  4. Fold all blocks in the file. ("Collapse All" action.)

Minimal example to reproduce the problem

\ProvidesClass{myclass}[2024/10/22 v1.0 My Class]

\RequirePackage{titlesec}
\titleformat*{\section}{\itshape}

{
    % Contents
}

Expected behavior

The pieces of code from Step 2 and Step 3 are folded separately.

Actual behavior

The pieces of code from Step 2 and Step 3 are somewhat folded together.

@FWDekker FWDekker added bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified. labels Oct 22, 2024
@PHPirates PHPirates removed the untriaged Issue type still needs to be triaged or verified. label Oct 22, 2024
@PHPirates PHPirates added this to the Next milestone Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Deficiencies in TeXiFy behaviour.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants