We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39bc4dd commit f20f4bfCopy full SHA for f20f4bf
src/deployment/deploymentManager.ts
@@ -260,10 +260,9 @@ export class DeploymentManager implements vscode.Disposable {
260
private updateExperimentContexts(): void {
261
this.client
262
.getAxiosInstance()
263
- .get("/api/v2/experiments")
264
- .then((resp) => {
265
- const experiments: string[] = resp.data ?? [];
266
- this.contextManager.set(
+ .get<string[]>("/api/v2/experiments")
+ .then((resp) => {
+ const experiments = resp.data ?? []; this.contextManager.set(
267
"coder.agentsEnabled",
268
experiments.includes("agents"),
269
);
0 commit comments