Update package version and improve installation process
- Bump package version from 0.0.34 to 0.0.38. - Change pip3 install command to include --upgrade flag. - Add check for DevChatPath configuration before setting status to ready.
This commit is contained in:
parent
9aba48d09e
commit
e3c9f69822
@ -2,7 +2,7 @@
|
||||
"name": "devchat",
|
||||
"displayName": "DevChat",
|
||||
"description": "Write prompts, not code",
|
||||
"version": "0.0.34",
|
||||
"version": "0.0.38",
|
||||
"icon": "assets/devchat.png",
|
||||
"publisher": "merico",
|
||||
"engines": {
|
||||
|
@ -65,7 +65,7 @@ function checkDependencyPackage() {
|
||||
if (selectedAction === installAction) {
|
||||
// Install devchat using pip3 install devchat
|
||||
const terminal = vscode.window.createTerminal("DevChat Install");
|
||||
terminal.sendText("pip3 install devchat");
|
||||
terminal.sendText("pip3 install --upgrade devchat");
|
||||
terminal.show();
|
||||
}
|
||||
});
|
||||
|
@ -64,7 +64,12 @@ function activate(context: vscode.ExtensionContext) {
|
||||
// 2. dependence is invalid
|
||||
// 3. ready
|
||||
if (devchatStatus === '' || devchatStatus === 'waitting install devchat') {
|
||||
const bOk = checkDevChatDependency();
|
||||
let bOk = true;
|
||||
let devChat : string|undefined = vscode.workspace.getConfiguration('DevChat').get('DevChatPath');
|
||||
if (!devChat) {
|
||||
bOk = false;
|
||||
}
|
||||
|
||||
if (bOk) {
|
||||
devchatStatus = 'ready';
|
||||
} else {
|
||||
@ -76,7 +81,7 @@ function activate(context: vscode.ExtensionContext) {
|
||||
if (devchatStatus === 'not ready') {
|
||||
// auto install devchat
|
||||
const terminal = vscode.window.createTerminal("DevChat Install");
|
||||
terminal.sendText("pip3 install devchat");
|
||||
terminal.sendText("pip3 install --upgrade devchat");
|
||||
terminal.show();
|
||||
devchatStatus = 'waitting install devchat';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user