Commit c6c8860
Fix VECTOR(n) columns rendering as JSON hyperlinks in results grid (#21835)
VECTOR values like [0.1,2,30] are valid JSON arrays, so the per-cell
JSON detection in getColumnFormatter was marking them as isJson=true and
rendering them blue/clickable. Add isVector to IDbColumn (populated from
DbColumnWrapper.IsVector in sqltoolsservice) and use it in
getColumnFormatter to return textFormatter directly, bypassing the
XML/JSON sampling path entirely.
Fixes: #21806
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent aa64d1e commit c6c8860
4 files changed
Lines changed: 9 additions & 0 deletions
File tree
- extensions/mssql
- src
- models
- webviews/pages/QueryResult
- typings
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
365 | 371 | | |
366 | 372 | | |
367 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2708 | 2708 | | |
2709 | 2709 | | |
2710 | 2710 | | |
| 2711 | + | |
2711 | 2712 | | |
2712 | 2713 | | |
2713 | 2714 | | |
| |||
0 commit comments