You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the role of input.json is covered in the README, it's pretty far down on the page and easily missed by anyone who just want to get things up and running as quickly as possible. The whole Evaluate feature, including the role of input.json, is also covered in Regal's language server docs... but that's of course even less likely to be discovered in the scenario described. We should think about how to better highlight this in the UI of this extension, making it nearly impossible to miss for those unaware of it.
Note: the Debug code lens / command also depends on input.json, and most/all things mentioned below applies to that just as much!
Some ideas to consider, but I'm sure we can think of more!
If Evaluate is clicked with no input.json present — display message to inform user of this and that they should create one
If Evaluate is clicked with no input.json present — create automatically?
This would require explaining what we did though, and may feel intrusive
An empty JSON file isn't too helpful. We could generate one from a schema or known refs to input.. but not trivial
If Evaluate is clicked with no input.json present — check if there are any other JSON files in the workspace (or workspace root) that potentially could be used as input?
This would also require some explanation, as it should be obvious to the user what's used for evaluation
While the role of input.json is covered in the README, it's pretty far down on the page and easily missed by anyone who just want to get things up and running as quickly as possible. The whole
Evaluatefeature, including the role of input.json, is also covered in Regal's language server docs... but that's of course even less likely to be discovered in the scenario described. We should think about how to better highlight this in the UI of this extension, making it nearly impossible to miss for those unaware of it.Note: the
Debugcode lens / command also depends oninput.json, and most/all things mentioned below applies to that just as much!Some ideas to consider, but I'm sure we can think of more!
Evaluateis clicked with noinput.jsonpresent — display message to inform user of this and that they should create oneEvaluateis clicked with noinput.jsonpresent — create automatically?Evaluateis clicked with noinput.jsonpresent — check if there are any other JSON files in the workspace (or workspace root) that potentially could be used as input?More ideas?
Perhaps we'll need to make some changes server side in Regal too, and I'll create issues in that project later if needed.