-
Notifications
You must be signed in to change notification settings - Fork 95
Track closed files in the VFS #611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
349249a
to
3367359
Compare
lsp/src/Language/LSP/VFS.hs
Outdated
We are keeping track of this in order to be able to get information | ||
on virtual files after they were closed. | ||
-} | ||
data VirtualFileGhost = VirtualFileGhost |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cute, but perhaps better to be boring: ClosedVirtualFile
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow that name never came to mind, that is much better!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought you were going to change the name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I forgot to push the changes 🙈
@michaelpj Is there anything that still needs to be done, before we can merge this? |
3367359
to
527b650
Compare
Add data structure which represents a closed file in the VFS. This structure only stores the language kind of the closed file as of now. The VFS now stores VFS entries which can be either open or closed files.
527b650
to
73fefa5
Compare
Add data structure which represents a closed file in the VFS. This structure only stores the language kind of the closed file as of now.
The VFS now stores VFS entries which can be either open or closed files.
This will be used in HLS, to be able to tell whether we are responsible for files which were already closed.