Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(compiler): typo #25496

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/compiler-cli/src/perform_watch.ts
Expand Up @@ -113,7 +113,7 @@ export function performWatchCompilation(host: PerformWatchHost):
let cachedOptions: ParsedConfiguration|undefined; // CompilerOptions cached from last compilation
let timerHandleForRecompilation: any; // Handle for 0.25s wait timer to trigger recompilation

const ingoreFilesForWatch = new Set<string>();
const ignoreFilesForWatch = new Set<string>();
const fileCache = new Map<string, CacheEntry>();

const firstCompileResult = doCompilation();
Expand Down Expand Up @@ -162,7 +162,7 @@ export function performWatchCompilation(host: PerformWatchHost):
cachedCompilerHost.writeFile = function(
fileName: string, data: string, writeByteOrderMark: boolean,
onError?: (message: string) => void, sourceFiles: ReadonlyArray<ts.SourceFile> = []) {
ingoreFilesForWatch.add(path.normalize(fileName));
ignoreFilesForWatch.add(path.normalize(fileName));
return originalWriteFileCallback(fileName, data, writeByteOrderMark, onError, sourceFiles);
};
const originalFileExists = cachedCompilerHost.fileExists;
Expand Down Expand Up @@ -191,7 +191,7 @@ export function performWatchCompilation(host: PerformWatchHost):
return ce.content !;
};
}
ingoreFilesForWatch.clear();
ignoreFilesForWatch.clear();
const oldProgram = cachedProgram;
// We clear out the `cachedProgram` here as a
// program can only be used as `oldProgram` 1x
Expand Down Expand Up @@ -253,7 +253,7 @@ export function performWatchCompilation(host: PerformWatchHost):
fileCache.delete(path.normalize(fileName));
}

if (!ingoreFilesForWatch.has(path.normalize(fileName))) {
if (!ignoreFilesForWatch.has(path.normalize(fileName))) {
// Ignore the file if the file is one that was written by the compiler.
startTimerForRecompilation();
}
Expand Down