Datalayer VS Code Extension - v0.0.17
    Preparing search index...

    Manages notebook controllers with a main selector and runtime-specific controllers.

    Implements

    • Disposable
    Index

    Constructors

    Properties

    onRuntimeCreated: Event<RuntimeDTO> = ...

    Event that fires when a runtime is created or selected, allows tree view refresh

    Methods

    • Creates or gets a runtime-specific controller.

      Parameters

      • runtime: RuntimeDTO

        Runtime DTO to create or retrieve a controller for.

      Returns Promise<NotebookController>

      The notebook controller for the runtime, or undefined.

    • Gets a controller by ID. Used by DatalayerRuntimeSelector to access controllers for QuickPick display.

      Parameters

      • controllerId: string

        Controller ID to retrieve.

      Returns NotebookController

      The controller or undefined if not found.

    • Refreshes all controllers based on current authentication and available runtimes. Creates controllers for existing runtimes that don't have controllers yet. Removes controllers for runtimes that no longer exist.

      Returns Promise<void>

    • Selects or switches a runtime for a specific notebook. This can be called anytime to select or switch runtimes.

      Parameters

      • notebook: NotebookDocument

        The notebook to select a runtime for.

      Returns Promise<void>