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: 1
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: 14349
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

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
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 Sep 30 07:40:48 GMT 2022

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

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

Back to the top