Package org.eclipse.lemminx.utils
Class MarkupContentFactory
java.lang.Object
org.eclipse.lemminx.utils.MarkupContentFactory
Factory to create LSP4J
MarkupContent- Author:
- Angelo ZERR
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.lsp4j.HovercreateHover(List<org.eclipse.lsp4j.MarkupContent> values) Create the hover from the given markup content list.static org.eclipse.lsp4j.HovercreateHover(List<org.eclipse.lsp4j.MarkupContent> values, org.eclipse.lsp4j.Range defaultRange) Create the hover from the given markup content list and range.static org.eclipse.lsp4j.MarkupContentcreateMarkupContent(String value, String preferredKind, ISharedSettingsRequest support) Create the markup content according the given markup kind and the capability of the client.
-
Field Details
-
MARKDOWN_SEPARATOR
- See Also:
-
-
Constructor Details
-
MarkupContentFactory
public MarkupContentFactory()
-
-
Method Details
-
createHover
Create the hover from the given markup content list.- Parameters:
values- the list of documentation values- Returns:
- the hover from the given markup content list.
-
createHover
public static org.eclipse.lsp4j.Hover createHover(List<org.eclipse.lsp4j.MarkupContent> values, org.eclipse.lsp4j.Range defaultRange) Create the hover from the given markup content list and range.- Parameters:
values- the list of documentation valuesdefaultRange- the default range.- Returns:
- the hover from the given markup content list and range.