diff options
| author | Nate Sesti <sestinj@gmail.com> | 2023-06-27 23:35:49 -0700 | 
|---|---|---|
| committer | Nate Sesti <sestinj@gmail.com> | 2023-06-27 23:35:49 -0700 | 
| commit | ec4585f2a390186b0828d555c8dff2c65f0fce6a (patch) | |
| tree | 3e343801962fa4c370be771b4cab982fa6cd1dc7 | |
| parent | 1d754c5d3a993712e8c5e1cb582ac9926185e007 (diff) | |
| download | sncontinue-ec4585f2a390186b0828d555c8dff2c65f0fce6a.tar.gz sncontinue-ec4585f2a390186b0828d555c8dff2c65f0fce6a.tar.bz2 sncontinue-ec4585f2a390186b0828d555c8dff2c65f0fce6a.zip | |
use a more esoteric port than 8000 (65432)
| -rw-r--r-- | continuedev/src/continuedev/server/main.py | 3 | ||||
| -rw-r--r-- | extension/DEV_README.md | 4 | ||||
| -rw-r--r-- | extension/config/config.json | 2 | ||||
| -rw-r--r-- | extension/config/dev_config.json | 2 | ||||
| -rw-r--r-- | extension/package.json | 2 | ||||
| -rw-r--r-- | extension/react-app/src/redux/slices/configSlice.ts | 2 | ||||
| -rw-r--r-- | extension/src/activation/environmentSetup.ts | 2 | ||||
| -rw-r--r-- | extension/src/bridge.ts | 4 | ||||
| -rw-r--r-- | extension/src/suggestions.ts | 16 | 
9 files changed, 19 insertions, 18 deletions
| diff --git a/continuedev/src/continuedev/server/main.py b/continuedev/src/continuedev/server/main.py index fb6ead02..f4d82903 100644 --- a/continuedev/src/continuedev/server/main.py +++ b/continuedev/src/continuedev/server/main.py @@ -31,7 +31,8 @@ def health():  # add cli arg for server port  parser = argparse.ArgumentParser() -parser.add_argument("-p", "--port", help="server port", type=int, default=8000) +parser.add_argument("-p", "--port", help="server port", +                    type=int, default=65432)  args = parser.parse_args() diff --git a/extension/DEV_README.md b/extension/DEV_README.md index fc91fe32..cf168cb3 100644 --- a/extension/DEV_README.md +++ b/extension/DEV_README.md @@ -4,6 +4,6 @@ This is the Continue VS Code Extension. Its primary jobs are  1. Implement the IDE side of the Continue IDE protocol, allowing a Continue server to interact natively in an IDE. This happens in `src/continueIdeClient.ts`.  2. Open the Continue React app in a side panel. The React app's source code lives in the `react-app` directory. The panel is opened by the `continue.openContinueGUI` command, as defined in `src/commands.ts`. -3. Run a Continue server in the background, which connects to both the IDE protocol and the React app. The server is launched in `src/activation/environmentSetup.ts` by calling Python code that lives in `scripts/` (unless extension settings define a server URL other than localhost:8000, in which case the extension will just connect to that). +3. Run a Continue server in the background, which connects to both the IDE protocol and the React app. The server is launched in `src/activation/environmentSetup.ts` by calling Python code that lives in `scripts/` (unless extension settings define a server URL other than localhost:65432, in which case the extension will just connect to that). -1. Open Continue 
\ No newline at end of file +4. Open Continue diff --git a/extension/config/config.json b/extension/config/config.json index a664d524..b4b9993e 100644 --- a/extension/config/config.json +++ b/extension/config/config.json @@ -1,3 +1,3 @@  { -  "API_URL": "http://localhost:8000" +  "API_URL": "http://localhost:65432"  } diff --git a/extension/config/dev_config.json b/extension/config/dev_config.json index a664d524..b4b9993e 100644 --- a/extension/config/dev_config.json +++ b/extension/config/dev_config.json @@ -1,3 +1,3 @@  { -  "API_URL": "http://localhost:8000" +  "API_URL": "http://localhost:65432"  } diff --git a/extension/package.json b/extension/package.json index ceba8698..447eaeba 100644 --- a/extension/package.json +++ b/extension/package.json @@ -50,7 +50,7 @@          },          "continue.serverUrl": {            "type": "string", -          "default": "http://localhost:8000", +          "default": "http://localhost:65432",            "description": "The URL of the Continue server to use."          },          "continue.OPENAI_API_KEY": { diff --git a/extension/react-app/src/redux/slices/configSlice.ts b/extension/react-app/src/redux/slices/configSlice.ts index 1b107bed..229c9c5c 100644 --- a/extension/react-app/src/redux/slices/configSlice.ts +++ b/extension/react-app/src/redux/slices/configSlice.ts @@ -4,7 +4,7 @@ import { RootStore } from "../store";  export const configSlice = createSlice({    name: "config",    initialState: { -    apiUrl: "http://localhost:8000", +    apiUrl: "http://localhost:65432",    } as RootStore["config"],    reducers: {      setWorkspacePath: ( diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index e4f8d6ed..168c79ad 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -218,7 +218,7 @@ export async function startContinuePythonServer() {    // Check vscode settings    const serverUrl = getContinueServerUrl(); -  if (serverUrl !== "http://localhost:8000") { +  if (serverUrl !== "http://localhost:65432") {      return;    } diff --git a/extension/src/bridge.ts b/extension/src/bridge.ts index b0fdafa7..92ba4044 100644 --- a/extension/src/bridge.ts +++ b/extension/src/bridge.ts @@ -48,7 +48,7 @@ export function get_api_url() {    if (config.API_URL) {      return config.API_URL;    } -  return "http://localhost:8000"; +  return "http://localhost:65432";  }  const API_URL = get_api_url(); @@ -62,7 +62,7 @@ export function getContinueServerUrl() {    }    return (      vscode.workspace.getConfiguration("continue").get<string>("serverUrl") || -    "http://localhost:8000" +    "http://localhost:65432"    );  } diff --git a/extension/src/suggestions.ts b/extension/src/suggestions.ts index 6e5f52ac..c9e29ed5 100644 --- a/extension/src/suggestions.ts +++ b/extension/src/suggestions.ts @@ -37,18 +37,18 @@ const oldDecorationType = vscode.window.createTextEditorDecorationType({  const newSelDecorationType = vscode.window.createTextEditorDecorationType({    backgroundColor: "rgb(0, 255, 0, 0.25)",    isWholeLine: true, -  after: { -    contentText: "Press ctrl+shift+enter to accept", -    margin: "0 0 0 1em", -  }, +  // after: { +  //   contentText: "Press ctrl+shift+enter to accept", +  //   margin: "0 0 0 1em", +  // },  });  const oldSelDecorationType = vscode.window.createTextEditorDecorationType({    backgroundColor: "rgb(255, 0, 0, 0.25)",    isWholeLine: true, -  after: { -    contentText: "Press ctrl+shift+enter to reject", -    margin: "0 0 0 1em", -  }, +  // after: { +  //   contentText: "Press ctrl+shift+enter to reject", +  //   margin: "0 0 0 1em", +  // },  });  export function rerenderDecorations(editorUri: string) { | 
