Skip to content

Commit 84a62f4

Browse files
committed
Docs
1 parent da60c02 commit 84a62f4

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

CodeEdit/Features/NavigatorArea/ProjectNavigator/OutlineView/ProjectNavigatorViewController+NSOutlineViewDelegate.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ extension ProjectNavigatorViewController: NSOutlineViewDelegate {
115115
outlineView.deselectRow(outlineView.selectedRow)
116116
}
117117
shouldSendSelectionUpdate = false
118-
print("Selecting", id.id)
119118
outlineView.selectRowIndexes(.init(integer: row), byExtendingSelection: false)
120119
shouldSendSelectionUpdate = true
121120
}
@@ -129,7 +128,6 @@ extension ProjectNavigatorViewController: NSOutlineViewDelegate {
129128
}
130129
let row = outlineView.row(forItem: fileItem)
131130
shouldSendSelectionUpdate = false
132-
print("Revealing", fileItem.url.relativePath)
133131
outlineView.selectRowIndexes(.init(integer: row), byExtendingSelection: false)
134132
shouldSendSelectionUpdate = true
135133

CodeEdit/Features/NavigatorArea/ProjectNavigator/OutlineView/ProjectNavigatorViewController+OutlineTableViewCellDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ extension ProjectNavigatorViewController: OutlineTableViewCellDelegate {
2121
if !file.isFolder {
2222
workspace?.editorManager?.editorLayout.closeAllTabs(of: file)
2323
}
24+
workspace?.listenerModel.highlightedFileItem = newFile
2425
workspace?.editorManager?.openTab(item: newFile)
25-
select(by: file.tabID, forcesReveal: true)
2626
} catch {
2727
let alert = NSAlert(error: error)
2828
alert.addButton(withTitle: "Dismiss")

CodeEditTests/Utils/CEWorkspaceFileManager/CEWorkspaceFileManagerTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ final class CEWorkspaceFileManagerUnitTests: XCTestCase {
171171
var file = try fileManager.addFile(fileName: "Test File.txt", toFile: fileManager.workspaceItem)
172172

173173
// Should not add a new file extension, it already has one. This adds a '.' at the end if incorrect.
174+
// See #1966
174175
XCTAssertEqual(file.name, "Test File.txt")
175176

176177
// Test the automatic file extension stuff

0 commit comments

Comments
 (0)