Skip to content

Commit

Permalink
[move-ide] Added support for enums (#18124)
Browse files Browse the repository at this point in the history
## Description 

This PR adds enums support to the Move analyzer. 

In this PR, I also sneaked a fix for symbols merging, which was not very
robust when multiple packages are built within the same IDE instance.
It's much more robust to keep symbols on the per-package basis, even if
it's more memory-intensive.

## Test plan 

All existing and newly added tests must pass.
  • Loading branch information
awelc authored Jun 29, 2024
1 parent 723639d commit 090e222
Show file tree
Hide file tree
Showing 21 changed files with 2,297 additions and 505 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Move source file (a file with a `.move` file extension) and:
- Place your cursor on a delimiter, such as `<`, `(`, or `{`, and its corresponding delimiter --
`>`, `)`, or `}` -- will be highlighted.
- As you type, the editor will offer completion suggestions, in particular:
- struct field name and method name suggestions following `.` being typed
- code snippets to complete `init` function and object type definitions
- If the opened Move source file is located within a buildable project (a `Move.toml` file can be
found in one of its parent directories), the following advanced features will also be available:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"publisher": "mysten",
"icon": "images/move.png",
"license": "Apache-2.0",
"version": "1.0.5",
"version": "1.0.6",
"preview": true,
"repository": {
"url": "https://github.com/MystenLabs/sui.git",
Expand Down
Loading

0 comments on commit 090e222

Please sign in to comment.