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

Function getPinnedInsertIndex

src/lib/editorManager.js:2235–2240  ·  view source on GitHub ↗
(skipFile = null)

Source from the content-addressed store, hash-verified

2233 }
2234
2235 function getPinnedInsertIndex(skipFile = null) {
2236 return manager.files.reduce((count, file) => {
2237 if (file === skipFile) return count;
2238 return count + (file.pinned ? 1 : 0);
2239 }, 0);
2240 }
2241
2242 function syncOpenFileList() {
2243 const $list = manager.openFileList;

Callers 1

addFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected