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)) {
|
if (fs.existsSync(pwdFilePath)) {
|
||||||
const pwd = fs.readFileSync(pwdFilePath, 'utf8').trim();
|
const pwd = fs.readFileSync(pwdFilePath, 'utf8').trim();
|
||||||
if (pwd !== targetDir) {
|
if (pwd !== targetDir) {
|
||||||
console.warn(
|
addItemToHistory(
|
||||||
`shell mode is stateless; \`cd ${pwd}\` will not apply to next command`,
|
{
|
||||||
|
type: 'info',
|
||||||
|
text: `WARNING: shell mode is stateless; \`cd ${pwd}\` will not apply to next command`,
|
||||||
|
},
|
||||||
|
userMessageTimestamp,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
fs.unlinkSync(pwdFilePath);
|
fs.unlinkSync(pwdFilePath);
|
||||||
|
|
Loading…
Reference in New Issue