Class InvalidPathWarner

java.lang.Object
org.eclipse.lemminx.client.AbstractXMLNotifier
org.eclipse.lemminx.client.InvalidPathWarner

public class InvalidPathWarner extends AbstractXMLNotifier
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
  • Constructor Details

  • Method Details

    • onInvalidFilePath

      public void onInvalidFilePath(Set<String> invalidPaths, PathFeature feature)
      Sends the invalid path warning to the client only if the provided invalidPaths set does not match the feature's cache set After sending the warning, the feature's cache set is replaced with the provided invalidPaths set
      Parameters:
      invalidPaths - the set of invalid paths
      feature - the feature