Hi TypeScript team,
I’m developing a custom TypeScript plugin and encountering a persistent Debug Failure in 5.9.2 when trying to provide virtual files. My goal is to dynamically supply temporary modules that don’t exist on disk so they can be imported and have default exports during editing in VSCode. I’ve tried overriding readFile, fileExists, and getScriptSnapshot on serverLanguageHost, but every approach triggers the same failure in _ProjectService.setDocument and getOrCreateSourceFileByPath. It seems tsserver doesn’t fully support fully dynamic virtual files in this version. Could you clarify if this is expected, or suggest a safe way to implement virtual modules dynamically within a plugin without causing Debug Failure?