diff options
Diffstat (limited to 'extension')
| -rw-r--r-- | extension/package-lock.json | 4 | ||||
| -rw-r--r-- | extension/package.json | 6 | ||||
| -rw-r--r-- | extension/scripts/continuedev-0.1.0-py3-none-any.whl | bin | 51468 -> 53104 bytes | |||
| -rw-r--r-- | extension/scripts/install_from_source.py | 45 | 
4 files changed, 50 insertions, 5 deletions
| diff --git a/extension/package-lock.json b/extension/package-lock.json index a90827d8..faa07b57 100644 --- a/extension/package-lock.json +++ b/extension/package-lock.json @@ -1,12 +1,12 @@  {    "name": "continue", -  "version": "0.0.2", +  "version": "0.0.3",    "lockfileVersion": 2,    "requires": true,    "packages": {      "": {        "name": "continue", -      "version": "0.0.2", +      "version": "0.0.3",        "dependencies": {          "@electron/rebuild": "^3.2.10",          "@reduxjs/toolkit": "^1.9.3", diff --git a/extension/package.json b/extension/package.json index 525ec075..40d56fb7 100644 --- a/extension/package.json +++ b/extension/package.json @@ -14,7 +14,7 @@    "displayName": "Continue",    "pricing": "Free",    "description": "Refine code 10x faster", -  "version": "0.0.2", +  "version": "0.0.3",    "publisher": "Continue",    "engines": {      "vscode": "^1.74.0" @@ -23,7 +23,7 @@      "Other"    ],    "activationEvents": [ -    "*" +    "onStartupFinished"    ],    "main": "./out/extension.js",    "contributes": { @@ -160,7 +160,7 @@      "pretest": "npm run compile && npm run lint",      "lint": "eslint src --ext ts",      "test": "node ./out/test/runTest.js", -    "package": "cp ./config/prod_config.json ./config/config.json && npm run compile && mkdir -p ./build && vsce package --out ./build && chmod 777 ./build/continue-0.0.1.vsix && cp ./config/dev_config.json ./config/config.json", +    "package": "cp ./config/prod_config.json ./config/config.json && mkdir -p ./build && vsce package --out ./build && chmod 777 ./build/continue-0.0.2.vsix && cp ./config/dev_config.json ./config/config.json",      "full-package": "cd ../continuedev && poetry build && cp ./dist/continuedev-0.1.0-py3-none-any.whl ../extension/scripts/continuedev-0.1.0-py3-none-any.whl && cd ../extension && npm run typegen && npm run clientgen && cd react-app && npm run build && cd .. && npm run package",      "install-extension": "code --install-extension ./build/continue-0.0.1.vsix",      "uninstall": "code --uninstall-extension .continue", diff --git a/extension/scripts/continuedev-0.1.0-py3-none-any.whl b/extension/scripts/continuedev-0.1.0-py3-none-any.whlBinary files differ index 68457b3e..d1483db9 100644 --- a/extension/scripts/continuedev-0.1.0-py3-none-any.whl +++ b/extension/scripts/continuedev-0.1.0-py3-none-any.whl diff --git a/extension/scripts/install_from_source.py b/extension/scripts/install_from_source.py new file mode 100644 index 00000000..4fe903ed --- /dev/null +++ b/extension/scripts/install_from_source.py @@ -0,0 +1,45 @@ +import subprocess + + +def run(cmd: str): +    return subprocess.run(cmd, shell=True, capture_output=True) + + +def main(): +    # Check for Python and Node - we won't install them, but will warn +    out, err1 = run("python --version") +    out, err2 = run("python3 --version") +    if err1 and err2: +        print("Python is required for Continue but is not installed on your machine. See https://www.python.org/downloads/ to download the latest version, then try again.") +        return + +    out, err = run("node --version") +    if err: +        print("Node is required for Continue but is not installed on your machine. See https://nodejs.org/en/download/ to download the latest version, then try again.") +        return + +    out, err = run("npm --version") +    if err: +        print("NPM is required for Continue but is not installed on your machine. See https://nodejs.org/en/download/ to download the latest version, then try again.") +        return + +    out, err = run("poetry --version") +    if err: +        print("Poetry is required for Continue but is not installed on your machine. See https://python-poetry.org/docs/#installation to download the latest version, then try again.") +        return + +    out, err = run("cd ../../continuedev; poetry run typegen") + +    out, err = run( +        "cd ..; npm i; cd react-app; npm i; cd ..; npm run full-package\r y\r npm run install-extension") + +    if err: +        print("Error installing the extension. Please try again.") +        print("This was the error: ", err) +        return + +    print("Continue VS Code extension installed successfully. Please restart VS Code to use it.") + + +if __name__ == "__main__": +    main() | 
