Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions apps/vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.6.1

### Fixed

- The **Sign in** action in the settings (gear) menu now actually starts the
Kimi login flow and shows an error toast when sign-in fails, instead of
silently doing nothing.

## 0.6.0

### Breaking
Expand Down
2 changes: 1 addition & 1 deletion apps/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publisher": "moonshot-ai",
"displayName": "Kimi Code",
"description": "Official Kimi Code plugin for VS Code",
"version": "0.6.0",
"version": "0.6.1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update version-sensitive smoke expectations

When this manifest is packaged as a 0.6.1 VSIX, the CI vscode-vsix-package job runs pnpm --filter kimi-code run test:extension-host, but that harness still asserts extension.packageJSON.version is exactly 0.6.0 in apps/vscode/test/extension-host/index.cjs:34. Because vsix-package.mjs builds and packages this updated manifest, the installed Extension Host smoke will fail before activation; the root test shard also still checks the User-Agent against kimi-code-vscode/0.6.0 in apps/vscode/test/kimi-harness.integration.test.ts:342. Please update these version-coupled tests or make them read the package version.

Useful? React with 👍 / 👎.

"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down
7 changes: 5 additions & 2 deletions apps/vscode/test/extension-host/index.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const assert = require("node:assert/strict");
const { writeFile } = require("node:fs/promises");
const { readFile, writeFile } = require("node:fs/promises");
const os = require("node:os");
const path = require("node:path");
const vscode = require("vscode");
Expand Down Expand Up @@ -31,7 +31,10 @@ exports.run = async function run() {

const extension = vscode.extensions.getExtension(EXTENSION_ID);
assert.ok(extension, `${EXTENSION_ID} is not installed in the isolated Extension Host`);
assert.equal(extension.packageJSON.version, "0.6.0");
const sourceManifest = JSON.parse(
await readFile(path.join(__dirname, "..", "..", "package.json"), "utf8"),
);
assert.equal(extension.packageJSON.version, sourceManifest.version);
assert.equal(extension.packageJSON.main, "./dist/extension.js");
assert.ok(process.env.KIMI_CODE_HOME, "KIMI_CODE_HOME must point at the isolated test home");
assert.equal(process.env.HOME, isolatedHome);
Expand Down
4 changes: 3 additions & 1 deletion apps/vscode/test/kimi-harness.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ interface RuntimeRig {
readonly runtime: KimiRuntime;
readonly broadcasts: BroadcastRecord[];
readonly logs: LogRecord[];
readonly version: string;
closeProvider(): Promise<void>;
}

Expand Down Expand Up @@ -129,6 +130,7 @@ async function createRuntimeRig(): Promise<RuntimeRig> {
broadcasts,
logs,
closeProvider,
version,
};
}

Expand Down Expand Up @@ -340,7 +342,7 @@ describe("VS Code Kimi harness integration (shares one in-process SDK home)", ()
await expect(session.prompt("hello")).resolves.toEqual({ status: "finished" });

expect(rig.provider.requests[0]?.headers["user-agent"]).toBe(
"kimi-code-vscode/0.6.0",
`kimi-code-vscode/${rig.version}`,
);
});

Expand Down
Loading