File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Core/Sources/CodeiumService Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public class CodeiumSuggestionService {
5151
5252 let authService = CodeiumAuthService ( )
5353
54- var xcodeVersion = " 14.0 "
54+ var xcodeVersion = " 14.0.0 "
5555
5656 init ( designatedServer: CodeiumLSP ) {
5757 projectRootURL = URL ( fileURLWithPath: " / " )
@@ -89,6 +89,12 @@ public class CodeiumSuggestionService {
8989
9090 let metadata = try getMetadata ( )
9191 xcodeVersion = ( try ? await getXcodeVersion ( ) ) ?? xcodeVersion
92+ let versionNumberSegmentCount = xcodeVersion. split ( separator: " . " ) . count
93+ if versionNumberSegmentCount == 2 {
94+ xcodeVersion += " .0 "
95+ } else if versionNumberSegmentCount == 1 {
96+ xcodeVersion += " .0.0 "
97+ }
9298 let tempFolderURL = FileManager . default. temporaryDirectory
9399 let managerDirectoryURL = tempFolderURL
94100 . appendingPathComponent ( " com.intii.CopilotForXcode " )
@@ -181,7 +187,7 @@ extension CodeiumSuggestionService {
181187 return Metadata (
182188 ide_name: " xcode " ,
183189 ide_version: xcodeVersion,
184- extension_version: " 14.0.0 " ,
190+ extension_version: xcodeVersion ,
185191 api_key: key,
186192 session_id: CodeiumSuggestionService . sessionId,
187193 request_id: requestCounter
You can’t perform that action at this time.
0 commit comments