From 8d96210eb79ed775425d2d7cfd51d29647cff61a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 23 Oct 2024 21:04:44 +0000 Subject: [PATCH] Release 0.27.0 --- README.md | 9 +++++---- .../LanguageServer/GitHubCopilotService.swift | 9 +++++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index dfe93ec..4338a28 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# GitHub Copilot For Xcode +# GitHub Copilot for Xcode Demo of GitHub Copilot for Xcode [GitHub Copilot](https://github.com/features/copilot) is an AI pair programmer -that helps you write code faster and smarter. Copilot for Xcode is an -Xcode extension that provides inline coding suggestions as you type. +tool that helps you write code faster and smarter. Copilot for Xcode is an Xcode +extension that provides inline coding suggestions as you type. ## Beta Preview Policy @@ -21,7 +21,8 @@ As per [GitHub's Terms of Service](https://docs.github.com/en/github/site-policy ## Getting Started -1. Download the latest `dmg` from: https://github.com/github/copilot-xcode/releases/latest/download/GitHubCopilotForXcode.dmg +1. Download the `dmg` from + [the latest release](https://github.com/github/copilot-xcode/releases/latest/download/GitHubCopilotForXcode.dmg). Updates can be downloaded and installed by the app. 1. Open the `dmg` and drag the `GitHub Copilot for Xcode.app` into the `Applications` folder. diff --git a/Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift b/Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift index 6267fb6..a80064e 100644 --- a/Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift +++ b/Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift @@ -187,8 +187,7 @@ public class GitHubCopilotBaseService { "editorPluginInfo": [ "name": "copilot-xcode", "version": versionNumber, - ], - "editorConfiguration": editorConfiguration(), + ] ], capabilities: capabilities, trace: .off, @@ -208,6 +207,12 @@ public class GitHubCopilotBaseService { let notifications = NotificationCenter.default .notifications(named: .gitHubCopilotShouldRefreshEditorInformation) Task { [weak self] in + // Send workspace/didChangeConfiguration once after initalize + _ = try? await server.sendNotification( + .workspaceDidChangeConfiguration( + .init(settings: editorConfiguration()) + ) + ) for await _ in notifications { guard self != nil else { return } _ = try? await server.sendNotification(