microsoft / microsoft/vscode-pgsql

Feature Request: Add setting to split "current" query by multiple newlines

Open
#83 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
No language data
Stars
395
Forks
33
Avg merge
1h 46m
Merged PRs (30d)
3

Description

The hotkey to execute sql checks for ; to differentiate queries. It is very handy to just look for multiple newlines instead:


select * from something

select * from something where 1=1

If your cursor was just on the last line, it would execute the where 1=1 query instead of failing.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the hotkey to execute SQL and trace how the current query is selected from semicolon-separated text. Define how a configurable multiple-newline split should interact with the cursor and the existing semicolon behavior. Done means the example executes only the query containing the cursor when the setting is enabled, with existing behavior preserved otherwise.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, vscode
Domain
database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.