Skip to content

Commit 39bc4dd

Browse files
committed
fix: prettier formatting and vscode-test config for 1.106.0
- Apply prettier formatting to deploymentManager.ts and testHelpers.ts. - Update .vscode-test.mjs minimum version from 1.95.0 to 1.106.0 to match the CI matrix and engines.vscode requirement.
1 parent 72ec13d commit 39bc4dd

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.vscode-test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { defineConfig } from "@vscode/test-cli";
22

33
// VS Code to Electron/Node version mapping:
4-
// VS Code 1.95 (Oct 2024) -> Node 20 - Minimum supported
4+
// VS Code 1.106 (Jun 2025) -> Node 22 - Minimum supported
55
// VS Code stable -> Latest
6-
const versions = ["1.95.0", "stable"];
6+
const versions = ["1.106.0", "stable"];
77

88
const baseConfig = {
99
files: "out/test/integration/**/*.test.js",

src/deployment/deploymentManager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ export class DeploymentManager implements vscode.Disposable {
258258
* Runs in the background so it does not block login.
259259
*/
260260
private updateExperimentContexts(): void {
261-
this.client.getAxiosInstance().get("/api/v2/experiments")
261+
this.client
262+
.getAxiosInstance()
263+
.get("/api/v2/experiments")
262264
.then((resp) => {
263265
const experiments: string[] = resp.data ?? [];
264266
this.contextManager.set(

test/mocks/testHelpers.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,12 @@ export class MockCoderApi implements Pick<
544544
});
545545

546546
// Minimal axios-like stub for getAxiosInstance().
547-
readonly getAxiosInstance = vi.fn(() => ({
548-
get: vi.fn().mockResolvedValue({ data: [] }),
549-
}) as unknown as AxiosInstance);
547+
readonly getAxiosInstance = vi.fn(
548+
() =>
549+
({
550+
get: vi.fn().mockResolvedValue({ data: [] }),
551+
}) as unknown as AxiosInstance,
552+
);
550553

551554
/**
552555
* Get current host (for assertions)

0 commit comments

Comments
 (0)