Interface IRenameService2
-
- All Known Implementing Classes:
RenameService2
public interface IRenameService2Service called for rename refactoring.- Since:
- 2.18
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIRenameService2.Optionsstatic classIRenameService2.PrepareRenameOptions
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.lsp4j.jsonrpc.messages.Either3<org.eclipse.lsp4j.Range,org.eclipse.lsp4j.PrepareRenameResult,org.eclipse.lsp4j.PrepareRenameDefaultBehavior>prepareRename(IRenameService2.PrepareRenameOptions options)Returns arangedescribing the range of the string to rename and optionally a placeholder text of the string content to be renamed.org.eclipse.lsp4j.WorkspaceEditrename(IRenameService2.Options options)
-
-
-
Method Detail
-
rename
org.eclipse.lsp4j.WorkspaceEdit rename(IRenameService2.Options options)
-
prepareRename
org.eclipse.lsp4j.jsonrpc.messages.Either3<org.eclipse.lsp4j.Range,org.eclipse.lsp4j.PrepareRenameResult,org.eclipse.lsp4j.PrepareRenameDefaultBehavior> prepareRename(IRenameService2.PrepareRenameOptions options)
Returns arangedescribing the range of the string to rename and optionally a placeholder text of the string content to be renamed.If
nullis returned then it is deemed that invokingrenamewith the same text document position will not result in a validworkspace edit.The default implementation only checks whether there is an identifier under the give text document position or not.
This method should be used to set up and to test the validity of a rename operation at a given location. See
textDocument/prepareRenamefor more details.
-
-