MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / generateHints

Function generateHints

src/palettes/findFile/index.js:27–44  ·  view source on GitHub ↗

* Generates hint for inputhints * @param {HintModification} hints Hint modification object

(hints)

Source from the content-addressed store, hash-verified

25 * @param {HintModification} hints Hint modification object
26 */
27 async function generateHints(hints) {
28 hintsModification = hints;
29 const list = [];
30
31 editorManager.files.forEach((file) => {
32 const { uri, name } = file;
33 let { location = "" } = file;
34
35 if (location) {
36 location = helpers.getVirtualPath(location);
37 }
38
39 list.push(hintItem(name, location, uri));
40 });
41
42 list.push(...files(hintItem));
43 return list;
44 }
45
46 function onselect(value) {
47 if (!value) return;

Callers

nothing calls this directly

Calls 2

hintItemFunction · 0.85
filesFunction · 0.50

Tested by

no test coverage detected