-
Notifications
You must be signed in to change notification settings - Fork 750
fix(editors): Adding files inside the subdirectories #1835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
dsanders11
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the only changes that are needed in src/ can go in addNewFile and renameFile in src/renderer/editor-mosaic.ts.
I think "inside subdir" isn't an ideal error message, I'd make the error message more literal: "filenames cannot include path separators".
Okay, I will change them. |
|
Hi @dsanders11, Thanks in advance |
Another solution I have found, and it has appeared to be good until now, is adding an asynchronous timer with a delay of 100 ms before firing the action of showing an error dialog. This makes the error dialog unmounted after being mounted immediately. I hope if you have any hints for solving this problem, i hope you to tell me, i have made research and read all docs related to MobX and Blueprintjs but can't find the solution of the problem of triggering Hope you well. show.error.dialog.mp4 |
Description
While building demos for Electron apps, I have found that Fiddle accepts creating files inside a subdirectory.
And these casing issues at the other operations, while using Fiddle.
So I have a suggestion for solving this issue to validate the file name for new files or renaming old files.
Solved issue
#1828