You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using, for example, subl as the default editor of the system, the command does not wait for the file to close, instead it just ends, therefore no answers are passed to the command.
Repro:
import inquirer from 'inquirer';
inquirer
.prompt([
{
type: 'editor',
name: 'theme',
message: 'What do you want to do?',
waitUserInput: true, // <-- does not do anything here
postfix: 'json' // <-- fyi, this one doesn't work either, but there's already an open issue
},
])
.then((answers) => {
console.log(JSON.stringify(answers, null, ' '));
});
node: v12.22.1
OS: macOS Monterey 12.4
The text was updated successfully, but these errors were encountered:
When using, for example,
subl
as the default editor of the system, the command does not wait for the file to close, instead it just ends, therefore no answers are passed to the command.Repro:
node: v12.22.1
OS: macOS Monterey 12.4
The text was updated successfully, but these errors were encountered: