Skip to content

Commit e8846ff

Browse files
committed
Merge branch 'main' into hotfix/tweak-caching
2 parents 0c4f8ea + 6753da1 commit e8846ff

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

Core/Sources/Service/Workspace.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ final class Workspace {
8989
static func fetchOrCreateWorkspaceIfNeeded(fileURL: URL) async throws
9090
-> (workspace: Workspace, filespace: Filespace)
9191
{
92+
// never create duplicated filespaces
93+
for workspace in workspaces.values {
94+
if let filespace = workspace.filespaces[fileURL] {
95+
return (workspace, filespace)
96+
}
97+
}
98+
9299
let projectURL = try await Environment.fetchCurrentProjectRootURL(fileURL)
93100
let workspaceURL = projectURL ?? fileURL
94101
let workspace = workspaces[workspaceURL] ?? Workspace(projectRootURL: workspaceURL)

appcast.xml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@
33
<channel>
44
<title>Copilot for Xcode</title>
55

6-
<item>
7-
<title>0.11.1</title>
8-
<pubDate>Mon, 10 Apr 2023 19:04:48 +0800</pubDate>
9-
<sparkle:version>81</sparkle:version>
10-
<sparkle:shortVersionString>0.11.1</sparkle:shortVersionString>
11-
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
12-
<sparkle:releaseNotesLink>
13-
https://github.com/intitni/CopilotForXcode/releases/tag/0.11.1
14-
</sparkle:releaseNotesLink>
15-
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.11.1/Copilot.for.Xcode.app.zip" length="19038951" type="application/octet-stream" sparkle:edSignature="fp0vSUUH7JyIeyeUrMa9p6u3UFkgl5EeNjkmuzPL9hTmjfkVR77IM/9BIe2730OYy7PR429ngSjWPS+PGIT0Bg=="/>
16-
</item>
17-
186
<item>
197
<title>0.11.0</title>
208
<pubDate>Sat, 08 Apr 2023 23:32:22 +0800</pubDate>
@@ -61,4 +49,4 @@
6149
type="application/octet-stream" />
6250
</item>
6351
</channel>
64-
</rss>
52+
</rss>

0 commit comments

Comments
 (0)