Skip to content

Commit

Permalink
Merge branch 'feature/github-copilot-chat-language' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
intitni committed Dec 22, 2024
2 parents 0e77d4c + 43ba6fd commit daeae30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ enum GitHubCopilotRequest {

var source: GitHubCopilotChatSource? // inline or panel
var workspaceFolder: String?
var userLanguage: String?
}

let requestBody: RequestBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ public final class GitHubCopilotChatService: BuiltinExtensionChatServiceType {
capabilities: .init(allSkills: false, skills: []),
doc: doc,
source: .panel,
workspaceFolder: workspace.projectURL.path
workspaceFolder: workspace.projectURL.path,
userLanguage: {
let language = UserDefaults.shared.value(for: \.chatGPTLanguage)
if language.isEmpty {
return "Auto Detected"
}
return language
}()
))

let stream = AsyncThrowingStream<String, Error> { continuation in
Expand Down

0 comments on commit daeae30

Please sign in to comment.