SQLTools extension: endless loading, connection UI never shows (works in VS Code)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The SQLTools extension (mtxr.sqltools) does not work correctly in Cursor: it stays in an endless loading/activating state, the connection detail page never appears, and manually added connections in settings do not work. The same extension and settings work in VS Code. Developer console shows Trusted Types blocking script execution and a missing workbench view descriptor for SQLTools.

Steps to Reproduce

  1. Install SQLTools (and the appropriate DB driver, e.g. MySQL/Postgres) in Cursor.
  2. Try to add or select a database connection (e.g. via “SQLTools: Select Connection” or the connection UI).
  3. Observe: loading/activating never finishes, connection detail/wizard page never opens.
  4. Optionally add connection config manually to sqltools.connections in settings: connection may appear in the list but the actual database connection does not work.

Expected Behavior

  • SQLTools activates and shows the connection UI / connection detail page.
  • User can add and select connections and run queries as in VS Code.

Operating System

Windows 10/11

Version Information

Version: 2.5.26 (user setup)
VSCode Version: 1.105.1
Commit: 7d96c2a03bb088ad367615e9da1a3fe20fbbc6a0
Date: 2026-02-26T04:57:56.825Z
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Additional Information

SQLTools output/debug only shows lines like:

  • EXECUTING COMMAND => sqltools.selectConnection
  • REQUEST RECEIVED => connection/GetConnectionsRequest
  • Then nothing further (no response/UI).

Manually added connections in settings may appear in the list but do not connect successfully.

In VS Code, the same setup works.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

This looks like a webview compatibility issue on our side. The Trusted Types errors and missing view descriptor point to that, not a problem with the extension itself.

Could you share the exact errors from the Developer Tools console? (Help > Toggle Developer Tools > Console tab) I’m especially looking for the Trusted Types and view descriptor messages. That’ll help us figure out what’s going on.

Also, one quick check. Does the SQLTools sidebar panel show up at all, or is it completely missing from the activity bar?

Let me know how it goes.