Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected async renameFile({ sourceUri, targetUri }: FileMoveEvent): Promise {
const client = await this.clientContribution.languageClient;
return client.sendRequest(ExecuteCommandRequest.type, {
command: Commands.APPLY_RENAME_FILE,
arguments: [{
sourceUri: sourceUri.toString(),
targetUri: targetUri.toString()
}]
});
}