Merge pull request #18960 from Microsoft/builderHandlesChangeInResolution

Builder handles changes in resolution/references when file's contents dont change
This commit is contained in:
Sheetal Nandi
2017-10-11 12:11:44 -07:00
committed by GitHub
5 changed files with 275 additions and 108 deletions

View File

@@ -216,13 +216,13 @@ namespace ts.TestFSWithWatch {
directoryName: string;
}
export class TestServerHost implements server.ServerHost {
export class TestServerHost implements server.ServerHost, FormatDiagnosticsHost {
args: string[] = [];
private readonly output: string[] = [];
private fs: Map<FSEntry> = createMap<FSEntry>();
private getCanonicalFileName: (s: string) => string;
getCanonicalFileName: (s: string) => string;
private toPath: (f: string) => Path;
private timeoutCallbacks = new Callbacks();
private immediateCallbacks = new Callbacks();
@@ -238,6 +238,10 @@ namespace ts.TestFSWithWatch {
this.reloadFS(fileOrFolderList);
}
getNewLine() {
return this.newLine;
}
toNormalizedAbsolutePath(s: string) {
return getNormalizedAbsolutePath(s, this.currentDirectory);
}