File tree Expand file tree Collapse file tree
CodeEdit/Features/NavigatorArea/ProjectNavigator/OutlineView Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -281,9 +281,7 @@ extension ProjectNavigatorViewController: NSOutlineViewDelegate {
281281 }
282282
283283 func outlineViewSelectionDidChange( _ notification: Notification ) {
284- guard let outlineView = notification. object as? NSOutlineView else {
285- return
286- }
284+ guard let outlineView = notification. object as? NSOutlineView else { return }
287285
288286 let selectedIndex = outlineView. selectedRow
289287
@@ -304,13 +302,9 @@ extension ProjectNavigatorViewController: NSOutlineViewDelegate {
304302 guard
305303 let id = workspace? . editorManager. activeEditor. selectedTab? . file. id,
306304 let item = workspace? . workspaceFileManager? . getFile ( id, createIfNotFound: true )
307- else {
308- return
309- }
305+ else { return }
310306 /// update outline selection only if the parent of selected item match with expanded item
311- guard item. parent === notification. userInfo ? [ " NSObject " ] as? CEWorkspaceFile else {
312- return
313- }
307+ guard item. parent === notification. userInfo ? [ " NSObject " ] as? CEWorkspaceFile else { return }
314308 /// select active file under collapsed folder only if its parent is expanding
315309 if outlineView. isItemExpanded ( item. parent) {
316310 updateSelection ( itemID: item. id)
You can’t perform that action at this time.
0 commit comments