Title: Bug: Oracle SQL Developer extension intercepts Ctrl+Enter in Snowflake SQL editors after switching tabs · Issue #40 · oracle/sql-developer-vscode · GitHub
Open Graph Title: Bug: Oracle SQL Developer extension intercepts Ctrl+Enter in Snowflake SQL editors after switching tabs · Issue #40 · oracle/sql-developer-vscode
X Title: Bug: Oracle SQL Developer extension intercepts Ctrl+Enter in Snowflake SQL editors after switching tabs · Issue #40 · oracle/sql-developer-vscode
Description: Description The Oracle SQL Developer extension for VS Code intermittently intercepts Ctrl+Enter while working in Snowflake SQL files, invoking Oracle's Run Statement command instead of executing SQL in Snowflake. The problem appears to b...
Open Graph Description: Description The Oracle SQL Developer extension for VS Code intermittently intercepts Ctrl+Enter while working in Snowflake SQL files, invoking Oracle's Run Statement command instead of executing SQ...
X Description: Description The Oracle SQL Developer extension for VS Code intermittently intercepts Ctrl+Enter while working in Snowflake SQL files, invoking Oracle's Run Statement command instead of executin...
Opengraph URL: https://github.com/oracle/sql-developer-vscode/issues/40
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: Oracle SQL Developer extension intercepts Ctrl+Enter in Snowflake SQL editors after switching tabs","articleBody":"## Description\n\nThe Oracle SQL Developer extension for VS Code intermittently intercepts `Ctrl+Enter` while working in Snowflake SQL files, invoking Oracle's **Run Statement** command instead of executing SQL in Snowflake.\n\nThe problem appears to be triggered by switching between editor tabs, including non-SQL files such as Markdown.\n\n### Expected behaviour\n\nWhen the active editor has language mode `Snowflake SQL`, pressing `Ctrl+Enter` should execute the SQL statement using the Snowflake extension.\n\nOracle's Run Statement command should only be invoked when an Oracle SQL worksheet is active.\n\n### Actual behaviour\n\nAfter switching between editor tabs, `Ctrl+Enter` intermittently invokes Oracle's command and displays the Oracle connection selector.\n\nThe Snowflake connection remains valid, and the editor still shows `Snowflake SQL` as its language mode.\n\n### Steps to reproduce\n\n1. Open a Snowflake `.sql` file in VS Code.\n2. Execute SQL using `Ctrl+Enter` — initially works correctly.\n3. Open another editor tab (either a `.sql` or `.md` file).\n4. Switch back to the original Snowflake SQL editor.\n5. Press `Ctrl+Enter`.\n6. Intermittently, Oracle's connection selector appears instead of executing the statement in Snowflake.\n\nThe issue also occurs after saving or closing other SQL files. The affected Snowflake SQL file does not need to be modified or saved.\n\n### Diagnostic evidence\n\nUsing VS Code's **Developer: Toggle Keyboard Shortcuts Troubleshooting**, the following was captured while the active editor was `Snowflake SQL`:\n\n```text\nResolving ctrl+Enter\nFrom 34 keybinding entries, matched sqldeveloper.worksheet.runStatement\n\nwhen: editorTextFocus &&\n sqldeveloper.activeEditorType == 'sqlWorksheet' &&\n sqldeveloper.worksheet.activeWorksheetId not in\n 'sqldeveloper.worksheet.busyWorksheetIds'\n\nsource: user extension Oracle.sql-developer\n\nInvoking command sqldeveloper.worksheet.runStatement\n```\n\nThis suggests Oracle's worksheet context is active even when the focused editor is a Snowflake SQL file.\n\n### Workarounds tested\n\n- **Close and reopen the affected Snowflake SQL file:** Restores correct Snowflake execution.\n- **Developer: Reload Window:** Restores correct execution temporarily.\n- **Restart VS Code:** Restores correct execution temporarily.\n\nThe problem subsequently recurs when switching between editor tabs.\n\nDisabling the Oracle extension did not immediately resolve the issue, although it has not been established whether the window was reloaded after disabling.\n\n### Suspected cause\n\nThe Oracle SQL Developer extension may retain stale worksheet/editor context when VS Code switches between tabs, allowing `sqldeveloper.worksheet.runStatement` to match `Ctrl+Enter` even when a Snowflake SQL editor is active.\n\nThis is a hypothesis based on the keyboard troubleshooting logs, not a confirmed root cause.\n\n### Impact\n\nThis significantly disrupts working with Snowflake SQL files in VS Code. Users working with both Oracle and Snowflake extensions cannot reliably use `Ctrl+Enter` to execute SQL in the intended database environment.\n\n### Questions\n\n1. Is this a known issue?\n2. Can Oracle's Run Statement shortcut be restricted to Oracle-owned SQL worksheets rather than relying on potentially stale editor context?\n3. Is there a recommended configuration allowing Oracle SQL Developer and Snowflake extensions to coexist while retaining `Ctrl+Enter` for both?\n\n### Environment\n\n- OS: Windows\n- Editor: Visual Studio Code\n- Extensions: Oracle SQL Developer for VS Code and Snowflake VS Code\n- Active language mode: `Snowflake SQL`\n- VS Code and extension versions: To be added\n\n### Related reports / discussions\n\nSimilar compatibility issues involving the Oracle SQL Developer and Snowflake VS Code extensions have previously been discussed:\n\n1. **Oracle SQL Developer for VS Code discussion (January 2024)** \n https://www.reddit.com/r/oracle/comments/1997yno\n\n2. **Multiple SQL extensions in VS Code (May 2025)** \n https://www.reddit.com/r/vscode/comments/1kipnbv\n\nThese discussions describe conflicts involving Oracle and Snowflake extensions, including SQL editor associations.\n\nNeither has been confirmed to describe the exact `Ctrl+Enter` issue reported here, but they suggest a broader compatibility problem between the extensions.\n\nI could not identify an existing public Oracle GitHub issue documenting this specific behaviour.\n\nsee also https://forums.oracle.com/ords/apexds/post/oracle-sql-developer-vs-code-conflicts-with-snowflake-exten-7997\n","author":{"url":"https://github.com/jimdickson007","@type":"Person","name":"jimdickson007"},"datePublished":"2026-10-16T14:15:06Z","url":"https://github.com/oracle/sql-developer-vscode/issues/40"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:48308576-0b91-8b7d-e088-c520f686fd87 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A75A:25A901:409651:573CF6:6B043959 |
| html-safe-nonce | 8f98eca75ecbf8f0381233d4e040573bc60cb8ace716424f4078456d465e62d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzVBOjI1QTkwMTo0MDk2NTE6NTczQ0Y2OjZCMDQzOTU5IiwidmlzaXRvcl9pZCI6IjQxNzAwMDE1ODY0ODEwMTkyMjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bd759bb15fcd27beaa705378fb159ab2d57f52a07f4e3246861bac13d28ad050 |
| hovercard-subject-tag | issue:5885681612 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/oracle/sql-developer-vscode/40/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87477f7b6b2f53be872cda47d37bc48169885d888d35132d9cbadcf1f350034d/oracle/sql-developer-vscode/issues/40 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87477f7b6b2f53be872cda47d37bc48169885d888d35132d9cbadcf1f350034d/oracle/sql-developer-vscode/issues/40 |
| og:image:alt | Description The Oracle SQL Developer extension for VS Code intermittently intercepts Ctrl+Enter while working in Snowflake SQL files, invoking Oracle's Run Statement command instead of executing SQ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jimdickson007 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/oracle/sql-developer-vscode git https://github.com/oracle/sql-developer-vscode.git |
| octolytics-dimension-user_id | 4430336 |
| octolytics-dimension-user_login | oracle |
| octolytics-dimension-repository_id | 996875857 |
| octolytics-dimension-repository_nwo | oracle/sql-developer-vscode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 996875857 |
| octolytics-dimension-repository_network_root_nwo | oracle/sql-developer-vscode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width