Function setActiveFile

Switch the editor's active file to path, opening it (adding a tab) if it is not already open — native setActiveFile parity. Rejects with an EditorSessionError (.code) if the path is missing/invalid or this app lacks editor:document.

  • Parameters

    • path: string

    Returns Promise<void>