static async getApiKeyInputFromUser()

in src/views/credentialView.ts [4:15]


  static async getApiKeyInputFromUser(placeHolder: string | undefined) {
    const apiKey = await vscode.window.showInputBox({
      prompt: "Enter your AMO API Key (e.g. user:12345678:123)",
      title: "AMO API Key",
      placeHolder,
      ignoreFocusOut: true,
    });
    if (!apiKey) {
      throw new Error("No API Key provided.");
    }
    return apiKey;
  }