Native GitHub Copilot inline completions
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Beginne mit dem Lesen von CodeFileDocument und CodeFileView und verfolge dann die Einstiegspunkte von CopilotClient, CopilotService, CopilotProtocol, CopilotInlineCompletionProvider und CopilotBinaryResolver. Überprüfe die Abhängigkeitsversionen von CodeEditTextView und CodeEditSourceEditor und führe die App mit den dokumentierten lokalen Branches aus. Als abgeschlossen gilt die Arbeit, wenn die Paket-Pins die Integration unterstützen, CI erfolgreich baut und der Settings-Anmeldefluss sowie Geistertext, der per Tab akzeptiert wird, durchgängig funktionieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description
Add native GitHub Copilot inline completions to CodeEdit: as you type, the editor shows AI ghost text suggestions and accepts them with Tab. This is the app-level integration that ties together the inline suggestion rendering (CodeEditTextView) and the inline completion coordination layer (CodeEditSourceEditor).
What it adds:
- A Copilot language-server client and service (
CopilotClient,CopilotService,CopilotProtocol) that launches and talks to the officialcopilot-language-serverover LSP, including device-flow sign-in, status, and document sync. - A per-document
CopilotInlineCompletionProviderthat conforms to the editor'sInlineCompletionDelegate, maps the caret to an LSP position, requests completions, strips already-typed prefixes, and adapts results into the editor's ghost-text model. - A
CopilotBinaryResolverthat locatescopilot-language-server(explicit path,PATH, or common install dirs) and builds a launch environment that can findnode(including nvm-managed installs), since the server is a Node script. - A Settings page (enable toggle, device-flow sign-in UI, optional language-server path) and a status bar item reflecting Copilot state.
- Wiring in
CodeFileDocument/CodeFileViewto attach the provider per open document.
Design notes:
- Suggestions render as ghost text via the
CodeEditTextViewoverlay primitive and never mutate the document until accepted. - Disabled by default; opt-in via Settings. Requires a GitHub Copilot subscription.
Alternatives Considered
- A plugin/extension instead of a built-in. CodeEdit does not yet have an extension API surface for inline completions, and the integration needs the editor's cursor/lifecycle hooks, so a built-in (opt-in, behind settings) is the practical option today.
- Driving the suggestion lifecycle in the app rather than the editor. Rejected; the request/accept/dismiss lifecycle lives in
CodeEditSourceEditor(see the dependency below), and the app only supplies a concrete provider.
Additional Context
This is the top layer of a three-repo change for native inline completions:
CodeEditTextView: inline suggestion (ghost text) rendering primitive (CodeEditApp/CodeEditTextView#124, PR CodeEditApp/CodeEditTextView#125).CodeEditSourceEditor: inline completion coordination layer (CodeEditApp/CodeEditSourceEditor#374, PR CodeEditApp/CodeEditSourceEditor#375).CodeEdit(this issue): the GitHub Copilot provider and UI.
I have a working, documented implementation. Locally it builds and runs against the two dependency branches via a workspace that references local checkouts, and I have verified end to end against the real copilot-language-server (device-flow sign-in and inline ghost text that accepts with Tab). The package pins for CodeEditTextView / CodeEditSourceEditor need bumping to the releases that include layers 1 and 2 before this can build in CI. Would the maintainers welcome native Copilot support in CodeEdit?
Screenshots
I will attach a screen recording of the device-flow sign-in and inline ghost text on the PR.
- Vorherrschende Sprache
- Swift
- Sterne
- 23k
- Forks
- 1.2k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CodeEditApp/CodeEdit
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
CodeEditApp/CodeEdit#2190 ·
-
Is this project dead? Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 15/100
CodeEditApp/CodeEdit#2195 · 7 Reaktionen ·
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
CodeEditApp/CodeEdit#2185 ·
-
creashes on starting Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
CodeEditApp/CodeEdit#2180 ·
-
bug
CodeEditApp/CodeEdit#2174 · 1 Kommentar · 1 zugewiesene Person ·
Alle Issues in CodeEditApp/CodeEdit
Ähnliche Issues
-
pending-maintainer-response pending-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
area:build bug good first issue P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
uttrflow/uttrflow-swift#1412 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
enhancement
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 80/100
-
T-Defect
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
element-hq/element-x-ios#6191 ·