Package org.eclipse.lemminx.services
Class XMLCompletions
java.lang.Object
org.eclipse.lemminx.services.XMLCompletions
XML completions support.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.lsp4j.CompletionListdoComplete(DOMDocument xmlDocument, org.eclipse.lsp4j.Position position, SharedSettings settings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) doTagComplete(DOMDocument xmlDocument, org.eclipse.lsp4j.Position position, XMLCompletionSettings completionSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) static intgetOffsetFollowedBy(String s, int offset, ScannerState intialState, TokenType expectedToken) Returns starting offset of 'expectedToken' if it the next non whitespace token after 'initialState'org.eclipse.lsp4j.CompletionItemresolveCompletionItem(org.eclipse.lsp4j.CompletionItem unresolved, DOMDocument xmlDocument, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Returns the completion item with the empty fields resolved.
-
Constructor Details
-
XMLCompletions
-
-
Method Details
-
doTagComplete
public AutoCloseTagResponse doTagComplete(DOMDocument xmlDocument, org.eclipse.lsp4j.Position position, XMLCompletionSettings completionSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) -
getOffsetFollowedBy
public static int getOffsetFollowedBy(String s, int offset, ScannerState intialState, TokenType expectedToken) Returns starting offset of 'expectedToken' if it the next non whitespace token after 'initialState'- Parameters:
s-offset-intialState-expectedToken-- Returns: