switch from console.warn to info item (#440)
This commit is contained in:
parent
96387aba83
commit
a756489f86
|
@ -89,8 +89,12 @@ export const useShellCommandProcessor = (
|
|||
if (fs.existsSync(pwdFilePath)) {
|
||||
const pwd = fs.readFileSync(pwdFilePath, 'utf8').trim();
|
||||
if (pwd !== targetDir) {
|
||||
console.warn(
|
||||
`shell mode is stateless; \`cd ${pwd}\` will not apply to next command`,
|
||||
addItemToHistory(
|
||||
{
|
||||
type: 'info',
|
||||
text: `WARNING: shell mode is stateless; \`cd ${pwd}\` will not apply to next command`,
|
||||
},
|
||||
userMessageTimestamp,
|
||||
);
|
||||
}
|
||||
fs.unlinkSync(pwdFilePath);
|
||||
|
|
Loading…
Reference in New Issue