dfinity / vscode-motoko

Motoko language support for VS Code.
Apache License 2.0
42 stars 15 forks source link

No wigglies on https://github.dev #253

Open ggreif opened 8 months ago

ggreif commented 8 months ago
  1. open https://github.dev/dfinity/motoko-base
  2. install the Motoko extension
  3. open src/Char.mo
  4. edit-in a type error
  5. observe that no wigglies appear

The other features (like go to definition) also don't seem to work.

rvanasa commented 8 months ago

This is known behavior. Most language support extensions are entirely unusable in github.dev (e.g. Rust, OCaml, Solidity), so we're significantly ahead of the curve in terms of browser support with syntax highlighting and formatting in the browser.

Adding type checking for web environments is a major undertaking, since we would need to create browser versions of Vessel and Mops (as well as parts of dfx) for the compiler to work as expected for any project with a dfx.json file. However, it would be possible due to using moc.js under the hood for the language server. If there's enough interest, we could certainly look into adding more features to the web version of the extension.

ggreif commented 8 months ago

I see. Let's leave this open as a feature request. I was just naïvely expecting that it works out of the box if it installs. Ah, well.