public interface IRenameService2
Modifier and Type | Interface and Description |
---|---|
static class |
IRenameService2.Options |
static class |
IRenameService2.PrepareRenameOptions |
Modifier and Type | Method and Description |
---|---|
org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Range,org.eclipse.lsp4j.PrepareRenameResult> |
prepareRename(IRenameService2.PrepareRenameOptions options)
Returns a
range describing the range of the string to rename and optionally a placeholder text of
the string content to be renamed. |
org.eclipse.lsp4j.WorkspaceEdit |
rename(IRenameService2.Options options) |
org.eclipse.lsp4j.WorkspaceEdit rename(IRenameService2.Options options)
org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Range,org.eclipse.lsp4j.PrepareRenameResult> prepareRename(IRenameService2.PrepareRenameOptions options)
range
describing the range of the string to rename and optionally a placeholder text of
the string content to be renamed.
If null
is returned then it is deemed that invoking rename
with the same text document
position will not result in a valid workspace 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/prepareRename
for more details.