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

feat: trailing whitespace changes should not invalidate imports #4580

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

Kha
Copy link
Member

@Kha Kha commented Jun 28, 2024

Thus, starting to type the first declaration after the imports should not make them reload

@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jun 28, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries CI can not be attempted yet, as the nightly-testing-2024-06-28 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Batteries CI should run now. (2024-06-28 08:23:20)

Comment on lines +417 to +418
-- to uphold the invariant that concatenating all top-level snapshots' syntax trees results in
-- the original file.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious: Is that an invariant that we enforce somehow? Do we have tests for that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't make use of it currently as far as I know (there isn't even a function for the concatenation). When we do, we should add tests.

@Kha Kha added this pull request to the merge queue Jul 24, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jul 24, 2024
Thus, starting to type the first declaration after the imports should
not make them reload
Merged via the queue into leanprover:master with commit 7b3c64f Jul 24, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants