Skip to content

Commit 4f7c0e5

Browse files
committed
Simplify event sent on background project update since its anyways just to update the error list
1 parent b536f9d commit 4f7c0e5

File tree

6 files changed

+137
-227
lines changed

6 files changed

+137
-227
lines changed

src/compiler/builder.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ namespace ts {
3535

3636
/** Emit the changed files and clear the cache of the changed files */
3737
emitChangedFiles(program: Program): EmitOutputDetailed[];
38-
/** Get the changed files since last query and then clear the cache of changed files */
39-
getChangedProgramFiles(program: Program): ChangedProgramFiles;
4038
/** When called gets the semantic diagnostics for the program. It also caches the diagnostics and manage them */
4139
getSemanticDiagnostics(program: Program, cancellationToken?: CancellationToken): Diagnostic[];
4240

@@ -103,7 +101,6 @@ namespace ts {
103101
getFilesAffectedBy,
104102
emitFile,
105103
emitChangedFiles,
106-
getChangedProgramFiles,
107104
getSemanticDiagnostics,
108105
clear
109106
};
@@ -273,30 +270,6 @@ namespace ts {
273270
return diagnostics || emptyArray;
274271
}
275272

276-
function getChangedProgramFiles(program: Program): ChangedProgramFiles {
277-
ensureProgramGraph(program);
278-
279-
let filesToEmit: string[];
280-
const changedFiles = createMap<string>();
281-
enumerateChangedFilesEmitOutput(program, /*emitOnlyDtsFiles*/ true,
282-
// All the changed files are required to get diagnostics
283-
(changedFileName, changedFilePath) => addFileForDiagnostics(changedFileName, changedFilePath),
284-
// Emitted file is for emit as well as diagnostic
285-
(_emitOutput, sourceFile) => {
286-
(filesToEmit || (filesToEmit = [])).push(sourceFile.fileName);
287-
addFileForDiagnostics(sourceFile.fileName, sourceFile.path);
288-
});
289-
changedFileNames.clear();
290-
return {
291-
filesToEmit: filesToEmit || emptyArray,
292-
changedFiles: arrayFrom(changedFiles.values())
293-
};
294-
295-
function addFileForDiagnostics(fileName: string, path: Path) {
296-
changedFiles.set(path, fileName);
297-
}
298-
}
299-
300273
function clear() {
301274
isModuleEmit = undefined;
302275
emitHandler = undefined;

0 commit comments

Comments
 (0)