mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
Java's foldings has been duplicated on the frontend and backend sides. That leads to the race: 1. If the frontend foldings have been calculated earlier, then the backend will overwrite the frontend information about the folding. That will lead to the situation where the newly calculated frontend folding will not be in the correct collapsed state, since it will not remove the old frontend-backend folding. 2. If the backend foldings have been calculated earlier, we could fall into the situation above, but only on the decent delays. So, the foldings should be moved to one-side-per-folding. For the simplicity the backend side (since some foldings are backend-only) has been chosen. Also, the JBC now trusts the backend's collapsed state (cherry picked from commit 7e31c0eb3c64a2fda26a67b6d9c21e624ef4bd9c) IJ-MR-192582 GitOrigin-RevId: f6e154a1a45091dfd52e1b5279bd59c0c30b991c