Skip to content

Commit 62419bb

Browse files
authored
Merge pull request #28419 from Microsoft/elaborateAssert
Elaborate assert of infos attached to project
2 parents c058719 + 7bfc2c8 commit 62419bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/editorServices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ namespace ts.server {
10421042

10431043
project.close();
10441044
if (Debug.shouldAssert(AssertionLevel.Normal)) {
1045-
this.filenameToScriptInfo.forEach(info => Debug.assert(!info.isAttached(project)));
1045+
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))}`));
10461046
}
10471047
// Remove the project from pending project updates
10481048
this.pendingProjectUpdates.delete(project.getProjectName());

0 commit comments

Comments
 (0)