Sublime Forum

They are not plain text but I can see that they contain unformatted text. What method should I use to restore my unsaved disappearing data text messages please provide detailed steps for analysis

#1

Can you explain to the end user: if I need to restore the text, how do I use these files to achieve this?

If the main Session.sublime_session file is damaged,
ublime_session Restore unsaved files
Next we need to find the right file and version that can store Sublime Text’s unsaved files.
Restore the text file in Sublime
If you’re lucky, you’ll find the right session file.
These are JSON files

0 Likes

#2

With a corrupted session file the easiest solution will be to fix up the file. It’s likely the file’s missing some closing braces } at the end of the file or something similar.

Otherwise you can attempt to extract the file contents from the json yourself. The file contents are under windows > buffers > contents in plain text with newlines and quotes escaped.

0 Likes

#3

Sorry, I know nothing about the parsing method of json. Brothers, you can contact me and send me detailed steps. I need help from professionals more. That disappeared text data is very important to me. Thank you very much

0 Likes

#4

If you’d like you can send me the session file and I can attempt to fix it: bschaaf@sublimetext.com.

0 Likes