diff --git a/src/services/shims.ts b/src/services/shims.ts index 1512c5df523..d298dfe1cb2 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -931,7 +931,7 @@ namespace ts { public resolveModuleName(fileName: string, moduleName: string, compilerOptionsJson: string): string { return this.forwardJSONCall(`resolveModuleName('${fileName}')`, () => { let compilerOptions = JSON.parse(compilerOptionsJson); - return resolveModuleName(normalizeSlashes(fileName), moduleName, compilerOptions, this.host); + return resolveModuleName(moduleName, normalizeSlashes(fileName), compilerOptions, this.host); }); }