diff --git a/src/contributes/commands.ts b/src/contributes/commands.ts index b71069c..b1f4606 100644 --- a/src/contributes/commands.ts +++ b/src/contributes/commands.ts @@ -273,7 +273,7 @@ export function registerAskCodeIndexStartCommand(context: vscode.ExtensionContex // check whether pythonVirtualEnv is stisfy the requirement version const devchatAskVersion = getPackageVersion(pythonVirtualEnv, "devchat-ask"); - let requireAskVersion = "0.1.3"; + let requireAskVersion = "0.1.7"; if (!devchatAskVersion || devchatAskVersion < requireAskVersion) { logger.channel()?.info(`The version of devchat-ask is ${devchatAskVersion}`); diff --git a/src/handler/checkDevChatAsk.ts b/src/handler/checkDevChatAsk.ts index 1c932aa..73f5138 100644 --- a/src/handler/checkDevChatAsk.ts +++ b/src/handler/checkDevChatAsk.ts @@ -10,7 +10,7 @@ export async function isDevChatInstalledImpl() { if (pythonVirtualEnv) { // check whether pythonVirtualEnv is stisfy the requirement version const devchatAskVersion = getPackageVersion(pythonVirtualEnv, "devchat-ask"); - if (!devchatAskVersion || devchatAskVersion < "0.1.3") { + if (!devchatAskVersion || devchatAskVersion < "0.1.7") { pythonVirtualEnv = undefined; } } diff --git a/src/util/python_installer/install_askcode.ts b/src/util/python_installer/install_askcode.ts index 6714f4b..85f3489 100644 --- a/src/util/python_installer/install_askcode.ts +++ b/src/util/python_installer/install_askcode.ts @@ -13,7 +13,7 @@ import { logger } from "../logger"; export async function installAskCode(): Promise { try { logger.channel()?.info(`start installing AskCode with python=3.11.4 ...`); - let devchatAskVersion = '>=0.1.3'; + let devchatAskVersion = '>=0.1.7'; const pythonCommand = await appInstall("devchat-ask", devchatAskVersion, '3.11.4'); if (!pythonCommand) { logger.channel()?.error(`failed to install devchat-ask with python=3.11.4`); diff --git a/src/views/stores/ChatStore.ts b/src/views/stores/ChatStore.ts index 2f7eb4d..73ff209 100644 --- a/src/views/stores/ChatStore.ts +++ b/src/views/stores/ChatStore.ts @@ -228,14 +228,20 @@ You can configure DevChat from [Settings](#settings).`; message: userMessage }); const isInstalled = yield isDevChatInstalled(); + if (isInstalled){ - self.disabled = true; - self.errorMessage = ''; - self.messages.push({ - type: 'bot', - message: '', - confirm: true - }); + // self.disabled = true; + // self.errorMessage = ''; + // self.messages.push({ + // type: 'bot', + // message: '', + // confirm: true + // }); + self.messages.push({ + type: 'bot', + message: '' + }); + startGenerating(userMessage, chatContexts); } else { self.messages.push({ type: 'bot', diff --git a/tools b/tools index 782ec45..ce89bf9 160000 --- a/tools +++ b/tools @@ -1 +1 @@ -Subproject commit 782ec455d62cae6dc0f94f5f977330d14d0637b8 +Subproject commit ce89bf904f70acd832d70cd564d763df18b09504