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

Warn users when they run "use db" without parentheses

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.11.1
    • Affects Version/s: None
    • Component/s: Embedded Shell, Playgrounds
    • Labels:
      None
    • 3
    • Not Needed
    • Iteration Xantic Sargo

      When a playground starts with `use ...`, the mongosh shell evaluator assumes that the entire playground is a single, long use statement, potentially including newlines in the database name.

      This seems like an easy mistake for people to make who are used to working with the shell; we should warn them that what they want is use('db').

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: