From d727d5a5ebc1ef79a4f2060d3fd46c4d38f284cf Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Thu, 12 Mar 2020 15:11:05 -0700 Subject: [PATCH] Remove 'path' from assert call (#37372) Fixes #37369 --- src/services/services.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/services.ts b/src/services/services.ts index 11056dd276d..32fd03a331f 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1374,7 +1374,7 @@ namespace ts { // We do not support the scenario where a host can modify a registered // file's script kind, i.e. in one project some file is treated as ".ts" // and in another as ".js" - Debug.assertEqual(hostFileInformation.scriptKind, oldSourceFile.scriptKind, "Registered script kind should match new script kind.", path); + Debug.assertEqual(hostFileInformation.scriptKind, oldSourceFile.scriptKind, "Registered script kind should match new script kind."); return documentRegistry.updateDocumentWithKey(fileName, path, newSettings, documentRegistryBucketKey, hostFileInformation.scriptSnapshot, hostFileInformation.version, hostFileInformation.scriptKind); }