public class SnippetBlock extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SnippetBlock.SnippetType
Represents Snippet Types in B7a LS.
|
Constructor and Description |
---|
SnippetBlock(String snippet,
SnippetBlock.SnippetType snippetType) |
SnippetBlock(String label,
String snippet,
String detail,
SnippetBlock.SnippetType snippetType) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.lsp4j.CompletionItem |
build(boolean isSnippetSupported)
Create a given completionItem's insert text.
|
String |
getLabel() |
String |
getString(boolean isSnippet)
Get the Snippet String.
|
public SnippetBlock(String label, String snippet, String detail, SnippetBlock.SnippetType snippetType)
public SnippetBlock(String snippet, SnippetBlock.SnippetType snippetType)
public org.eclipse.lsp4j.CompletionItem build(boolean isSnippetSupported)
isSnippetSupported
- Whether snippet is expected or plain text expectedpublic String getString(boolean isSnippet)
isSnippet
- Whether the snippet or plain text expectedString
public String getLabel()
Copyright © 2019 WSO2. All rights reserved.