Skip to content

Commit 061bff1

Browse files
committed
fix for number values in config() completion items (#9)
1 parent ce8b928 commit 061bff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ function createConfigItems(config, prefix = '') {
370370
item.filterText = item.insertText = `${prefix}${key}`
371371
item.sortText = naturalExpand(i.toString())
372372
if (typeof config[key] === 'string' || typeof config[key] === 'number') {
373-
item.detail = config[key]
373+
item.detail = config[key].toString()
374374

375375
let color = getColorFromValue(item.detail)
376376
if (color) {

0 commit comments

Comments
 (0)