AdaCore / ada_language_server

Server implementing the Microsoft Language Protocol for Ada and SPARK
GNU General Public License v3.0
230 stars 54 forks source link

Adopt Entomy's Snippets #1080

Closed Joebeazelman closed 10 months ago

Joebeazelman commented 1 year ago

I've been using Entomy's snippets plugin and prefer it over ALS's built-in snippets. It covers a few more syntax variations than ALS's default one. For instance, the default snippet for case is:

case var is
end case;

While for Entomy it is:

case var is 
    when opt1 =>
    when others =>
end case;

Entomy ada-snippets is no longer available on GitHub, but the pre-built extension, however, is still available from VSCode marketplace and is licensed as unlicensed (see unlicensed.org) according to its readme file. I was able to download and extract the snippets from ada-snippets.vsix.

I've enclosed it for your review. If Git wasn't so mind-numbingly difficult to use, I would've submitted it as a pull request.

Archive.zip

reznikmm commented 1 year ago

sending PR on github is very simple. 1) Find the file in web interface. 2) Push edit button (near to "blame") 3) Replace/edit content 4) Push "Propose change" - you have done!

Joebeazelman commented 1 year ago

I'm not sure, but it looks like the snippets are there. Is this correct?

reznikmm commented 1 year ago

No. I still have case Variable is\n\nend case;

reznikmm commented 10 months ago

Thank you!