From d18cb9b12aa4f31e982bf3097cb8325f484e8607 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Thu, 7 Sep 2023 11:23:25 -0700 Subject: style: :children_crossing: remove -h flag conflicting with help --- continuedev/src/continuedev/server/main.py | 2 +- extension/src/activation/environmentSetup.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/continuedev/src/continuedev/server/main.py b/continuedev/src/continuedev/server/main.py index 09adfa51..bbae2bb2 100644 --- a/continuedev/src/continuedev/server/main.py +++ b/continuedev/src/continuedev/server/main.py @@ -63,7 +63,7 @@ if __name__ == "__main__": "-p", "--port", help="server port", type=int, default=65432 ) parser.add_argument( - "-h", "--host", help="server host", type=str, default="127.0.0.1" + "--host", help="server host", type=str, default="127.0.0.1" ) args = parser.parse_args() except Exception as e: diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index 4493a6af..3f82631f 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -194,7 +194,11 @@ export async function startContinuePythonServer(redownload: boolean = true) { .getConfiguration("continue") .get("manuallyRunningServer") || false; const serverUrl = getContinueServerUrl(); - if (serverUrl !== "http://localhost:65432" || manuallyRunningServer) { + if ( + (serverUrl !== "http://localhost:65432" && + serverUrl !== "http://127.0.0.1:65432") || + manuallyRunningServer + ) { console.log("Continue server is being run manually, skipping start"); return; } -- cgit v1.2.3-70-g09d2