Improving VSCode extension for Motoko

Project highlights

We are thrilled to announce that we (Serokell Company) have finished our third Dfinity grant, which means more improvements to the Motoko ecosystem. This time, we are enhancing the VSCode Extension for the Motoko language.

New features

  • Autocompletion now works for symbols from imported modules.
  • Finding references is supported for fields of modules, actors, and classes, along with improving goto-definition.
  • Syntax errors now have an example of valid code at that point.
  • The parser of the moc compiler now supports error recovery, allowing you to see all syntax errors at once and use more IDE features while editing. Drawing from our experience with other smart contract compilers, we implemented this with minimal changes (see our fork of ocaml-recovery-parser).
Screenshots with new features

Bug fixes

  • Overall performance has been improved by caching type information from the moc compiler. This enhancement is especially beneficial for large projects. Additionally, the extension repository now includes an automated benchmark for investigating performance issues.
  • Fixed bugs related to the “go to definition” functionality

How to try

All these features will be available in the next release of the VSCode extension for Motoko.

12 Likes

giphy
Looks great!!!

2 Likes

Thank you so much. This will be a game changer

2 Likes

Great stuff, can’t wait to use this :heart_eyes:

1 Like