fix(editors): Adding files inside the subdirectories#1835
fix(editors): Adding files inside the subdirectories#1835MohamedAli00949 wants to merge 6 commits intoelectron:mainfrom
Conversation
dsanders11
left a comment
There was a problem hiding this comment.
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