Class FilePathCompletionParticipant
java.lang.Object
org.eclipse.lemminx.services.extensions.completion.CompletionParticipantAdapter
org.eclipse.lemminx.extensions.filepath.participants.FilePathCompletionParticipant
- All Implemented Interfaces:
ICompletionParticipant
Extension to support completion for file, folder path in:
- attribute value:
<item path="file:///C:/folder" /> <item path="file:///C:/folder file:///C:/file.txt" /> <item path="/folder" />
- DTD DOCTYPE SYSTEM
<!DOCTYPE parent SYSTEM "file.dtd">
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAttributeValue(String value, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Collects and stores attribute value completion items within the provided completion responseresponsevoidonDTDSystemId(String value, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Collects and stores systemId completion items within the provided completion responseresponsevoidonXMLContent(ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) voidonXMLModelHref(String value, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Collects and stores completion items for the href pseudo-attribute of an<?xml-model?>processing instruction.Methods inherited from class org.eclipse.lemminx.services.extensions.completion.CompletionParticipantAdapter
onAttributeName, onTagOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.lemminx.services.extensions.completion.ICompletionParticipant
getResolveCompletionItemParticipant
-
Constructor Details
-
FilePathCompletionParticipant
-
-
Method Details
-
onAttributeValue
public void onAttributeValue(String value, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception Description copied from interface:ICompletionParticipantCollects and stores attribute value completion items within the provided completion responseresponse- Specified by:
onAttributeValuein interfaceICompletionParticipant- Overrides:
onAttributeValuein classCompletionParticipantAdapter- Parameters:
value- the attribute value before the offset in which completion was invokedrequest- the completion requestresponse- the completion response- Throws:
Exception
-
onXMLContent
public void onXMLContent(ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception - Specified by:
onXMLContentin interfaceICompletionParticipant- Overrides:
onXMLContentin classCompletionParticipantAdapter- Throws:
Exception
-
onDTDSystemId
public void onDTDSystemId(String value, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception Description copied from interface:ICompletionParticipantCollects and stores systemId completion items within the provided completion responseresponse- Specified by:
onDTDSystemIdin interfaceICompletionParticipant- Overrides:
onDTDSystemIdin classCompletionParticipantAdapter- Parameters:
value- the systemId value before the offset in which completion was invokedrequest- the completion requestresponse- the completion response- Throws:
Exception
-
onXMLModelHref
public void onXMLModelHref(String value, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception Description copied from interface:ICompletionParticipantCollects and stores completion items for the href pseudo-attribute of an<?xml-model?>processing instruction.- Parameters:
value- the href value before the offset in which completion was invokedrequest- the completion requestresponse- the completion response- Throws:
Exception
-