Open
Description
The IntelliJ SDK provides a virtual file system (documented here) that could replace the current source path implementation and would integrate better with #190.
Implementation notes:
- Virtual files have an associated charset and can be manipulated dynamically using
OutputStreamWriter
s. - The global VFS can be fetched from
VirtualFileManager.getInstance()
- Parsed
KtFile
s should be managed by theKotlinCoreEnvironment
- Updating a build-related file should result in a call to
KotlinCoreEnvironment.updateClasspath
instead of replacing the entireCompiler
instance (as is currently done inCompilerClassPath
) SourcePath
should be a shallow abstraction over the VFS or removed entirely