Skip to content

Fix output grid and sql console#1621

Closed
dnlw07 wants to merge 8 commits into
mtxr:devfrom
dnlw07:fix-output-grid-and-sql-console
Closed

Fix output grid and sql console#1621
dnlw07 wants to merge 8 commits into
mtxr:devfrom
dnlw07:fix-output-grid-and-sql-console

Conversation

@dnlw07

@dnlw07 dnlw07 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Console messages panel

  • New message history is capped at 200 items (MessagesProvider.MAX_ITEMS), prepended newest-first (explorer/index.ts).
  • Added Copy All Messages and Clear Messages commands/context-menu entries, wired through getAllConsoleMessages/clearConsoleMessages.
  • Fixed duplicated/spammed messages: removed the webview→extension REQUEST_SYNC_CONSOLE_MESSAGES round-trip and the "Not focused to results view" message entirely (results.ts, ResultsContext.tsx).

Results grid (Table)

  • Right-click context menu overhaul: preserves existing multi-row selection instead of collapsing it to the clicked row; added Copy Column Name, Copy Column Names, Copy Selected as CSV, Copy Selected as JSON; reordered/regrouped menu sections with cleaner divider logic.
  • Added keyboard shortcuts: Esc clears selection, Ctrl/Cmd+A selects all rows (ignored while focus is in an input/textarea).
  • Added Excel-style row selection: plain click selects one row and sets an anchor, Shift+click selects a range from the anchor, Ctrl/Cmd+click toggles individual rows.

Connection management

  • New sqltools.connectionSwitch setting: auto-switches the active connection based on glob patterns matched against the focused file's name/path (globMatch in extension.ts).
  • Status bar now updates immediately on connect via a direct statusBar.setText() call, fixing it not updating when the SQLTools tree view isn't visible.

package.json

  • New commands/menu entries for copyAllConsoleMessages, clearConsoleMessages, and the new sqltools.connectionSwitch configuration schema.

dnlw07 added 8 commits July 5, 2026 12:32
Fix operator precedence bug in _openResultsWebview and missing loading state on reused result panels.

The change cause that:
- Result tabs are now correctly reused according to sqltools.results.reuseTabs settings instead of spawning duplicate tabs.
- Reused result panels now show a loading spinner while a query is running, matching the behavior of freshly opened panels.
@dnlw07 dnlw07 closed this Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant