Skip to content

[Bug]: MSSQL extension hangs after query execution, blocking subsequent runs; requires "Reload Window" #21361

@jsantos-iplus

Description

@jsantos-iplus

Description

After executing a T-SQL script—whether from an existing file or a "New Query" tab—the extension becomes completely unresponsive. This behavior is inconsistent in timing but persistent in occurrence. It affects all types of connections (Local, Azure, Remote VM) and happens regardless of how long the tab has been open.

Additional Context
The issue is not tied to a specific server or script complexity. It can happen immediately after the first execution or after several successful ones. Once the "hang" occurs, only a full window reload restores functionality, but the issue eventually recurs.

Steps to Reproduce

  1. Connect to any SQL Server instance (Local or Cloud).
  2. Execute any query (simple SELECT or complex script).
  3. After execution finishes, attempt to run another query or interact with the SQL results/connection.

Observation: The extension "freezes." No further queries can be executed.
Current Workaround: Run F1 > Developer: Reload Window.

Affected Area

  • Connection dialog (SQL Server | Azure browse/Fabric browse)
  • Query editor
  • Query results panel
  • Object Explorer
  • GitHub Copilot integration
  • Preview/Edit data
  • Table Designer
  • Schema Designer
  • Schema Compare
  • Local SQL Server Container provisioning
  • SQL database in Fabric provisioning
  • DACPAC/BACPAC export/import
  • SQL Database projects
  • Query Plan Visualizer
  • Other (please describe below)

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

No response

Environment Information

Extension Version: 1.40.0 (Latest)
VS Code Version: 1.109.5
OS: Windows 11
SQL Server: Various (Local, Cloud, Azure SQL)

Confirmation

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions