()
| 8 | } |
| 9 | |
| 10 | function 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 | |
| 24 | export async function reopenWithNewEncoding(encoding) { |
| 25 | const file = editorManager.activeFile; |
nothing calls this directly
no outgoing calls
no test coverage detected