Commit 7de1b0c
committed
feat(lsp): derive code-hint signature highlighting from the file language
The signature block in the completion doc popup was hard-wired to ```typescript.
The LSP `detail` string carries no language tag, so derive the highlight language
from the active editor instead. The JS family maps to ts/tsx because vtsls emits
TypeScript-syntax signatures even in .js/.jsx (TS is a superset); every other
language uses its own id, and _highlightCode no-ops gracefully for ids hljs
doesn't know.1 parent 7f17ce0 commit 7de1b0c
1 file changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
156 | 177 | | |
157 | 178 | | |
158 | 179 | | |
| |||
163 | 184 | | |
164 | 185 | | |
165 | 186 | | |
166 | | - | |
| 187 | + | |
167 | 188 | | |
168 | 189 | | |
169 | 190 | | |
| |||
0 commit comments