diff --git a/package.json b/package.json index e848f4b..62a49ae 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "g1nation", "displayName": "G1nation", "description": "High-performance autonomous local AI coding agent for VS Code. Features vectorized inference, asynchronous task management, and 100% offline processing.", - "version": "2.32.0", + "version": "2.33.0", "publisher": "connectailab", "license": "MIT", "icon": "assets/icon.png", diff --git a/tests/mocks/vscode.js b/tests/mocks/vscode.js new file mode 100644 index 0000000..4302cf4 --- /dev/null +++ b/tests/mocks/vscode.js @@ -0,0 +1,50 @@ +const configStore = new Map(); + +const config = { + get: (key, fallback) => configStore.has(key) ? configStore.get(key) : fallback, + update: async (key, value) => { + configStore.set(key, value); + } +}; + +module.exports = { + workspace: { + workspaceFolders: [], + getConfiguration: () => config, + fs: { + writeFile: async () => {}, + delete: async () => {} + } + }, + window: { + createOutputChannel: () => ({ + appendLine: () => {}, + show: () => {}, + dispose: () => {} + }), + createStatusBarItem: () => ({ + text: '', + tooltip: '', + command: '', + backgroundColor: undefined, + show: () => {}, + hide: () => {}, + dispose: () => {} + }), + showInformationMessage: async () => undefined, + showWarningMessage: async () => undefined, + showErrorMessage: async () => undefined + }, + StatusBarAlignment: { Right: 2 }, + ThemeColor: class ThemeColor { + constructor(id) { + this.id = id; + } + }, + Uri: { + file: (fsPath) => ({ fsPath, scheme: 'file' }), + joinPath: (base, ...parts) => ({ fsPath: [base.fsPath, ...parts].join('/') }) + }, + ProgressLocation: { Notification: 15 }, + ConfigurationTarget: { Global: 1, Workspace: 2 } +};