private static async setDeleteCommentsPreference()

in src/views/exportView.ts [44:68]


  private static async setDeleteCommentsPreference(
    config: vscode.WorkspaceConfiguration,
    selectedPreference: string
  ) {
    const input = await vscode.window.showQuickPick(
      [QPOption.Save, QPOption.Ask],
      {
        title:
          selectedPreference === QPOption.No
            ? "Delete comments on every export?"
            : "Keep comments on every export?",
        ignoreFocusOut: true,
      }
    );

    if (!input) {
      return;
    }

    await config.update(
      "deleteCommentsOnExport",
      input === QPOption.Save ? selectedPreference : QPOption.Ask,
      true
    );
  }