microsoft / microsoft/vscode-mssql
[Bug]: Copy as In Clause menu item shouldn't appear if multiple columns are selected
@aasimkhan30 is already working on this.
Since May 11, 2026.
- 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.
### 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.