(nextFiles = manager.files)
| 2254 | } |
| 2255 | |
| 2256 | function normalizePinnedTabOrder(nextFiles = manager.files) { |
| 2257 | const pinnedFiles = []; |
| 2258 | const regularFiles = []; |
| 2259 | |
| 2260 | nextFiles.forEach((file) => { |
| 2261 | if (file.pinned) { |
| 2262 | pinnedFiles.push(file); |
| 2263 | return; |
| 2264 | } |
| 2265 | regularFiles.push(file); |
| 2266 | }); |
| 2267 | |
| 2268 | manager.files = [...pinnedFiles, ...regularFiles]; |
| 2269 | syncOpenFileList(); |
| 2270 | |
| 2271 | return manager.files; |
| 2272 | } |
| 2273 | |
| 2274 | /** |
| 2275 | * Sets up the editor with various configurations and event listeners. |
nothing calls this directly
no test coverage detected