Skip to content

Commit ee4bd9d

Browse files
committed
Rename to ModificationState
1 parent 635a027 commit ee4bd9d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Core/Sources/SuggestionWidget/FeatureReducers/PromptToCodePanel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public struct PromptToCodePanel {
1717
case textField
1818
}
1919

20-
@Shared public var promptToCodeState: PromptToCodeState
20+
@Shared public var promptToCodeState: ModificationState
2121

2222
public var id: URL { promptToCodeState.source.documentURL }
2323

@@ -53,7 +53,7 @@ public struct PromptToCodePanel {
5353
}
5454

5555
public init(
56-
promptToCodeState: Shared<PromptToCodeState>,
56+
promptToCodeState: Shared<ModificationState>,
5757
indentSize: Int,
5858
usesTabsForIndentation: Bool,
5959
commandName: String? = nil,

Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanelView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ extension PromptToCodePanelView {
713713

714714
#Preview("Multiple Snippets") {
715715
PromptToCodePanelView(store: .init(initialState: .init(
716-
promptToCodeState: Shared(PromptToCodeState(
716+
promptToCodeState: Shared(ModificationState(
717717
source: .init(
718718
language: CodeLanguage.builtIn(.swift),
719719
documentURL: URL(
@@ -785,7 +785,7 @@ extension PromptToCodePanelView {
785785

786786
#Preview("Detached With Long File Name") {
787787
PromptToCodePanelView(store: .init(initialState: .init(
788-
promptToCodeState: Shared(PromptToCodeState(
788+
promptToCodeState: Shared(ModificationState(
789789
source: .init(
790790
language: CodeLanguage.builtIn(.swift),
791791
documentURL: URL(

Tool/Sources/PromptToCodeCustomization/PromptToCodeCustomization.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public protocol PromptToCodeCustomizedUI {
3434
)
3535

3636
func callAsFunction<V: View>(
37-
state: Shared<PromptToCodeState>,
37+
state: Shared<ModificationState>,
3838
isInputFieldFocused: Binding<Bool>,
3939
@ViewBuilder view: @escaping (PromptToCodeCustomizedViews) -> V
4040
) -> PromptToCodeCustomizationContextWrapper<V>
@@ -44,7 +44,7 @@ struct NoPromptToCodeCustomizedUI: PromptToCodeCustomizedUI {
4444
private class Context {}
4545

4646
func callAsFunction<V: View>(
47-
state: Shared<PromptToCodeState>,
47+
state: Shared<ModificationState>,
4848
isInputFieldFocused: Binding<Bool>,
4949
@ViewBuilder view: @escaping (PromptToCodeCustomizedViews) -> V
5050
) -> PromptToCodeCustomizationContextWrapper<V> {
@@ -59,7 +59,7 @@ struct NoPromptToCodeCustomizedUI: PromptToCodeCustomizedUI {
5959
}
6060
}
6161

62-
public struct PromptToCodeState: Equatable {
62+
public struct ModificationState: Equatable {
6363
public typealias Source = ModificationAgentRequest.ModificationSource
6464

6565
public var source: Source

0 commit comments

Comments
 (0)