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

Playgrounds should run in database specified in connection string

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.3.2
    • None
    • Connectivity, Playgrounds
    • None
    • OS:
      node.js / npm versions:
      Additional info:
    • 3
    • Needed
    • Hide

      Run a playground section in the VSCode docs should also mention explicitly the following:

      If the connection string has specified a database to be connected to by default then the playgrounds will run against the default connected database unless there is an explicit call to use another database (use("another-db")). The autocomplete will also try to autocomplete the collection names available on the default connected database. The message that appears after the connection will also notify the users of the default connected database (screenshot provided).

      Show
      Run a playground section in the VSCode docs should also mention explicitly the following: If the connection string has specified a database to be connected to by default then the playgrounds will run against the default connected database unless there is an explicit call to use another database (use("another-db")). The autocomplete will also try to autocomplete the collection names available on the default connected database. The message that appears after the connection will also notify the users of the default connected database (screenshot provided).
    • Iteration Pterodactyl, Iteration Qantassaurus

    Description

      See https://github.com/mongodb-js/vscode/issues/376 – if a database in the connection string is specified to VSCode, playgrounds should default to running in the context of that database.

      Attachments

        Activity

          People

            himanshu.singh@mongodb.com Himanshu Singh
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: