Skip to content

Commit

Permalink
feat: indentify directories on hintOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
orochaa committed Nov 10, 2023
1 parent dec422f commit 8c854c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/prompts/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default class PathPrompt extends Prompt {
? this._mapDir(this._valueDir)
.filter((node) => node.name.startsWith(this._valueEnd))
.slice(0, this._maxHintOptions)
.map((node) => node.name)
.map((node) => node.name + (!!node.children ? '/' : ''))
: [];
}

Expand Down

0 comments on commit 8c854c1

Please sign in to comment.