Skip to content

Commit 799e897

Browse files
Revert "Pre-release 0.34.116"
This reverts commit 677f73f.
1 parent 4bf7f5d commit 799e897

File tree

76 files changed

+334
-6382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+334
-6382
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ Core/Package.resolved
117117

118118
# Copilot language server
119119
Server/node_modules/
120-
Server/dist
121120

122121
# Releases
123122
/releases/

Copilot for Xcode.xcodeproj/project.pbxproj

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 70;
6+
objectVersion = 56;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -255,10 +255,6 @@
255255
C8F103292A7A365000D28F4F /* launchAgent.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = launchAgent.plist; sourceTree = "<group>"; };
256256
/* End PBXFileReference section */
257257

258-
/* Begin PBXFileSystemSynchronizedRootGroup section */
259-
9E6A029A2DBDF64200AB6BD5 /* Server */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = Server; sourceTree = SOURCE_ROOT; };
260-
/* End PBXFileSystemSynchronizedRootGroup section */
261-
262258
/* Begin PBXFrameworksBuildPhase section */
263259
C81458892939EFDC00135263 /* Frameworks */ = {
264260
isa = PBXFrameworksBuildPhase;
@@ -361,7 +357,6 @@
361357
C81458AE293A009800135263 /* Config.debug.xcconfig */,
362358
C8CD828229B88006008D044D /* TestPlan.xctestplan */,
363359
C828B27D2B1F241500E7612A /* ExtensionPoint.appextensionpoint */,
364-
9E6A029A2DBDF64200AB6BD5 /* Server */,
365360
C81D181E2A1B509B006C1B70 /* Tool */,
366361
C8189B282938979000C9DCDA /* Core */,
367362
C8189B182938972F00C9DCDA /* Copilot for Xcode */,
@@ -705,21 +700,24 @@
705700
/* Begin PBXShellScriptBuildPhase section */
706701
3A60421A2C8955710006B34C /* ShellScript */ = {
707702
isa = PBXShellScriptBuildPhase;
708-
alwaysOutOfDate = 1;
709703
buildActionMask = 2147483647;
710704
files = (
711705
);
712706
inputFileListPaths = (
713707
);
714708
inputPaths = (
709+
"$(SRCROOT)/Server/package.json",
710+
"$(SRCROOT)/Server/package-lock.json",
715711
);
716712
outputFileListPaths = (
717713
);
718714
outputPaths = (
715+
"$(SRCROOT)/Server/node_modules/@github/copilot-language-server/native/darwin-x64/copilot-language-server",
716+
"$(SRCROOT)/Server/node_modules/@github/copilot-language-server/native/darwin-arm64/copilot-language-server-arm64",
719717
);
720718
runOnlyForDeploymentPostprocessing = 0;
721719
shellPath = /bin/sh;
722-
shellScript = "export PATH=/usr/local/bin:/opt/homebrew/bin:$PATH\n\nnpm -C Server install\ncp Server/node_modules/@github/copilot-language-server/native/darwin-arm64/copilot-language-server Server/node_modules/@github/copilot-language-server/native/darwin-arm64/copilot-language-server-arm64\n\necho \"Build and copy webview js/html files as the bundle resources\"\nnpm -C Server run build\nmkdir -p \"${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Resources/webViewDist\"\ncp -R Server/dist/* \"${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Resources/webViewDist/\"\n";
720+
shellScript = "npm -C Server install\ncp Server/node_modules/@github/copilot-language-server/native/darwin-arm64/copilot-language-server Server/node_modules/@github/copilot-language-server/native/darwin-arm64/copilot-language-server-arm64\n";
723721
};
724722
/* End PBXShellScriptBuildPhase section */
725723

Copilot for Xcode/App.swift

Lines changed: 18 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
1919
enum LaunchMode {
2020
case chat
2121
case settings
22-
case mcp
2322
}
2423

2524
func applicationDidFinishLaunching(_ notification: Notification) {
@@ -47,8 +46,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
4746
let launchArgs = CommandLine.arguments
4847
if launchArgs.contains("--settings") {
4948
return .settings
50-
} else if launchArgs.contains("--mcp") {
51-
return .mcp
5249
} else {
5350
return .chat
5451
}
@@ -58,16 +55,22 @@ class AppDelegate: NSObject, NSApplicationDelegate {
5855
switch mode {
5956
case .settings:
6057
openSettings()
61-
case .mcp:
62-
openMCPSettings()
6358
case .chat:
6459
openChat()
6560
}
6661
}
6762

6863
private func openSettings() {
6964
DispatchQueue.main.async {
70-
activateAndOpenSettings()
65+
NSApp.activate(ignoringOtherApps: true)
66+
if #available(macOS 14.0, *) {
67+
let environment = SettingsEnvironment()
68+
environment.open()
69+
} else if #available(macOS 13.0, *) {
70+
NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil)
71+
} else {
72+
NSApp.sendAction(Selector(("showPreferencesWindow:")), to: nil, from: nil)
73+
}
7174
}
7275
}
7376

@@ -80,13 +83,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
8083
}
8184
}
8285

83-
private func openMCPSettings() {
84-
DispatchQueue.main.async {
85-
activateAndOpenSettings()
86-
hostAppStore.send(.setActiveTab(2))
87-
}
88-
}
89-
9086
@available(macOS 13.0, *)
9187
private func checkBackgroundPermissions() {
9288
Task {
@@ -175,18 +171,15 @@ struct CopilotForXcodeApp: App {
175171
queue: .main
176172
) { _ in
177173
DispatchQueue.main.async {
178-
activateAndOpenSettings()
179-
}
180-
}
181-
182-
DistributedNotificationCenter.default().addObserver(
183-
forName: .openMCPSettingsWindowRequest,
184-
object: nil,
185-
queue: .main
186-
) { _ in
187-
DispatchQueue.main.async {
188-
activateAndOpenSettings()
189-
hostAppStore.send(.setActiveTab(2))
174+
NSApp.activate(ignoringOtherApps: true)
175+
if #available(macOS 14.0, *) {
176+
let environment = SettingsEnvironment()
177+
environment.open()
178+
} else if #available(macOS 13.0, *) {
179+
NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil)
180+
} else {
181+
NSApp.sendAction(Selector(("showPreferencesWindow:")), to: nil, from: nil)
182+
}
190183
}
191184
}
192185
}
@@ -204,17 +197,4 @@ struct CopilotForXcodeApp: App {
204197
}
205198
}
206199

207-
@MainActor
208-
func activateAndOpenSettings() {
209-
NSApp.activate(ignoringOtherApps: true)
210-
if #available(macOS 14.0, *) {
211-
let environment = SettingsEnvironment()
212-
environment.open()
213-
} else if #available(macOS 13.0, *) {
214-
NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil)
215-
} else {
216-
NSApp.sendAction(Selector(("showPreferencesWindow:")), to: nil, from: nil)
217-
}
218-
}
219-
220200
var isPreview: Bool { ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1" }

Copilot for Xcode/Assets.xcassets/Color.colorset/Contents.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

Copilot for Xcode/Assets.xcassets/GroupBoxBackgroundColor.colorset/Contents.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

Copilot for Xcode/Assets.xcassets/GroupBoxStrokeColor.colorset/Contents.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

Copilot for Xcode/Credits.rtf

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3268,58 +3268,4 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\
32683268
SOFTWARE.\
32693269
\
32703270
\
3271-
Dependency: https://github.com/microsoft/monaco-editor\
3272-
Version: 0.52.2\
3273-
License Content:\
3274-
The MIT License (MIT)\
3275-
\
3276-
Copyright (c) 2016 - present Microsoft Corporation\
3277-
\
3278-
Permission is hereby granted, free of charge, to any person obtaining a copy\
3279-
of this software and associated documentation files (the "Software"), to deal\
3280-
in the Software without restriction, including without limitation the rights\
3281-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\
3282-
copies of the Software, and to permit persons to whom the Software is\
3283-
furnished to do so, subject to the following conditions:\
3284-
\
3285-
The above copyright notice and this permission notice shall be included in all\
3286-
copies or substantial portions of the Software.\
3287-
\
3288-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\
3289-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\
3290-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\
3291-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\
3292-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\
3293-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\
3294-
SOFTWARE.\
3295-
\
3296-
\
3297-
Dependency: https://github.com/xtermjs/xterm.js\
3298-
Version: @xterm/addon-fit@0.10.0, @xterm/xterm@5.5.0\
3299-
License Content:\
3300-
The MIT License (MIT)\
3301-
\
3302-
Copyright (c) 2017-2019, The xterm.js authors (https://github.com/xtermjs/xterm.js)\
3303-
Copyright (c) 2014-2016, SourceLair Private Company (https://www.sourcelair.com)\
3304-
Copyright (c) 2012-2013, Christopher Jeffrey (https://github.com/chjj/)\
3305-
\
3306-
Permission is hereby granted, free of charge, to any person obtaining a copy\
3307-
of this software and associated documentation files (the "Software"), to deal\
3308-
in the Software without restriction, including without limitation the rights\
3309-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\
3310-
copies of the Software, and to permit persons to whom the Software is\
3311-
furnished to do so, subject to the following conditions:\
3312-
\
3313-
The above copyright notice and this permission notice shall be included in\
3314-
all copies or substantial portions of the Software.\
3315-
\
3316-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\
3317-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\
3318-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\
3319-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\
3320-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\
3321-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\
3322-
THE SOFTWARE.\
3323-
\
3324-
\
33253271
}

Core/Package.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ let package = Package(
178178
.product(name: "AXHelper", package: "Tool"),
179179
.product(name: "ConversationServiceProvider", package: "Tool"),
180180
.product(name: "GitHubCopilotService", package: "Tool"),
181-
.product(name: "Workspace", package: "Tool"),
182-
.product(name: "Terminal", package: "Tool")
181+
.product(name: "Workspace", package: "Tool")
183182
]),
184183
.testTarget(
185184
name: "ChatServiceTests",
@@ -199,8 +198,7 @@ let package = Package(
199198
.product(name: "MarkdownUI", package: "swift-markdown-ui"),
200199
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
201200
.product(name: "SwiftUIFlowLayout", package: "swiftui-flow-layout"),
202-
.product(name: "Persist", package: "Tool"),
203-
.product(name: "Terminal", package: "Tool")
201+
.product(name: "Persist", package: "Tool")
204202
]
205203
),
206204

0 commit comments

Comments
 (0)