maziac / hex-hover-converter

MIT License
9 stars 3 forks source link

Work for constants? #7

Closed rotateLeft closed 3 years ago

rotateLeft commented 3 years ago

Can this be extended to also convert named constants?

Ie, define constant (Python):

FOOBARBAZ = 0xEA0000

Hover over, with this extension installed, tooltip will show:

(constant) FOOBARBAZ: Literal[15335424]

maziac commented 3 years ago

The hex-hover-converter converts only numbers. It is programming language agnostic.

And I want to keep it simple.

So I don't think I will ever support constants. But you can, of course, fork the repository and implement yourself.