PinnedNames returns a snapshot of currently pinned skill names sorted alphabetically. Exposed for the completer.
()
| 1301 | // PinnedNames returns a snapshot of currently pinned skill names sorted |
| 1302 | // alphabetically. Exposed for the completer. |
| 1303 | func (sh *SkillHandler) PinnedNames() []string { |
| 1304 | sh.pinnedSkillsMu.RLock() |
| 1305 | names := make([]string, 0, len(sh.pinnedSkillNames)) |
| 1306 | for n := range sh.pinnedSkillNames { |
| 1307 | names = append(names, n) |
| 1308 | } |
| 1309 | sh.pinnedSkillsMu.RUnlock() |
| 1310 | sort.Strings(names) |
| 1311 | return names |
| 1312 | } |
| 1313 | |
| 1314 | // GetPinnedSkills resolves every pinned name against the persona manager and |
| 1315 | // returns the matching skills sorted alphabetically (stable order keeps the |
no outgoing calls