fix for number values in config() completion items (#9)
parent
ce8b928891
commit
061bff14f6
|
@ -370,7 +370,7 @@ function createConfigItems(config, prefix = '') {
|
||||||
item.filterText = item.insertText = `${prefix}${key}`
|
item.filterText = item.insertText = `${prefix}${key}`
|
||||||
item.sortText = naturalExpand(i.toString())
|
item.sortText = naturalExpand(i.toString())
|
||||||
if (typeof config[key] === 'string' || typeof config[key] === 'number') {
|
if (typeof config[key] === 'string' || typeof config[key] === 'number') {
|
||||||
item.detail = config[key]
|
item.detail = config[key].toString()
|
||||||
|
|
||||||
let color = getColorFromValue(item.detail)
|
let color = getColorFromValue(item.detail)
|
||||||
if (color) {
|
if (color) {
|
||||||
|
|
Loading…
Reference in New Issue