public static String normalizeSlashes(String path){
  return path.replaceAll("\\\\","/");
}

public static String normalizeSlashes ( String path ) { return path . replaceAll ( "\\\\" , "/" ) ; }
replace ' \ ' with ' / ' from the given path because tsserver normalize it like this .
