fix handling if there is no commonPrefix

This commit is contained in:
Klaus Meinhardt
2018-08-09 11:50:00 +02:00
parent 20442fe363
commit d2dc17d765
2 changed files with 3 additions and 6 deletions

View File

@@ -262,7 +262,7 @@ namespace ts {
failedLookupLocations: [],
});
assert.isDefined(cache.get("c:/foo"));
assert.isUndefined(cache.get("c:/"));
assert.isDefined(cache.get("c:/"));
assert.isUndefined(cache.get("d:/"));
cache = resolutionCache.getOrCreateCacheForModuleName("f");