Skip to content

Commit f20f4bf

Browse files
committed
fix: type experiments endpoint to avoid unsafe any assignment
1 parent 39bc4dd commit f20f4bf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/deployment/deploymentManager.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,9 @@ export class DeploymentManager implements vscode.Disposable {
260260
private updateExperimentContexts(): void {
261261
this.client
262262
.getAxiosInstance()
263-
.get("/api/v2/experiments")
264-
.then((resp) => {
265-
const experiments: string[] = resp.data ?? [];
266-
this.contextManager.set(
263+
.get<string[]>("/api/v2/experiments")
264+
.then((resp) => {
265+
const experiments = resp.data ?? []; this.contextManager.set(
267266
"coder.agentsEnabled",
268267
experiments.includes("agents"),
269268
);

0 commit comments

Comments
 (0)