Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenRefactory JSON protocol documentation is missing #35

Open
joverbey opened this issue Jan 15, 2017 · 3 comments
Open

OpenRefactory JSON protocol documentation is missing #35

joverbey opened this issue Jan 15, 2017 · 3 comments

Comments

@joverbey
Copy link
Member

Line 74 of INTERNALS says: "The OpenRefactory protocol is documented at FIXME: URL"

It would probably be best to add it to the repository, probably under engine/protocol (since that's where it's needed).

IIRC, there's a Word doc and a PDF. No harm in uploading both.

@roberthorn do you have this document? If not, I'm sure I do somewhere... have to search...

@roberthorn
Copy link
Member

roberthorn commented Jan 15, 2017 via email

@joverbey
Copy link
Member Author

Oh yeah, I think you told me you were doing that and I completely forgot. Awesome; thanks!

@shoobyban
Copy link

Old thread, sorry for reviving it.
For the record found something here http://jeff.over.bz/papers/2013/wrt13.pdf that helped me to figure how to use the JSON protocol, while working on the VSCode refactoring extension.

{"command":"open", "version":0.1}
{"command":"setdir","mode":"web"}
{"command":"put","filename":"-.go","content":"package main\n\nimport \"fmt\"\n\nfunc main() {\n .... "}
{"command":"xrun","transformation":"rename","mode":"text","textselection":{"filename":"-.go","offset":114,"length":0},"arguments":["bar"]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants