Skip to content

Commit

Permalink
fixup! repl: add auto‑completion for dynamic import calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ExE-Boss committed Feb 2, 2021
1 parent 39289e4 commit 4264d4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1319,9 +1319,9 @@ function complete(line, callback) {
return;
}

const extension = path.extname(name);
if (!dirent.isDirectory()) {
if (StringPrototypeIncludes(extensions, extension) && !subdir) {
const extension = path.extname(name);
if (StringPrototypeIncludes(extensions, extension)) {
ArrayPrototypePush(group, `${subdir}${name}`);
}
return;
Expand All @@ -1345,7 +1345,7 @@ function complete(line, callback) {
}

if (!subdir) {
ArrayPrototypePush(completionGroups, nodeSchemeBuiltinLibs, _builtinLibs);
ArrayPrototypePush(completionGroups, _builtinLibs, nodeSchemeBuiltinLibs);
}
} else if (RegExpPrototypeTest(fsAutoCompleteRE, line) &&
this.allowBlockingCompletions) {
Expand Down

0 comments on commit 4264d4f

Please sign in to comment.