use a more esoteric port than 8000 (65432)
This commit is contained in:
parent
1d754c5d3a
commit
ec4585f2a3
9 changed files with 19 additions and 18 deletions
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
4. Open Continue
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"API_URL": "http://localhost:8000"
|
||||
"API_URL": "http://localhost:65432"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"API_URL": "http://localhost:8000"
|
||||
"API_URL": "http://localhost:65432"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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: (
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue