Skip to content

Commit 2b7a0a2

Browse files
author
angelozerr
committed
Hide emmited files for tsx.
1 parent c52971f commit 2b7a0a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

eclipse/ts.eclipse.ide.core/src/ts/eclipse/ide/core/utils/TypeScriptResourceUtil.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ public static boolean isEmittedFile(IFile jsOrJsMapFile) {
206206
if (StringUtils.isEmpty(tsFilename)) {
207207
return false;
208208
}
209-
return jsOrJsMapFile.getParent().exists(new Path(tsFilename));
209+
return jsOrJsMapFile.getParent().exists(new Path(tsFilename))
210+
|| jsOrJsMapFile.getParent().exists(new Path(tsFilename + "x"));
210211
}
211212

212213
public static Object[] getEmittedFiles(IFile tsFile) throws CoreException {
@@ -408,7 +409,7 @@ public static IDocument getDocument(IFile file) {
408409
}
409410
}
410411
}
411-
412+
412413
/**
413414
* Returns the file from the given {@link IDocument}.
414415
*/

0 commit comments

Comments
 (0)