Skip to content

Commit 2a1bb8d

Browse files
authored
Fix for audience undefined (#7756)
1 parent 5e2053e commit 2a1bb8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lm/tools/copilotRemoteAgentTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class CopilotRemoteAgentTool implements vscode.LanguageModelTool<CopilotR
134134
const data: Uint8Array = Uint8Array.from(buffer);
135135

136136
// API might not be available for tests, this guarantees we are still able to test
137-
const userAudience = vscode.LanguageModelPartAudience.User;
137+
const userAudience = vscode.LanguageModelPartAudience?.User ?? 1;
138138
lmResult.push(new vscode.LanguageModelDataPart2(data, 'application/pull-request+json', [userAudience]));
139139
}
140140

0 commit comments

Comments
 (0)