vscode-motoko icon indicating copy to clipboard operation
vscode-motoko copied to clipboard

No wigglies on https://github.dev

Open ggreif opened this issue 2 years ago • 2 comments

  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.

ggreif avatar Nov 11 '23 11:11 ggreif

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.

rvanasa avatar Nov 11 '23 16:11 rvanasa

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.

ggreif avatar Nov 11 '23 17:11 ggreif