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

Function moveFileByPinnedState

src/lib/editorManager.js:2249–2254  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

2247 }
2248
2249 function moveFileByPinnedState(file) {
2250 if (!manager.files.includes(file)) return;
2251 if (manager.activeFile?.id === file.id) {
2252 file.tab.scrollIntoView();
2253 }
2254 }
2255
2256 function normalizePinnedTabOrder(nextFiles = manager.files) {
2257 const pinnedFiles = [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected