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

WIP enable model caching #576

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

christopherswenson
Copy link
Contributor

@christopherswenson christopherswenson commented Jan 15, 2025

Switches the VSCode extension to use the new CacheManager from Malloy.

Truncated cache works the same way it did before, except that for dependencies of the main file, it too will use the "real" cache.

We used to remove documents from the cache when the file was closed. Now we check if the file is used by any of the other files in the cache first. If A depends on B, closing B will not cause it to be removed from the cache, but then closing A will clear both. If you close A first, it will be removed from the cache, since nothing open depends on it.

Failing tests right now because this depends on changes that haven't landed in Malloy.

Copy link
Contributor

@whscullin whscullin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

2 participants