Package org.eclipse.lemminx.client
Class InvalidPathWarner
java.lang.Object
org.eclipse.lemminx.client.AbstractXMLNotifier
org.eclipse.lemminx.client.InvalidPathWarner
This class sends a warning to the client via a jsonrpc notification
The cache is a Map<String, Set>
where the keys are the feature names and the value is a set of file paths for
which notifications have been sent already
-
Field Summary
Fields inherited from class org.eclipse.lemminx.client.AbstractXMLNotifier
cache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonInvalidFilePath(Set<String> invalidPaths, PathFeature feature) Sends the invalid path warning to the client only if the providedinvalidPathsset does not match thefeature's cache set After sending the warning, thefeature's cache set is replaced with the providedinvalidPathssetMethods inherited from class org.eclipse.lemminx.client.AbstractXMLNotifier
addToCache, evictKey, evictValue, existsInCache, existsInCache, getSharedSettings, sendNotification, setCacheValues
-
Constructor Details
-
InvalidPathWarner
-
-
Method Details
-
onInvalidFilePath
Sends the invalid path warning to the client only if the providedinvalidPathsset does not match thefeature's cache set After sending the warning, thefeature's cache set is replaced with the providedinvalidPathsset- Parameters:
invalidPaths- the set of invalid pathsfeature- the feature
-