Elaborate assert of infos attached to project
This commit is contained in:
parent
432772e5a3
commit
7bfc2c8113
1 changed files with 1 additions and 1 deletions
|
@ -1042,7 +1042,7 @@ namespace ts.server {
|
||||||
|
|
||||||
project.close();
|
project.close();
|
||||||
if (Debug.shouldAssert(AssertionLevel.Normal)) {
|
if (Debug.shouldAssert(AssertionLevel.Normal)) {
|
||||||
this.filenameToScriptInfo.forEach(info => Debug.assert(!info.isAttached(project)));
|
this.filenameToScriptInfo.forEach(info => Debug.assert(!info.isAttached(project), "Found script Info still attached to project", () => `${project.projectName}: ScriptInfos still attached: ${JSON.stringify(mapDefined(arrayFrom(this.filenameToScriptInfo.values()), info => info.isAttached(project) ? info : undefined))}`));
|
||||||
}
|
}
|
||||||
// Remove the project from pending project updates
|
// Remove the project from pending project updates
|
||||||
this.pendingProjectUpdates.delete(project.getProjectName());
|
this.pendingProjectUpdates.delete(project.getProjectName());
|
||||||
|
|
Loading…
Reference in a new issue