Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/gopls: evaluate hex/binary integer literals when mousing over #45802

Open
soypat opened this issue Apr 27, 2021 · 0 comments
Open

x/tools/gopls: evaluate hex/binary integer literals when mousing over #45802

soypat opened this issue Apr 27, 2021 · 0 comments

Comments

@soypat
Copy link

@soypat soypat commented Apr 27, 2021

What version of Go are you using (go version)?

$ gopls version
golang.org/x/tools/gopls v0.6.10
    golang.org/x/tools/gopls@v0.6.10 h1:8Ebz8PymS2umcuCFhoz67unyJfWsipjTIrkBUF9kypg=

$ VsCode settings:
 "gopls": {	
        "ui.semanticTokens": true,
	},
    "editor.semanticHighlighting.enabled": true,

What did you do?

Mouse over a hex/binary notation integer

var (

    hex = 0xe34e
    bigBin = 0b1001001
    x = hex*0b1101
)

What did you expect to see?

Gopls evaluate the number in decimal form and show me the result (I'm in VSCode). Gopls does this for const identifiers and it is super helpful!

What did you see instead?

Nothing

@gopherbot gopherbot added this to the Unreleased milestone Apr 27, 2021
@soypat soypat changed the title x/tools/gopls x/tools/gopls Evaluate hex/binary integer literals when mousing over Apr 27, 2021
@soypat soypat changed the title x/tools/gopls Evaluate hex/binary integer literals when mousing over x/tools/gopls: Evaluate hex/binary integer literals when mousing over Apr 27, 2021
@stamblerre stamblerre changed the title x/tools/gopls: Evaluate hex/binary integer literals when mousing over x/tools/gopls: evaluate hex/binary integer literals when mousing over Apr 27, 2021
@suzmue suzmue modified the milestones: Unreleased, gopls/unplanned Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants