Package org.eclipse.lemminx.commons
Class SnippetsBuilder
java.lang.Object
org.eclipse.lemminx.commons.SnippetsBuilder
Snippet syntax utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringchoice(int index, Collection<String> values) Returns the LSP choices snippets content.static voidchoice(int index, Collection<String> values, StringBuilder snippets) Add LSP choices snippets in the given snippets content.static voidplaceholders(int index, String text, StringBuilder snippets) static Stringtabstops(int index) static voidtabstops(int index, StringBuilder snippets)
-
Method Details
-
tabstops
-
tabstops
-
placeholders
-
choice
Returns the LSP choices snippets content.- Parameters:
index- the snippet index.values- the values for the choice.- Returns:
- the LSP choices snippets content.
-
choice
Add LSP choices snippets in the given snippets content.- Parameters:
index- the snippet index.values- the values for the choice.
-