You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the language server receives only one notification about the current file open, even if there are other files open. So the number of open files for the language server is 1
After 3-4 minutes, VSCode sends to the language server a notification of closed files for the files that the language server did not even thought were open.
Since the language server keeps track of a number of files open, it decrements that number, gets to 0 and dispose the compilation, which prevents anything else from happening.
What type of operating system are you experiencing the problem on?
Windows
The text was updated successfully, but these errors were encountered:
Fixes#4833
### Description
I replaced the openFileCount by openFiles so that closing a document,
even if unexpected like VSCode does randomly, won't trigger the
Compilation object to be disposed, which crashes the IDE every 3-4
minutes on projects with multiple files open.
### How has this been tested?
I have been enjoying the IDE for 20 minutes straight without restarting
it. It's a fantastic experience. I'm going to turn on "verification on
change" again.
<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
Dafny version
latest-nightly
Code to produce this issue
Command to run and resulting output
No response
What happened?
Here is more debugging information:
What type of operating system are you experiencing the problem on?
Windows
The text was updated successfully, but these errors were encountered: