Skip to content

F5 will execute notebook SQL cells#21457

Merged
lewis-sanchez merged 2 commits into
mainfrom
lewissanchez/sql-notebooks/fix-query-execute-shortcut
Mar 5, 2026
Merged

F5 will execute notebook SQL cells#21457
lewis-sanchez merged 2 commits into
mainfrom
lewissanchez/sql-notebooks/fix-query-execute-shortcut

Conversation

@lewis-sanchez
Copy link
Copy Markdown
Contributor

@lewis-sanchez lewis-sanchez commented Mar 5, 2026

Description

This PR closes #21337

The PR allows F5 to execute SQL notebook cells

Provide a clear, concise summary of the changes in this PR. What problem does it solve? Why is it needed? Link any related issues using issue closing keywords.

Code Changes Checklist

  • New or updated unit tests added
  • All existing tests pass (npm run test)
  • Code follows contributing guidelines
  • Telemetry/logging updated if relevant
  • No regressions or UX breakage

Reviewers: Please read our reviewer guidelines

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the database-management keymap so F5 runs SQL queries in editors but executes a notebook cell when working inside a notebook, aligning notebook UX more closely with the SQL editor experience.

Changes:

  • Updates the existing F5 → mssql.runQuery binding to exclude notebook contexts (!notebookEditorFocused).
  • Adds a new F5 → notebook.cell.execute binding when notebook cells are focused.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread extensions/database-management-keymap/package.json Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 5, 2026

PR Changes

Category Target Branch PR Branch Difference
vscode-mssql VSIX 6400 KB 6398 KB ⚪ -2 KB ( 0% )
sql-database-projects VSIX 7024 KB 7024 KB ⚪ 0 KB ( 0% )
data-workspace VSIX 535 KB 535 KB ⚪ 0 KB ( 0% )

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.91%. Comparing base (3f0320c) to head (e24ca9e).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #21457   +/-   ##
=======================================
  Coverage   72.91%   72.91%           
=======================================
  Files         325      325           
  Lines       96667    96667           
  Branches     5415     5415           
=======================================
  Hits        70483    70483           
  Misses      26184    26184           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lewis-sanchez lewis-sanchez merged commit 88b90f4 into main Mar 5, 2026
3 checks passed
@lewis-sanchez lewis-sanchez deleted the lewissanchez/sql-notebooks/fix-query-execute-shortcut branch March 5, 2026 19:44
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.

[Bug]: Query execution shortcut doesn't work properly in notebook cell

4 participants