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
typescript-vue-plugin caches getExternalFiles and hence doesnt have updated list of external files when new vue files are added #3555
typescript-vue-plugin caches getExternalFiles and hence doesnt have updated list of external files when new vue files are added #3555
Comments
Thanks for letting me know! Do you suggest that instead of caching external files, we re-search for .vue files in the project on every getExternalFiles request? Do you think this could cause potential performance issues? |
If using cache, the plugin need to be looking for addition or deletion of .vue files and on those cases you would want to search the files again from the disk and update the cache. |
In case I misunderstood, should we maintain our own file watchers for |
Per current design, yes. |
But we could pass parameter to getExternalFiles about what kind of update on program is happening that you could use. |
This will be neat, thanks! cc @mizdra, @Princesseuh Related code: |
I was looking into microsoft/TypeScript#55525 and have fix as part of microsoft/TypeScript#55716
i have a test that seems to work but validating against the current plugin, seems to not work as expected. When i debugged it, it seems the external files are cached for the project and hence when queried about it while updating list of files for the project, it seems to get the old list and does not have newly added vue file.
f7ab51e#diff-4908c4b643b0a53f52116f73ef63e7707a880156989108a78d60e3b5a94114afR36 is the corresponding line.
The text was updated successfully, but these errors were encountered: