Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(inline code snippet ui): resolved issue of showing inline code sn… #263

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vscode/src/providers/chat_view_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,20 +278,20 @@
let auth = Auth.getInstance();
/// Request the client to process the task and handle result or error
let agentTrackData = {
'agent_name': (agentResponse['agent'] as string).substring(1),

Check warning on line 281 in vscode/src/providers/chat_view_provider.ts

View workflow job for this annotation

GitHub Actions / lint

Object Literal Property name `agent_name` must match one of the following formats: camelCase
'slash_command': agentResponse['slug'],

Check warning on line 282 in vscode/src/providers/chat_view_provider.ts

View workflow job for this annotation

GitHub Actions / lint

Object Literal Property name `slash_command` must match one of the following formats: camelCase
'agent_version': agentResponse['agent_version']

Check warning on line 283 in vscode/src/providers/chat_view_provider.ts

View workflow job for this annotation

GitHub Actions / lint

Object Literal Property name `agent_version` must match one of the following formats: camelCase
};
logEvent('agent_start', agentTrackData);
const response = await task.run({
kind: "agent-execute", data: {
"auth_details": {

Check warning on line 288 in vscode/src/providers/chat_view_provider.ts

View workflow job for this annotation

GitHub Actions / lint

Object Literal Property name `auth_details` must match one of the following formats: camelCase
"type": "gemini",
"key": auth.getApiKey(),
"github_token": auth.getGithubAccessToken()

Check warning on line 291 in vscode/src/providers/chat_view_provider.ts

View workflow job for this annotation

GitHub Actions / lint

Object Literal Property name `github_token` must match one of the following formats: camelCase
},
...agentResponse,
agent_name: (agentResponse['agent'] as string).substring(1) // remove the '@'

Check warning on line 294 in vscode/src/providers/chat_view_provider.ts

View workflow job for this annotation

GitHub Actions / lint

Object Literal Property name `agent_name` must match one of the following formats: camelCase
}
});
logEvent('agent_success', agentTrackData);
Expand All @@ -312,7 +312,7 @@
}
if (type === "code_input" && value) {
const parsedValue = JSON.parse(value);
prompt += `\n ${parsedValue?.referenceContent}`;
prompt += "\n" + parsedValue?.referenceContent;
}
});

Expand Down
Loading