microsoft / microsoft/vscode-mssql

[Feature Request]: Add setting to disable automatic bracket-wrapping of reserved words in IntelliSense completions

Open
#21,876 0 comments 0 reactions 0 assignees View on GitHub
Area - Language Service Enhancement User-filed
Dominant language
TypeScript
Stars
1.9k
Forks
610
Avg merge
2d 3h
Merged PRs (30d)
97

Description

### Feature Description

A setting to disable automatic bracket-wrapping of reserved words when inserting IntelliSense completions, so the raw identifier is inserted instead.

### Problem and Motivation

When accepting an IntelliSense completion for a T-SQL reserved word used as a column name (e.g. type, name, value), the extension wraps it in square brackets — producing [type] rather than type. This is unhelpful when querying a schema that uses unbracketed identifiers, as it adds noise.

A secondary issue: bracket-wrapped identifiers are not highlighted consistently with their unbracketed equivalents (e.g. o.type is coloured as a column name; o.[type] is not). This appears related to #726, marked as fixed in v1.10.1.

Current workaround: Dismiss IntelliSense with Escape and type the identifier manually, or disable editor.quickSuggestions for SQL entirely.

Extension version: 1.41.0
VS Code version: 1.115.0

### Related Area

- [ ] Connection dialog (SQL Server | Azure browse/Fabric browse)
- [x] Query editor
- [ ] 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 area

_No response_

### Confirmation

- [x] I have searched existing feature requests and couldn't find a match
- [ ] I want to help implement this feature

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start in the query editor's IntelliSense completion flow and trace how reserved words are inserted; done means a setting can disable square-bracket wrapping so the raw identifier is inserted.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.