Prompt for changes preview when applying OR recipes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user