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

    Function promptAndLogin

    • Shows authentication dialog and executes login command if user accepts. This is a convenience function that combines the dialog with the login action.

      Parameters

      • Optionalsource: string

        Optional source description

      Returns Promise<boolean>

      Promise that resolves to true if login was initiated, false if cancelled

      const loginInitiated = await promptAndLogin("Runtime Selection");
      if (!loginInitiated) {
      // User cancelled, handle accordingly
      return;
      }
      // Continue with authenticated flow