static getPickItems()

in src/commands.ts [44:62]


  static getPickItems(pontSpec: PontSpec) {
    const hasSingleMod = PontSpec.getMods(pontSpec).length <= 1;
    const items = PontSpec.getMods(pontSpec)
      .map((mod) => {
        return mod.interfaces.map((inter) => {
          return {
            tags: inter.deprecated ? [vscode.CompletionItemTag.Deprecated] : [],
            label: `${inter.name}`,
            detail: `${pontSpec.name?.split("__").join(" ")}`,
            info: `${pontSpec.name ? pontSpec.name + "/" : ""}${inter.name}`,
            description: `${inter.deprecated ? "@deprecated\n" : ""} ${inter.description || inter.summary || ""}`,
            summary: `${inter.summary || ""}`,
          };
        });
      })
      .reduce((pre, next) => pre.concat(next), []);

    return items;
  }