Skip to content

Conversation

@vezwork
Copy link
Collaborator

@vezwork vezwork commented Oct 14, 2025

This test is added to prevent situations like #845 in which code was added to the extension that caused non-qmd text files to be closed and re-opened in the visual editor (very bad).

The test checks that a .lua file can be opened, edited, and saved and afterwards is still open as the active editor in VSCode. I "red-light/green-light"'d the test (made sure it failed when I checked out v1.125, the version with the problem, and passed when I checked out v1.126, the version with the fix).

We could make this test catch other similar types of issues, but this seems like the simplest way to catch issues like #845 where saving a non-qmd file messes with the active VSCode editor.

@vezwork vezwork requested review from cscheid and juliasilge October 14, 2025 21:41
@cscheid
Copy link
Contributor

cscheid commented Oct 14, 2025

Looks great. Thank you!

@vezwork vezwork merged commit b1a2cab into main Oct 15, 2025
2 checks passed
@vezwork vezwork deleted the test/open-file-normally branch October 15, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants