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

Function generateHints

src/palettes/changeEncoding/index.js:10–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10function generateHints() {
11 return Object.keys(encodings).map((id) => {
12 const encoding = encodings[id];
13 const aliases = encoding.aliases.join(", ");
14 return {
15 value: id,
16 text: `<div class="palette-content-encoding">
17 <span>${encoding.label}</span>
18 <small>${aliases}</small>
19 <div>`,
20 };
21 });
22}
23
24export async function reopenWithNewEncoding(encoding) {
25 const file = editorManager.activeFile;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected