Feat(WebWorker): Add WebWorker Image Filter Demo

This commit is contained in:
Jason Teplitz
2015-07-31 10:33:22 -07:00
committed by jteplitz
parent 2dcf714d2b
commit 84463cf0bd
29 changed files with 694 additions and 21 deletions

View File

@ -217,9 +217,10 @@ class CustomLanguageServiceHost implements ts.LanguageServiceHost {
* not worth the potential issues with stale cache records.
*/
getScriptSnapshot(tsFilePath: string): ts.IScriptSnapshot {
let absoluteTsFilePath = (tsFilePath == this.defaultLibFilePath) ?
tsFilePath :
path.join(this.treeInputPath, tsFilePath);
let absoluteTsFilePath =
(tsFilePath == this.defaultLibFilePath || path.isAbsolute(tsFilePath)) ?
tsFilePath :
path.join(this.treeInputPath, tsFilePath);
if (!fs.existsSync(absoluteTsFilePath)) {
// TypeScript seems to request lots of bogus paths during import path lookup and resolution,