Skip to content

Commit 0847bf5

Browse files
committed
improvements for other comments
Signed-off-by: Wouter01 <[email protected]>
1 parent 36e0587 commit 0847bf5

File tree

5 files changed

+2
-28
lines changed

5 files changed

+2
-28
lines changed

CodeEdit/Features/Extensions/ExtensionsListView.swift

-11
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,6 @@ struct ExtensionsListView: View {
3131
}
3232
}
3333
.frame(height: 40)
34-
35-
.swipeActions(edge: .trailing, allowsFullSwipe: true) {
36-
Button("Remove", role: .destructive) {
37-
38-
}
39-
}
40-
.swipeActions(edge: .leading) {
41-
Button("Enable") {
42-
43-
}
44-
}
4534
}
4635

4736
.toolbar {

CodeEdit/Features/StatusBar/ViewModels/StatusBarViewModel.swift

-7
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ class StatusBarViewModel: ObservableObject {
2828
private let statusBarDrawerHeightStateName: String
2929
= "\(String(describing: StatusBarViewModel.self))-StatusBarDrawerHeight"
3030

31-
// TODO: Implement logic for updating values
32-
// TODO: Add @Published vars for indentation, encoding, linebreak
33-
34-
/// The selected tab in the main section.
35-
/// - **0**: Terminal
36-
/// - **1**: Debugger
37-
/// - **2**: Output
3831
@Published
3932
var selectedTab: Tab = .terminal
4033

CodeEdit/Features/StatusBar/Views/StatusBarDrawer/StatusBarDrawer.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ struct StatusBarDrawer: View {
5555
.padding(.leading, -2)
5656
Spacer()
5757
Button {
58-
// clear logs
58+
// TODO: clear logs
5959
} label: {
6060
Image(systemName: "trash")
6161
}
6262
.buttonStyle(.icon)
6363
Divider()
6464
HStack(alignment: .center, spacing: 3.5) {
6565
Button {
66-
// split terminal
66+
// TODO: split terminal
6767
} label: {
6868
Image(systemName: "square.split.2x1")
6969
}

CodeEdit/Features/StatusBar/Views/StatusBarView.swift

-7
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ struct StatusBarView: View {
4040
/// The actual status bar
4141
var body: some View {
4242
HStack(alignment: .center, spacing: 10) {
43-
// StatusBarBreakpointButton()
44-
// StatusBarDivider()
45-
// SegmentedControl(.constant(1), options: StatusBarTabType.allOptions)
46-
4743
SegmentedControlV2(selection: $model.selectedTab, prominent: true) {
4844
Text("Terminal").segmentedTag(StatusBarViewModel.Tab.terminal)
4945
Text("Debugger").segmentedTag(StatusBarViewModel.Tab.debugger)
@@ -56,9 +52,6 @@ struct StatusBarView: View {
5652
.opacity(collapsed ? 0 : 1)
5753
Spacer()
5854
HStack(alignment: .center, spacing: 10) {
59-
// StatusBarIndentSelector()
60-
// StatusBarEncodingSelector()
61-
// StatusBarLineEndSelector()
6255
StatusBarCursorLocationLabel()
6356
}
6457
StatusBarDivider()

CodeEdit/WorkspaceView.swift

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ struct WorkspaceView: View {
4444

4545
EditorView(tabgroup: tabManager.tabGroups, focus: $focusedEditor)
4646
.frame(maxWidth: .infinity, maxHeight: .infinity)
47-
// .holdingPriority(.init(10))
4847
.safeAreaInset(edge: .bottom, spacing: 0) {
4948
StatusBarView(proxy: proxy, collapsed: $terminalCollapsed)
5049
}

0 commit comments

Comments
 (0)