From 56fa8040c504edd59b91a2e62ac06ffb3847f5c6 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Sat, 6 Apr 2019 10:39:50 -0700 Subject: [PATCH] Fixed bug in resolution of relative imports. --- server/src/analyzer/importResolver.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/src/analyzer/importResolver.ts b/server/src/analyzer/importResolver.ts index db51dbbb4..7bf0e1402 100644 --- a/server/src/analyzer/importResolver.ts +++ b/server/src/analyzer/importResolver.ts @@ -203,11 +203,6 @@ export class ImportResolver { // Determine which search path this file is part of. let curDir = getDirectoryPath(this._sourceFilePath); for (let i = 1; i < moduleName.leadingDots; i++) { - // Make sure we don't walk out of the root directory. - if (!curDir.startsWith(this._executionEnvironment.root)) { - return undefined; - } - curDir = getDirectoryPath(curDir); }