chore: improve wording in comment
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
This commit is contained in:
parent
49c7844a6e
commit
5d9ce3abf2
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ impl menu::Item for CompletionItem {
|
|||
value, ..
|
||||
}) => value,
|
||||
};
|
||||
// LSPs which send Color completion items include a 6 digit hex code at the end for the color. The extra 1 digit is for the '#'
|
||||
// Language servers which send Color completion items tend to include a 6
|
||||
// digit hex code at the end for the color. The extra 1 digit is for the '#'
|
||||
text.get(text.len().checked_sub(7)?..)
|
||||
})
|
||||
.and_then(Color::from_hex)
|
||||
|
|
Loading…
Reference in a new issue