public class MarkupContentFactory extends Object
MarkupContent
Modifier and Type | Field and Description |
---|---|
static String |
MARKDOWN_SEPARATOR |
Constructor and Description |
---|
MarkupContentFactory() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.lsp4j.Hover |
createHover(List<org.eclipse.lsp4j.MarkupContent> values)
Create the hover from the given markup content list.
|
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.
|
static org.eclipse.lsp4j.MarkupContent |
createMarkupContent(String value,
String preferredKind,
ISharedSettingsRequest support)
Create the markup content according the given markup kind and the capability
of the client.
|
public static final String MARKDOWN_SEPARATOR
public static org.eclipse.lsp4j.MarkupContent createMarkupContent(String value, String preferredKind, ISharedSettingsRequest support)
value
- the documentation valuepreferredKind
- the preferred markup kindpublic static org.eclipse.lsp4j.Hover createHover(List<org.eclipse.lsp4j.MarkupContent> values)
values
- the list of documentation valuespublic static org.eclipse.lsp4j.Hover createHover(List<org.eclipse.lsp4j.MarkupContent> values, org.eclipse.lsp4j.Range defaultRange)
values
- the list of documentation valuesdefaultRange
- the default range.Copyright © 2022. All rights reserved.