public class XMLCompletions extends Object
Constructor and Description |
---|
XMLCompletions(XMLExtensionsRegistry extensionsRegistry) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.lsp4j.CompletionList |
doComplete(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
SharedSettings settings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
AutoCloseTagResponse |
doTagComplete(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
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'
|
public XMLCompletions(XMLExtensionsRegistry extensionsRegistry)
public org.eclipse.lsp4j.CompletionList doComplete(DOMDocument xmlDocument, org.eclipse.lsp4j.Position position, SharedSettings settings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
public AutoCloseTagResponse doTagComplete(DOMDocument xmlDocument, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
public static int getOffsetFollowedBy(String s, int offset, ScannerState intialState, TokenType expectedToken)
s
- offset
- intialState
- expectedToken
- Copyright © 2020. All rights reserved.