feat: ✨ manually running server option

This commit is contained in:
Nate Sesti 2023-08-28 14:59:30 -07:00
parent 1b2341a011
commit 29940ea422
2 changed files with 10 additions and 1 deletions

View file

@ -52,6 +52,11 @@
"type": "string",
"default": "http://localhost:65432",
"description": "The URL of the Continue server. Only change this if you are running the server manually. If you want to use an LLM hosted at a custom URL, please see https://continue.dev/docs/customization#change-the-default-llm. All other configuration is done in `~/.continue/config.py`, which you can access by using the '/config' slash command."
},
"continue.manuallyRunningServer": {
"type": "boolean",
"default": false,
"description": "If you are manually running the Continue server, you should update the Server URL and check this box. This will stop Continue from attempting to remove your server and download a new version."
}
}
},

View file

@ -186,8 +186,12 @@ export async function downloadFromS3(
export async function startContinuePythonServer(redownload: boolean = true) {
// Check vscode settings
const manuallyRunningServer =
vscode.workspace
.getConfiguration("continue")
.get<boolean>("manuallyRunningServer") || false;
const serverUrl = getContinueServerUrl();
if (serverUrl !== "http://localhost:65432") {
if (serverUrl !== "http://localhost:65432" || manuallyRunningServer) {
console.log("Continue server is being run manually, skipping start");
return;
}