Skip to content

Commit

Permalink
fix for number values in config() completion items (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc committed Sep 25, 2018
1 parent ce8b928 commit 061bff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ function createConfigItems(config, prefix = '') {
item.filterText = item.insertText = `${prefix}${key}`
item.sortText = naturalExpand(i.toString())
if (typeof config[key] === 'string' || typeof config[key] === 'number') {
item.detail = config[key]
item.detail = config[key].toString()

let color = getColorFromValue(item.detail)
if (color) {
Expand Down

0 comments on commit 061bff1

Please sign in to comment.