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

Display Playground Output in editor

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 0.3.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      5
    • Documentation Changes:
      Needed
    • UserVoice Links:
      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}
    • Sprint:
      Iteration Orange, Iteration Papaya

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: