Skip to content

[Bug]: Running a query connects without running the query #19571

Closed
@mmiller-d8

Description

@mmiller-d8

Description

When in a query file, if you run it, you get the list of connections. When you click on a connection, the query doesn't run. You have to run it a second time.

If, instead, you click on the connection button first, it shows:

Mssql: Error: Type Error: Cannot read properties of undefined (reading 'find').

Steps to Reproduce

Scenario 1:

  1. Open a query and run it
  2. Click on the connection you want
  3. Observe that the query does not run.
  4. Run it again

Scenario 2:

  1. Open a query
  2. Click the connection button and pick your connection
  3. Observe the error message.
  4. Run the query (it still runs)

Affected Area

  • Connection dialog
  • Query editor
  • IntelliSense/auto-completion
  • Query results panel
  • Object Explorer
  • Table Designer
  • Schema Compare
  • Schema Designer
  • Query Plan Visualizer
  • Other (please describe below)

If you selected "Other", please describe the affected area

No response

Environment Information

Code:

Version: 1.100.3
Commit: 258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3
Date: 2025-06-02T13:30:54.273Z
Electron: 34.5.1
ElectronBuildId: 11369351
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

MSSQL: 1.32.1

Confirmation

  • I have searched existing issues and couldn't find a match
  • I want to work on this issue

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions