microsoft / microsoft/vscode-mssql

[Bug]: Copy as In Clause menu item shouldn't appear if multiple columns are selected

Open
#21,971 0 comments 0 reactions 1 assignee View on GitHub

@aasimkhan30 is already working on this.

Since May 11, 2026.

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

Description

### Description

The Copy As In Clause results grid content menu item always generates an error when executed with more than one column selected. If the command is not valid in this context then it should be removed or disabled in the menu when multiple columns are selected, rather than being executable and failing.

Image

### Steps to Reproduce

1. Run a query and select some cells across columns
2. Execute Copy as In Clause menu command

Expected: Command works or is disabled/removed in menu

Actual: Command is there that fails consistently with a predicable/avoidable error

### Affected Area

- [ ] Connection dialog (SQL Server | Azure browse/Fabric browse)
- [ ] Query editor
- [x] Query results panel
- [ ] Object Explorer
- [ ] GitHub Copilot integration
- [ ] Preview/Edit data
- [ ] Table Designer
- [ ] Schema Designer
- [ ] Schema Compare
- [ ] Local SQL Server Container provisioning
- [ ] SQL database in Fabric provisioning
- [ ] DACPAC/BACPAC export/import
- [ ] SQL Database projects
- [ ] Query Plan Visualizer
- [ ] Other (please describe below)

### If you selected "Other", please describe the affected area

_No response_

### Environment Information

Latest

### Confirmation

- [x] I have searched existing issues and couldn't find a match
- [ ] I want to work on this issue

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.