add logging to investigate failures in tests

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
6.19.x
Valeriy Svydenko 2018-07-26 13:42:04 +02:00 committed by Thomas Mäder
parent b2b3a7849c
commit ffabe2a147
1 changed files with 8 additions and 0 deletions

View File

@ -379,6 +379,8 @@ public class ApplyWorkspaceEditAction extends BaseAction {
(ResolveFunction<Void> resolve, RejectFunction reject) -> {
try {
undoRedo.undo();
// TODO it is temporary needs, to investigate failures in tests
Log.info(getClass(), "Undo operation was applied for " + uri);
resolve.apply(null);
} catch (Exception e) {
reject.apply(
@ -425,6 +427,12 @@ public class ApplyWorkspaceEditAction extends BaseAction {
Position end = r.getEnd();
document.replace(
start.getLine(), start.getCharacter(), end.getLine(), end.getCharacter(), e.getNewText());
// TODO it is temporary, needs to investigate failures in tests
Log.info(
ApplyWorkspaceEditAction.class,
"Text edit was applied for " + document.getFile().getName());
}
// TODO it is temporary, needs to investigate failures in tests
Log.info(ApplyWorkspaceEditAction.class, "New contents is " + document.getContents());
}
}