Interface VirtualLanguageServerFileProvider

All Known Implementing Classes:
TruffleAdapter

public interface VirtualLanguageServerFileProvider
This service interface provides callbacks for a custom file system. As we execute source code to collect run-time information, the executed code needs to access the state of (potentially) unsaved files in the LSP source code editor instead of the state on disk. Therefore, a custom file system needs to check for every file access if there is an edited version in the source code editor.
  • Method Details

    • getSourceText

      String getSourceText(Path path)
      Parameters:
      path - A path to a file in the file system.
      Returns:
      The source code of the file as seen/edited by the user in the source code editor.
    • isVirtualFile

      boolean isVirtualFile(Path path)
      Parameters:
      path - A path to a file in the file system.
      Returns:
      true if the file has been marked as "opened" in our LSP server.