microsoft / microsoft/vscode-mssql

[Feature Request]: Wildcard expansion in INSERT clause - Populate list of table fields

Open
#19,047 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area - Language Service Enhancement User-filed
Dominant language
TypeScript
Stars
1.9k
Forks
610
Avg merge
2d 3h
Merged PRs (30d)
97

Description

the extension already has wildcard expansion for SELECT statements.

I think it'd be simple enough to do for INSERT clause too.

Example of mssql extension doing SELECT * wildcard expansion. Feature request is for **INSERT** clauses too
![Image](https://github.com/user-attachments/assets/0f77d847-81d6-4469-8239-cc8f24ba608b)

`INSERT INTO dbo.MyTable`

example references in other extensions:

* https://docs.devart.com/studio-for-sql-server/writing-and-executing-sql-statements/wildcard-expansion-in-sql-statements.html
* https://docs.devart.com/sqlcomplete/writing-sql-with-code-completion/statement-expansion.html#:~:text=after%20the%20*%20symbol.-,Expand%20the%20INSERT%20statement,-This%20feature%20allows
* * Note in this example, this populates the VALUES clause with dummy data. this is not strictly necessary

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

No file, test, or entry point is named. Start by locating the existing SELECT wildcard expansion referenced in the issue, then trace how completion handles INSERT INTO dbo.MyTable; done means pressing Tab can populate the table's field list without requiring dummy VALUES data.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql, typescript
Domain
databases, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.