fury-old icon indicating copy to clipboard operation
fury-old copied to clipboard

Create REST server to support VS Code plugin

Open propensive opened this issue 4 years ago • 3 comments

propensive avatar Sep 29 '20 15:09 propensive

Drive-by idea: What if we start with a POST /direct endpoint that just takes an array of string as the body, and then interpret it as if it's a CLI command? I think this reduces the work significantly for the MVP and I feel like the clients will be just as easy to write

jatcwang avatar Oct 30 '20 23:10 jatcwang

I thought about something like that, actually. It might help with invoking certain mutation actions, but wouldn't really solve handling output from Fury, though maybe it's still enough to make faster progress with the VS Code UI while we're still experimenting with how it will work at all.

But my idea evolved a bit from there to come up with some more standard ways of defining both input (including interactivity, i.e. what parameter values are available for a partially-complete command) and output (which may be successful or failing, and may include varying amounts of information).

I'm still thinking about all of this. :)

propensive avatar Nov 01 '20 12:11 propensive

Ah yeah true, getting the output in a structured format is crucial for nice UI

jatcwang avatar Nov 01 '20 22:11 jatcwang