marcellourbani / vscode_abap_remote_fs

Remote filesystem for ABAP systems
MIT License
174 stars 28 forks source link

Renaming #154

Closed uxkjaer closed 2 years ago

uxkjaer commented 3 years ago

The /sap/bc/adt/refactoring API allows the remaing.

Example /sap/bc/adt/refactorings?step=evaluate&rel=http%3A%2F%2Fwww.sap.com%2Fadt%2Frelations%2Frefactoring%2Frename&uri=%2Fsap%2Fbc%2Fadt%2Fprograms%2Fprograms%2Fztest%2Fsource%2Fmain%23start%3D19%2C12%3Bend%3D19%2C12

Sends back response `<?xml version="1.0" encoding="UTF-8"?>

test test Rename Method /sap/bc/adt/programs/programs/ztest/source/main#start=19,12;end=19,12 #start=14,8;end=14,12 #start=19,9;end=19,13 25-413-D203075401E94CB2D7E175BCE1FE1D3D64D068BF true false ` Add the generic:contentOld and generic:contentNew and this will do the renaming. Currently only tested on local program. Will be alot more complex with transports and other packages involved I assume.
marcellourbani commented 3 years ago

Yep that would be good to add. Don't remember if I have support in the API yet. Might be tricky to integrate in vscode, but the main reason why I didn't do it when adding quickfixes (not being able to deal with multiple "files") is gone. Getting it to work with any object should only be a matter of plugging in the code for quickfixes

Do you want to have ago at this?