Closed
Description
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:
- Open a query and run it
- Click on the connection you want
- Observe that the query does not run.
- Run it again
Scenario 2:
- Open a query
- Click the connection button and pick your connection
- Observe the error message.
- 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