Skip to Main Content

SQL Developer for VS Code

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ctrl+Shift+W closes entire application if connection is closed

QuickyApr 17 2025 — edited Apr 17 2025

This is a minor thing, but if a connection in the Connections pane is closed, pressing Ctrl+Shift+W to open a new worksheet actually closes VS Code.

The default function of Ctrl+Shift+W in VS Code itself (ie not the SQL Developer plugin) is to close the window/instance. It appears that the SQL Developer plugin overrides that, which is fine, but only when there is an active connection via the Connections pane. If there is no active connection in the Connections pane, but an existing worksheet is connected, pressing Ctrl+Shift+W still closes the entire application, which doesn’t seem like expected behaviour.

I’ve often left VS Code for a while, jumped back in later and attempted to open a new worksheet with that shortcut, not realising the connection has been closed and inadvertently ended up closing VS Code a number of times.

Is it possible for the extension to maintain control of that keyboard shortcut even when connections are closed, or at least when other worksheets remain connected?

You can test this by

  1. Opening VS Code.
  2. Connect to a database in the connections pane.
  3. Open a SQL worksheet to that connection.
  4. Close VS Code.
  5. Reopen VS Code.
  6. The worksheet you opened in step 3 will still be there.
  7. On that worksheet, click to attach a new connection via the button in the bottom right of VS Code.
  8. Choose a connection and wait until it connects.
  9. Press Ctrl+Shift+W to open a new worksheet.
  10. VS Code closes.
Comments
Post Details
Added on Apr 17 2025
0 comments
179 views