Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -969,9 +969,13 @@ public void testMarkerDeltasMoveFile(TestInfo testInfo) throws CoreException {
IMarker subFileMarker = subFile.createMarker(IMarker.BOOKMARK);
listener.reset();

// move the files
file.move(destFile.getFullPath(), IResource.FORCE, createTestMonitor());
subFile.move(destSubFile.getFullPath(), IResource.FORCE, createTestMonitor());
// move the files in one atomic workspace operation to prevent background jobs
// (e.g. charset/encoding validation) from running between the two moves and
// adding unexpected marker changes to the listener
getWorkspace().run(monitor -> {
file.move(destFile.getFullPath(), IResource.FORCE, monitor);
subFile.move(destSubFile.getFullPath(), IResource.FORCE, monitor);
}, createTestMonitor());

// verify marker deltas
listener.assertNumberOfAffectedResources(4);
Expand Down
Loading