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

Format selection on "use type ..." delete trailing ; #1128

Closed JHag6694 closed 1 year ago

JHag6694 commented 1 year ago

Hello

I face a small problem with ALS, detected in 23.0.12 and 23.0.14 on VS Code / Windows.

When I try to use "Format selection" on a "use type ...", it deletes trailing ";"

Animation2

joaopsazevedo commented 1 year ago

@JHag6694 thanks for reporting this issue. We can replicate and will fix as soon as possible.

JHag6694 commented 1 year ago

FYI, same problem with expression function.

After calling "Format selection", trailing ";" is deleted See: image

AnthonyLeonardoGracio commented 1 year ago

Hello @JHag6694,

This is now fixed in the latest version of the extension. Thanks for the report!

Regards,