Skip to content

Commit

Permalink
Log prettier lookups to the output channel
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed May 31, 2019
1 parent 60f4124 commit 4570b5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/requirePkg.ts
Expand Up @@ -38,9 +38,11 @@ function findPkg(fspath: string, pkgName: string): string | undefined {
*/
function requireLocalPkg<T>(fspath: string, pkgName: string): T | undefined {
let modulePath;
addToOutput('Looking local prettier for ' + fspath);
try {
modulePath = findPkg(fspath, pkgName);
if (modulePath !== void 0) {
addToOutput('Found local prettier ' + modulePath);
return require(modulePath);
}
} catch (e) {
Expand Down

0 comments on commit 4570b5d

Please sign in to comment.