jomiller / vscode-rtags

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

Diagnostics for non-visible editors remain in Problems panel when editors are closed #20

Open jomiller opened 5 years ago

jomiller commented 5 years ago

If editors are opened without being visible (e.g. by using the "Rename Symbol" command), then the onDidOpenTextDocument event fires for each opened file. However, if those editors are closed before becoming visible (e.g. by clicking the "Close All Editors" button), then the onDidCloseTextDocument event does not fire. Because that event does not fire, the diagnostics for those closing files are not removed from the diagnostics collection, and the diagnostics remain in the Problems panel.

jomiller commented 5 years ago

This issue depends on https://github.com/Microsoft/vscode/issues/15178