-
Type: Story
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
5
-
Iteration Orange, Iteration Papaya
-
-
Needed
User Story
As a user,
I want to see the output of a Playground in the code editor
So that it's syntax highlighted and easier to read and easier to scroll and copy-paste
Acceptance Criteria
- When I run a playground, its output is displayed in a code editor, with language set to JSON if the result is representable as JSON, plain text otherwise.
- When VS Code is not already in split view mode, the results are opened in a new editor tab split on the right of the playground
- Playground results are always displayed in the same code editor, no matter how many times I run one or more playground
- Results are not editable. If the user wants to edit them, they have the option to save the results to a file (Save as, Cmd + Shift + S) and edit that
Open questions
- When VS Code is already in split view mode, where do we open the new editor with the results?
- The default behavior is probably fine, but let's verify.
- Can we tell what type of results are being displayed, e.g. if it's a string or JSON? Plain text in a JSON editor is displayed with errors, for example.
- Yes
- links to