Skip to content

Add SQL Preview toggle functionality and bump version to 1.0.0-nightly#14

Merged
ric-v merged 2 commits into
mainfrom
nightly
Apr 18, 2026
Merged

Add SQL Preview toggle functionality and bump version to 1.0.0-nightly#14
ric-v merged 2 commits into
mainfrom
nightly

Conversation

@ric-v
Copy link
Copy Markdown
Owner

@ric-v ric-v commented Apr 18, 2026

This pull request introduces a new feature to enable or disable the SQL Preview (Definition Viewer) in PgStudio, along with several improvements to command usability and configuration management. The changes add a user-facing toggle for the SQL Preview, update command registrations to be more robust, and enhance the UI with command icons and context-sensitive actions.

Feature: SQL Preview Enable/Disable Toggle

  • Added a new configuration setting pgstudio.ddlViewer.enabled to allow users to enable or disable the SQL Preview (Definition Viewer) features and actions.
  • Introduced the postgres-explorer.ddlViewer.toggleEnabled command, which can be triggered from the UI (including a new code lens and command palette) to toggle SQL Preview on or off. [1] [2] [3] [4] [5]

UI/UX Improvements

  • Added icons to DDL Viewer commands for better discoverability in the command palette and menus.
  • Registered DDL Viewer commands (copy, toggle, open editable copy) in the editor title bar for SQL Preview tabs, making them easily accessible when working with preview documents.

Command and Configuration Handling

  • Improved command implementations to resolve the correct target tab if no URI is provided, and provide user feedback if commands are invoked without an open SQL Preview. [1] [2]
  • Updated the DdlViewerService to refresh all open SQL Preview documents and code lenses when the enable/disable setting changes, ensuring the UI stays in sync with the configuration. [1] [2] [3]

Other

  • Updated the extension version to 1.0.0-nightly to reflect nightly build status.

@ric-v ric-v merged commit ba35544 into main Apr 18, 2026
4 checks passed
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