lf-lang / vscode-lingua-franca

Lingua Franca extension for Visual Studio Code
Other
4 stars 3 forks source link

Comments in empty reactors are removed when saving #133

Closed ChadliaJerad closed 11 months ago

ChadliaJerad commented 11 months ago

In VSCode, when you declare a reactor, add comments (before anything else), and save, the comments are removed.

This is counterproductive, as sometimes one needs to organize thoughts first (defining the architecture), and saving is a reflex.

lhstrh commented 11 months ago

Which version of the extension are you using?

ChadliaJerad commented 11 months ago

I am using locally from vscode-lingua-franca... Not sure though... This feature is new to me.

lhstrh commented 11 months ago

Are you using the pre-release or v0.4.2? If the latter, please switch to the pre-release and let us know if that fixes the problem.

ChadliaJerad commented 11 months ago

I am not using a release or pre-release. The reason is that I don't want the editor to complain about what is different in the branch I am working on.

lhstrh commented 11 months ago

What are you using then? Can't debug if we don't know what version of the code you're using...

ChadliaJerad commented 11 months ago

I am installing from: https://github.com/lf-lang/vscode-lingua-franca (main branch)

lhstrh commented 11 months ago

OK, that's the same branch that the nightly pre-release uses (albeit with a more up-to-date lingua-franca).