refactor(vscode): remove default autocomplete model from package.json

Remove the hardcoded default value for `kilo-code.new.autocomplete.model` in package.json to prevent VS Code from stripping user overrides that match the schema default. Update corresponding unit tests to verify that no default is declared.
This commit is contained in:
kiloconnect[bot]
2026-04-27 17:09:38 +00:00
parent 5bc384fc83
commit 5b26cfe5fa
3 changed files with 8 additions and 4 deletions
-1
View File
@@ -751,7 +751,6 @@
},
"kilo-code.new.autocomplete.model": {
"type": "string",
"default": "mistralai/codestral-2508",
"enum": [
"mistralai/codestral-2508",
"inception/mercury-edit"
@@ -1,7 +1,7 @@
import { describe, it, expect } from "bun:test"
import { readFileSync } from "node:fs"
import { join } from "node:path"
import { AUTOCOMPLETE_MODELS, DEFAULT_AUTOCOMPLETE_MODEL } from "../../src/shared/autocomplete-models"
import { AUTOCOMPLETE_MODELS } from "../../src/shared/autocomplete-models"
describe("autocomplete model enum ↔ AUTOCOMPLETE_MODELS sync", () => {
const pkg = JSON.parse(readFileSync(join(__dirname, "../../package.json"), "utf8"))
@@ -16,7 +16,7 @@ describe("autocomplete model enum ↔ AUTOCOMPLETE_MODELS sync", () => {
expect(prop.enumDescriptions).toHaveLength(AUTOCOMPLETE_MODELS.length)
})
it("package.json default matches DEFAULT_AUTOCOMPLETE_MODEL", () => {
expect(prop.default).toBe(DEFAULT_AUTOCOMPLETE_MODEL.id)
it("package.json does not declare a default (VS Code strips user overrides that equal the schema default)", () => {
expect(prop.default).toBeUndefined()
})
})