Skip to content
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

VSCode Type Extension: Edge Cases #4

Open
elatoskinas opened this issue Jul 7, 2021 · 0 comments
Open

VSCode Type Extension: Edge Cases #4

elatoskinas opened this issue Jul 7, 2021 · 0 comments

Comments

@elatoskinas
Copy link
Collaborator

In the future, the following edge cases should be handled. In the prototype stage of the extension, they are rare occurrences and are not highly relevant.

File changes

  • File is renamed: the cached typestore data should react to the event accordingly by updating the cache
  • File is moved: same as above
  • File is deleted: remove cache

Edit events

In general, a mechanism will have to be devised on how the file cache will react when a file is changed. Should some annotations be invalidated, or the Type4Py server call re-triggered? (this should go into it's own issue later on, as it might require changes to the model, server and the client)

Additionally, the line numbers may be invalidated, rendering the cache incorrect (e.g. if all functions shift by 2-3 lines)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant