Skip to content

Conversation

@johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Dec 14, 2023

This is a redo of #3534.

  • The language server designates the first virtual file as the global types holder when it generates the first virtual file, and generates the helper types on it.
  • vue-tsc creates additional dummy .vue files as global types holders to avoid global types emit to dts.
  • Each project's global types holder is known at the time of generating virtual files. Using the holder file name as the file registry key safely avoids conflicts caused by duplicate helper types when multiple projects in the repo share virtual files.
  • When the global types holder file is deleted, the global types holder is switched to another random file in the file registry (d4c0c5e)

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