Skip to content

Commit 0327f82

Browse files
committed
Change realtime to real-time
1 parent 58bf5d4 commit 0327f82

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

Core/Sources/Service/AutoTrigger.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ actor AutoTrigger {
2828
if task == nil {
2929
task = Task { [stream = eventObserver.stream] in
3030
var triggerTask: Task<Void, Error>?
31-
try? await Environment.triggerAction("Realtime Suggestions")
31+
try? await Environment.triggerAction("Real-time Suggestions")
3232
for await _ in stream {
3333
triggerTask?.cancel()
3434
if Task.isCancelled { break }
@@ -40,7 +40,7 @@ actor AutoTrigger {
4040
let workspace = workspaces[folderURL],
4141
workspace.isRealtimeSuggestionEnabled
4242
else { return }
43-
try? await Environment.triggerAction("Realtime Suggestions")
43+
try? await Environment.triggerAction("Real-time Suggestions")
4444
}
4545
}
4646
}

Core/Sources/Service/Workspace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ final class Workspace {
111111
)
112112
try Task.checkCancellation()
113113
if result != nil {
114-
try? await Environment.triggerAction("Realtime Suggestions")
114+
try? await Environment.triggerAction("Real-time Suggestions")
115115
}
116116
}
117117

EditorExtension/RealtimeSuggestionCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Foundation
44
import XcodeKit
55

66
class RealtimeSuggestionsCommand: NSObject, XCSourceEditorCommand, CommandType {
7-
var name: String { "Realtime Suggestions" }
7+
var name: String { "Real-time Suggestions" }
88

99
func perform(
1010
with invocation: XCSourceEditorCommandInvocation,

EditorExtension/TurnOffRealtimeSuggestionsCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Foundation
44
import XcodeKit
55

66
class TurnOffRealtimeSuggestionsCommand: NSObject, XCSourceEditorCommand, CommandType {
7-
var name: String { "Turn Off Realtime Suggestions for Workspace" }
7+
var name: String { "Turn Off Real-time Suggestions for Workspace" }
88

99
func perform(
1010
with invocation: XCSourceEditorCommandInvocation,

EditorExtension/TurnOnRealtimeSuggestionsCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Foundation
44
import XcodeKit
55

66
class TurnOnRealtimeSuggestionsCommand: NSObject, XCSourceEditorCommand, CommandType {
7-
var name: String { "Turn On Realtime Suggestions for Workspace" }
7+
var name: String { "Turn On Real-time Suggestions for Workspace" }
88

99
func perform(
1010
with invocation: XCSourceEditorCommandInvocation,

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Thanks to [LSP-copilot](https://github.com/TerminalFi/LSP-copilot) for showing t
1616

1717
- Accessibility
1818
- Folder Access
19-
- Maybe Input Monitoring (Realtime Suggestions Only)
19+
- Maybe Input Monitoring (Real-time Suggestions Only)
2020

2121
## Installation and Setup
2222

@@ -38,11 +38,11 @@ The first time the actions run, the extension will ask for 2 types of permission
3838
- Previous Suggestion: If there is more than 1 suggestion, switch to the previous one.
3939
- Accept Suggestion: Add the suggestion to the code.
4040
- Reject Suggestion: Remove the suggestion comments.
41-
- Turn On Realtime Suggestions: When turn on, Copilot will auto-insert suggestion comments to your code while editing. You have to manually turn it on for every open window of Xcode.
42-
- Turn Off Realtime Suggestions: Turns the real-time suggestions off.
43-
- Realtime Suggestions: It is an entry point only for Copilot for Xcode. In the background, Copilot for Xcode will occasionally run this action to bring you real-time suggestions.
41+
- Turn On Real-time Suggestions: When turn on, Copilot will auto-insert suggestion comments to your code while editing. You have to manually turn it on for every open window of Xcode.
42+
- Turn Off Real-time Suggestions: Turns the real-time suggestions off.
43+
- Real-time Suggestions: It is an entry point only for Copilot for Xcode. In the background, Copilot for Xcode will occasionally run this action to bring you real-time suggestions.
4444

45-
**About realtime suggestions**
45+
**About real-time suggestions**
4646

4747
The implementation won't feel as smooth as that of VSCode.
4848

@@ -52,7 +52,7 @@ Hope that next year, Apple can spend some time on Xcode Extensions.
5252

5353
Known Issues:
5454

55-
- If a realtime suggestions request is triggered, it will block your editor until the result is return.
55+
- If a real-time suggestions request is triggered, it will block your editor until the result is return.
5656

5757
## Prevent Suggestions Being Committed
5858

@@ -90,7 +90,7 @@ fi
9090
>
9191
> If you have just **updated the app**, consider restarting XPCService in app or trying removing the Launch Agents and set it up again!
9292
93-
**Q: I turned on realtime suggestions, but nothing happens**
93+
**Q: I turned on real-time suggestions, but nothing happens**
9494

9595
> A: Check the list in `Settings.app > Privacy & Security > Input Monitoring`. Turn the toggle on for `Copilot for Xcode`. If it's not on the list, add it manually. After that, you may have to restart the XPC Service.
9696

0 commit comments

Comments
 (0)