Files
vscode/test/automation
Daniel Imms ac3d4703b2 Eliminate some flakiness when not verifying files save
This test was flaking because before the suite runs a bunch of settings
are added which are critical to making the test reliable. Inside the
settings part it opens the editor, edits it and saves the file via
ctrl/cmd+s. This is all fine, but it doesn't verify anything so the
editor may end up closing before ctrl/cmd+s actually gets handled. We
disable the modal in smoke tests since it needs to run headlessly, so
it's difficult to see that the file never actually saves and a dirty
file is closed and discarded.

The fix is to verify settings.json actually does save by changing the
shared Editors.saveOpenedFile mechanism to ensure the dirty indicator
isn't present on the active tab.

Fixes #254893
Part of #246731
2025-07-10 05:06:22 -07:00
..

VS Code Automation Package

This package contains functionality for automating various components of the VS Code UI, via an automation "driver" that connects from a separate process. It is used by the smoke tests.