atom-languageclient icon indicating copy to clipboard operation
atom-languageclient copied to clipboard

Implement and Advertise Snippet Support

Open wbinnssmith opened this issue 8 years ago • 8 comments
trafficstars

Issue-izing the TODO found at the autocomplete adapter

When snippet support is implemented, the client should should also advertise this via the client capabilities sent to each language server.

wbinnssmith avatar May 02 '17 17:05 wbinnssmith

We're targeting v2 of the spec (v3 is still in flux) so we can skip the client capabilities part for now.

damieng avatar May 02 '17 18:05 damieng

oh! didn't even realize client capabilities was part of v3.

it looks like v2 has a distinct Snippet completion type (which v3 has as well), but v3 (in its current form at least) has the option to use a snippet as the insertTextFormat for non-Snippet completion types. Looks like that's where having the client advertise its support for snippets is most useful as the server can decide the appropriate insertTextFormat to send back.

In the case of Flow, we can provide function completions with snippet text that expand to fill in the function's arguments, so this will be useful when we support v3.

wbinnssmith avatar May 02 '17 18:05 wbinnssmith

v3 is still in flux

I thought v3 came out in December 2016. Am I misunderstanding something?

rcjsuen avatar Aug 07 '17 06:08 rcjsuen

https://github.com/Microsoft/language-server-protocol/commits/master/protocol.md shows there were changes all through May.

We'll add support for the v3 features in a future update.

damieng avatar Aug 07 '17 06:08 damieng

I don't believe those are breaking changes but certainly better safe than sorry.

rcjsuen avatar Aug 07 '17 06:08 rcjsuen

v2 part is now done.

damieng avatar Nov 03 '17 16:11 damieng

@wbinnssmith I think this has now been implemented through various incremental commits - can you confirm?

damieng avatar Feb 20 '18 17:02 damieng

Development of atom-languageclient has officially moved to https://github.com/atom-ide-community/atom-languageclient 🎉

If this is still an issue please consider opening an issue on that repo.

UziTech avatar Oct 19 '20 19:10 UziTech