jomiller / vscode-rtags

RTags Client for Visual Studio Code
GNU General Public License v3.0
10 stars 0 forks source link

Unsaved changes to other files are lost when re-saving a file that has no unsaved changes #15

Closed jomiller closed 5 years ago

jomiller commented 5 years ago

When re-saving a file that has no unsaved changes in VS Code, then RTags still reindexes the file automatically by default, but the VS Code extension does not get an opportunity to pass unsaved changes to other files to RTags. If RTags does not receive any unsaved changes when it reindexes a file, then it seems to assume that there are no unsaved changes to any files, and reverts to the last saved versions of the files. Therefore, any unsaved changes to files besides the one being reindexed are lost.

jomiller commented 5 years ago

This issue has been worked around in ef18000f666eeb5be7b88addd7b3e05644b42fa0