openFile

open fun openFile(uri: String, languageId: String, session: EditorSession?): WorkspaceFile

Register a file as open in the workspace, snapshotting its current text as the version-1 baseline. Synchronous so it can run from a plugin's constructor; the textDocument/didOpen notification is sent separately by didOpenFile once the server handshake has completed.