Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to add Template Proposal in Xtext as LSP for VSCODE
How to add Template Proposal in Xtext as LSP for VSCODE [message #1847453] Wed, 27 October 2021 16:37 Go to next message
wang yan is currently offline wang yanFriend
Messages: 3
Registered: October 2021
Junior Member
I want to use xtext as the language server for vscode, and I have tried the https://github.com/itemis/xtext-languageserver-example/tree/master/vscode-extension-self-contained, it's works fine.
And now I want to use Template Proposals as Snippets but don't know how to do it. One way is to create a ITemplateProposalProvider but it is in the jar org.eclipse.xtext.ui that I cannot find in maven repo. How could I do to provide the snippet_syntax?
Re: How to add Template Proposal in Xtext as LSP for VSCODE [message #1847458 is a reply to message #1847453] Thu, 28 October 2021 02:58 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14669
Registered: July 2009
Senior Member
https://github.com/itemis/xtext-languageserver-example/blob/4b6cd4607d44b92d34e9ebe235048f2c62aa4ce1/org.xtext.example.mydsl.ide/src/org/xtext/example/mydsl/ide/contentassist/MyDslIdeContentProposalProvider.xtend#L18

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:How could empty elements be allowed in a whitespace-aware DSL in xtext?
Next Topic:using custom java bean in my language
Goto Forum:
  


Current Time: Fri Apr 26 22:37:35 GMT 2024

Powered by FUDForum. Page generated in 0.03098 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top