use of org.apache.flex.compiler.filespecs.FileSpecification in project vscode-nextgenas by BowlerHatLLC.
the class LanguageServerFileSpecGetter method getFileSpecification.
public IFileSpecification getFileSpecification(String filePath) {
Path path = Paths.get(filePath);
if (sourceByPath.containsKey(path)) {
String code = sourceByPath.get(path);
if (path.endsWith(MXML_FILE_EXTENSION)) {
code = fixUnclosedXMLComment(code);
code = fixUnclosedScriptCDATA(code);
}
return new StringFileSpecification(filePath, code);
}
return new FileSpecification(filePath);
}
Aggregations