Skip to content

Add code action to rewrite numbers in a different base#5965

Merged
lpil merged 3 commits into
gleam-lang:mainfrom
giacomocavalieri:fix-5889
Jul 15, 2026
Merged

Add code action to rewrite numbers in a different base#5965
lpil merged 3 commits into
gleam-lang:mainfrom
giacomocavalieri:fix-5889

Conversation

@giacomocavalieri

Copy link
Copy Markdown
Member

This PR closes #5889
It also fixes a bug in the lexer to accept -0x..., -0b..., -0o... as proper negative numbers.

  • The changes in this PR have been discussed beforehand in an issue
  • The issue for this PR has been linked
  • Tests have been added for new behaviour
  • The changelog has been updated for any user-facing changes

@giacomocavalieri giacomocavalieri changed the title Fix 5889 Add code action to rewrite numbers in a different base Jul 11, 2026
Comment thread language-server/src/code_action.rs Outdated
@lpil

lpil commented Jul 14, 2026

Copy link
Copy Markdown
Member

dbgs left in!

@giacomocavalieri

Copy link
Copy Markdown
Member Author

Oops, fixed!

@lpil lpil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!! One tiny question inline

Comment thread language-server/src/code_action.rs Outdated

@0xda157 0xda157 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@lpil lpil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fab!!! Thank you

@lpil
lpil merged commit 5c775ce into gleam-lang:main Jul 15, 2026
18 checks passed
@giacomocavalieri
giacomocavalieri deleted the fix-5889 branch July 15, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LS: code action to convert int literals between bases

3 participants