Interface ICompletionParticipant
-
- All Known Implementing Classes:
CompletionParticipantAdapter,ContentModelCompletionParticipant,EntitiesCompletionParticipant,FilePathCompletionParticipant,PrologCompletionParticipant,RNGCompletionParticipant,XMLReferencesCompletionParticipant,XSDCompletionParticipant,XSICompletionParticipant
public interface ICompletionParticipantCompletion participant API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ICompletionItemResolveParticipantgetResolveCompletionItemParticipant(String participantId)Returns the completion item resolver that corresponds to the given participant id or null otherwise.voidonAttributeName(boolean generateValue, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)voidonAttributeValue(String valuePrefix, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)Collects and stores attribute value completion items within the provided completion responseresponsevoidonDTDSystemId(String valuePrefix, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)Collects and stores systemId completion items within the provided completion responseresponsevoidonTagOpen(ICompletionRequest completionRequest, ICompletionResponse completionResponse, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)voidonXMLContent(ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
-
-
-
Method Detail
-
onTagOpen
void onTagOpen(ICompletionRequest completionRequest, ICompletionResponse completionResponse, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
- Throws:
Exception
-
onXMLContent
void onXMLContent(ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
- Throws:
Exception
-
onAttributeName
void onAttributeName(boolean generateValue, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception- Throws:
Exception
-
onAttributeValue
void onAttributeValue(String valuePrefix, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
Collects and stores attribute value completion items within the provided completion responseresponse- Parameters:
valuePrefix- the attribute value before the offset in which completion was invokedrequest- the completion requestresponse- the completion response- Throws:
Exception
-
onDTDSystemId
void onDTDSystemId(String valuePrefix, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
Collects and stores systemId completion items within the provided completion responseresponse- Parameters:
valuePrefix- the systemId value before the offset in which completion was invokedrequest- the completion requestresponse- the completion response- Throws:
Exception
-
getResolveCompletionItemParticipant
default ICompletionItemResolveParticipant getResolveCompletionItemParticipant(String participantId)
Returns the completion item resolver that corresponds to the given participant id or null otherwise.- Parameters:
participantId- the participant id to find the completion item resolver for- Returns:
- the completion item resolver that corresponds to the given participant id or null otherwise
-
-