Description
The command MSSQL: Execute Current Statement currently behaves as Execute selected text, or execute the current statement if no selection exists.” This causes confusion for users who expect it to only execute the statement under the cursor.
Expected Behavior:
Command name and description should clearly indicate that it runs selected text if present, or current statement when nothing is selected.
Actual Behavior:
The current label (“Execute Current Statement”) implies that it always executes only the statement under the cursor, which is misleading.
Proposed Fix:
Rename the command to MSSQL: Execute Selected Text in Editor.
Steps to Reproduce
- Open any SQL file.
- Select a portion of text and run the command
MSSQL: Execute Current Statement.
- Observe that it executes the selected text, not just the statement under the cursor.
Affected Area
If you selected "Other", please describe the affected area
No response
Environment Information
- VS Code Version: Latest
- MSSQL Extension Version: Latest
- OS: macOS 15.7.1
Confirmation
Description
The command
MSSQL: Execute Current Statementcurrently behaves as Execute selected text, or execute the current statement if no selection exists.” This causes confusion for users who expect it to only execute the statement under the cursor.Expected Behavior:
Command name and description should clearly indicate that it runs selected text if present, or current statement when nothing is selected.
Actual Behavior:
The current label (“Execute Current Statement”) implies that it always executes only the statement under the cursor, which is misleading.
Proposed Fix:
Rename the command to
MSSQL: Execute Selected Text in Editor.Steps to Reproduce
MSSQL: Execute Current Statement.Affected Area
If you selected "Other", please describe the affected area
No response
Environment Information
Confirmation