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

When not connected and a user hits the button to run code, prompt them to connect

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Developer Tools
    • 3
    • Iteration O (Nov 4 -25)

      When a users asks the participant something that results in code generation we provide a button to run the code. However, they may not be connected to an instance, so they can't run that code. At the moment if a user hits the `> Run` button while not connected we fail silently. This ticket involves adding a connection flow when not connected. Similar to the `Change active connection` command handler. So folks can connect then run. If they don't connect, we don't run anything and can show the same error we show when attempting to run a playground without a connection: `Please connect to a database before running a playground.` (Eventually we also probably want that flow to prompt folks to connect, or have a connect button on the error message).

      Discussion on that in slack:
      https://mongodb.slack.com/archives/C07FSUYSB2P/p1727183949874599  .

       

       

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: