Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-177

Display Playground Output in editor

    • Type: Icon: Story Story
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 5
    • Needed
    • Hide
      {anchor: NOTE: This content is auto-generated by the UserVoice add-on configured with mongodb.uservoice.com.com. Any edits you make will be overwritten. }[*Playground Output*|https://mongodb.uservoice.com/admin/v3/suggestions/41569543/activity] (Suggestion)\\ {color:gray}completed (1 users){color}
      Show
      {anchor: NOTE: This content is auto-generated by the UserVoice add-on configured with mongodb.uservoice.com.com. Any edits you make will be overwritten. }[*Playground Output*| https://mongodb.uservoice.com/admin/v3/suggestions/41569543/activity ] (Suggestion)\\ {color:gray}completed (1 users){color}
    • Iteration Orange, Iteration Papaya

      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

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            massimiliano.marcon@mongodb.com Massimiliano Marcon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: