public class CompletionResponse extends org.eclipse.lsp4j.CompletionList implements ICompletionResponse
| Constructor and Description |
|---|
CompletionResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompletionAttribute(org.eclipse.lsp4j.CompletionItem completionItem)
Add completion attribute.
|
void |
addCompletionItem(org.eclipse.lsp4j.CompletionItem completionItem)
Add completion item.
|
void |
addCompletionItem(org.eclipse.lsp4j.CompletionItem completionItem,
boolean fromGrammar)
Add completion item and mark as coming from grammar.
|
boolean |
hasAttribute(String attribute) |
boolean |
hasSomeItemFromGrammar()
Returns
true if there are completion items coming from grammar
and false otherwise. |
public void addCompletionItem(org.eclipse.lsp4j.CompletionItem completionItem,
boolean fromGrammar)
ICompletionResponseaddCompletionItem in interface ICompletionResponsepublic void addCompletionItem(org.eclipse.lsp4j.CompletionItem completionItem)
ICompletionResponseaddCompletionItem in interface ICompletionResponsepublic boolean hasSomeItemFromGrammar()
ICompletionResponsetrue if there are completion items coming from grammar
and false otherwise.hasSomeItemFromGrammar in interface ICompletionResponsetrue if there are completion items coming from grammar
and false otherwise.public boolean hasAttribute(String attribute)
hasAttribute in interface ICompletionResponsepublic void addCompletionAttribute(org.eclipse.lsp4j.CompletionItem completionItem)
ICompletionResponseaddCompletionAttribute in interface ICompletionResponseCopyright © 2024. All rights reserved.