d-language-server / dls

A Language Server implementation for D
http://dls.dub.pm
106 stars 15 forks source link

Log file as command line option #28

Closed andre2007 closed 5 years ago

andre2007 commented 5 years ago

While using dls from generic LSP plugin in IntelliJ it seems I do not have any possibility to set server options. At least the log file would be quite interesting. Could you add it as command line option?

LaurentTreguier commented 5 years ago

With 38b302fdc7b308e34bde7e03362460671547a30b, every initialization option will also be available as a command line option

andre2007 commented 5 years ago

Fantastic!

One question, as far as I can see you already use LDC for the releases. That is great. Do you use also the command line switches to produce most optimized code? I have a very big code base which even 32 bit dmd windows is unable to compile.

LaurentTreguier commented 5 years ago

The builds are made using dub's releaseMode and optimize options, which correspond to the -release and -O3 flags for ldc. I had left out inlining on purpose because I wondered if it was the cause of an issue (#20), but since it looks a lot like another issue that has been fixed (#25), I might add it back.

andre2007 commented 5 years ago

Thanks for the info