Prompt for changes preview when applying OR recipes

This commit is contained in:
aboyko
2024-01-03 16:52:58 -05:00
parent e7735efffb
commit e34b39f3b2
7 changed files with 109 additions and 155 deletions

View File

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2022, 2023 VMware, Inc.
* Copyright (c) 2022, 2024 VMware, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -101,7 +101,8 @@ public class RewriteRefactoringsHandler extends AbstractHandler {
cmdParams.setCommand(REWRITE_REFACTORINGS_EXEC);
cmdParams.setArguments(List.of(
uri,
SERIALIZATION_GSON.toJsonTree(recipeSelection)
SERIALIZATION_GSON.toJsonTree(recipeSelection),
true // ask for preview
));
ls.getWorkspaceService().executeCommand(cmdParams).get();