Basically, the bug was when we edited a file and saved it, then it could not be opened again or sometimes there were some weird things that happened.
The problem occurred because when a tab was being removed, the file path array was not being updated. I was accessing it through the position of currently opened tabs and did not check the tab id.
I fixed the weird bug we had for saving file:
Basically, the bug was when we edited a file and saved it, then it could not be opened again or sometimes there were some weird things that happened.
The problem occurred because when a tab was being removed, the file path array was not being updated. I was accessing it through the position of currently opened tabs and did not check the tab id.