Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lsp4e-dev] Question to snippet support in LSP4E

Hi Mickael,

 

Thanks for your reply. The snippet feature of our language server works fine in visual studio code. That was the reason for my questions about general snippet support in LSP4E.

I will have a look at the mentioned class (including test) and check whether it’s an issue in our language server or in the LSP4E plugin. I will provide a fix if a find something that doesn’t work as expected.

 

Thanks,

Markus

 

From: <lsp4e-dev-bounces@xxxxxxxxxxx> on behalf of Mickael Istria <mistria@xxxxxxxxxx>
Reply-To: lsp4e developer discussions <lsp4e-dev@xxxxxxxxxxx>
Date: Thursday, 7. December 2017 at 14:54
To: lsp4e developer discussions <lsp4e-dev@xxxxxxxxxxx>
Subject: Re: [lsp4e-dev] Question to snippet support in LSP4E

 

 

 

On Thu, Dec 7, 2017 at 2:27 PM, Ofterdinger, Markus <markus.ofterdinger@xxxxxxx> wrote:

Is the variable support / replacement part of the LSP4E plugin?

 

Yes, it should be supported. See LSIncompleteCompletionProposal, line 293 to 370 for the part of logic which does that, and some related tests in  CompleteCompletionTest.

 

If it’s currently not supported, are there plans to provide this feature in a future release?

 

Snippets should work as described in the Language Server Protocol. If you think LSP4E is not behaving as defined by the specification, or think it can do some things better, please open bugs and try to contribute patches. It shouldn't be too hard to work on it as there is alraedy a test suite, so it's mostly a matter of adding the proper test and finding the bug and fixing it.

 

Or should the variable handling done by the consumer of the LSP4E plugin itself? If yes, what would be the right hook / extension point to get into this game to replace the variables before the snippet is added to the document?

 

Everything that's part of the protocol is supposed to work out-of-the-box without specific hook. The fix should happen directly in LSP4E.

 

Cheers,


Back to the top