diff --git a/.idea/modules.xml b/.idea/modules.xml index 0a26ef9e0..ba5b279fb 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,9 +2,7 @@ - - - + \ No newline at end of file diff --git a/.idea/modules/continue-intellij-extension.iml b/.idea/modules/continue-intellij-extension.iml new file mode 100644 index 000000000..713a88bca --- /dev/null +++ b/.idea/modules/continue-intellij-extension.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/scopes/Continue.xml b/.idea/scopes/Continue.xml index dce173a74..3b28a76b1 100644 --- a/.idea/scopes/Continue.xml +++ b/.idea/scopes/Continue.xml @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index e895a880b..a2450e67c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -137,24 +137,5 @@ "NODE_OPTIONS": "--experimental-vm-modules" } } - // { - // "name": "[openai-adapters] Jest Test Debugger, Current Open File", - // "type": "node", - // "request": "launch", - // "runtimeArgs": [ - // "--inspect-brk", - // "${workspaceRoot}/packages/openai-adapters/node_modules/jest/bin/jest.js", - // "--runInBand", - // "--config", - // "${workspaceRoot}/packages/openai-adapters/jest.config.mjs", - // "${relativeFile}" - // ], - // "cwd": "${workspaceRoot}/packages/openai-adapters", - // "console": "integratedTerminal", - // "internalConsoleOptions": "neverOpen", - // "env": { - // "NODE_OPTIONS": "--experimental-vm-modules" - // } - // } ] } diff --git a/extensions/intellij/.run/Run Continue.run.xml b/extensions/intellij/.run/Run Continue.run.xml index 32ba73bb9..cc705773b 100644 --- a/extensions/intellij/.run/Run Continue.run.xml +++ b/extensions/intellij/.run/Run Continue.run.xml @@ -1,7 +1,8 @@ - + + diff --git a/extensions/intellij/.run/Start Dev Server (core).run.xml b/extensions/intellij/.run/Start Dev Server (core).run.xml new file mode 100644 index 000000000..e7fe0ccac --- /dev/null +++ b/extensions/intellij/.run/Start Dev Server (core).run.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/extensions/intellij/.run/Tail Dev Logs.run.xml b/extensions/intellij/.run/Tail Dev Logs.run.xml deleted file mode 100644 index 5685b4fd8..000000000 --- a/extensions/intellij/.run/Tail Dev Logs.run.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - \ No newline at end of file diff --git a/extensions/intellij/CONTRIBUTING.md b/extensions/intellij/CONTRIBUTING.md index 0cd7b1d6a..7dd776055 100644 --- a/extensions/intellij/CONTRIBUTING.md +++ b/extensions/intellij/CONTRIBUTING.md @@ -7,19 +7,19 @@ This file is for contribution guidelines specific to the JetBrains extension. Se - [Architecture Overview](#architecture-overview) - [Environment Setup](#environment-setup) - - [IDE Installation](#ide-installation) - - [IDE configuration](#ide-configuration) - - [Node.js Requirements](#nodejs-requirements) - - [Install all dependencies](#install-all-dependencies) - - [Misc](#misc) + - [IDE Installation](#ide-installation) + - [IDE configuration](#ide-configuration) + - [Node.js Requirements](#nodejs-requirements) + - [Install all dependencies](#install-all-dependencies) + - [Misc](#misc) - [Development Workflow](#development-workflow) - - [Running the extension](#running-the-extension) - - [Accessing files in the `.continue` directory](#accessing-files-in-the-continue-directory) - - [Reloading changes](#reloading-changes) - - [Setting breakpoints](#setting-breakpoints) - - [Available Gradle tasks](#available-gradle-tasks) - - [Packaging](#packaging) - - [Testing the packaged extension](#testing-the-packaged-extension) + - [Running the extension in debug mode](#running-the-extension-in-debug-mode) + - [Accessing files in the `.continue` directory](#accessing-files-in-the-continue-directory) + - [Reloading changes](#reloading-changes) + - [Setting breakpoints](#setting-breakpoints) + - [Available Gradle tasks](#available-gradle-tasks) + - [Packaging](#packaging) + - [Testing the packaged extension](#testing-the-packaged-extension) ## Architecture Overview @@ -59,41 +59,32 @@ This project requires Node.js version 20.11.0 (LTS) or higher. You have two opti ## Development Workflow -Because the `gui` and `core` are written in TypeScript, our development workflow is built around the assumption that you -have VS Code installed. +### Running the extension in debug mode -### Running the extension +Select the `Run Continue` task in the top right corner of the IDE and then select the "Debug" option. -- Open the project in VS Code and star the `Core binary` task -- Switch back to Intellij and select the "Run Continue" configuration in the top-right corner of the IDE -- Click the "Debug" button - - The first time running this will install the IDE version specified by the `platformVersion` property in [ - `./run/Run Extension.run.xml`](./.run/Run%20Extension.run.xml). This will take a moment as the installation size - can be close to 1GB. +![run-extension-screenshot](../../media/run-continue-intellij.png) -![run-extension-screenshot](../../media/run-intellij-extension.png)\ - -This should open a new instance on IntelliJ with the extension installed and connected via TCP to the server started -through the `Core binary` task. +This should open a new instance on IntelliJ with the extension installed. ### Accessing files in the `.continue` directory -When running the `Core Binary` task, we set the location of your Continue directory to `./binary/.continue`. This is to +When running the `Start Dev Server (core)` task, we set the location of your Continue directory to `./binary/.continue`. This is to allow for changes to your `config.json` and other files during development, without affecting your actual configuration. ### Reloading changes - `extensions/intellij`: Attempt to reload changed classes by selecting _Run | Debugging Actions | Reload Changed Classes`_ - - This will often fail on new imports, schema changes etc. In that case, you need to stop and restart the extension + - This will often fail on new imports, schema changes etc. In that case, you need to stop and restart the extension - `gui`: Changes will be reloaded automatically -- `core`: Run `npm run build` from the `binary` directory and restart the `Core binary` task in VS Code +- `core`: Run `npm run build` from the `binary` directory (requires restarting the `Start Dev Server (core)` task) ### Setting breakpoints - `extensions/intellij`: Breakpoints can be set in Intellij - `gui`: You'll need to set explicit `debugger` statements in the source code, or through the browser dev tools -- `core`: Breakpoints can be set in VS Code (requires restarting the _Core Binary_ task) +- `core`: Breakpoints can be set in Intellij (requires restarting the `Start Dev Server (core)` task) ### Available Gradle tasks diff --git a/gui/src/components/OnboardingCard/components/JetBrainsFetchGitHubTokenDialog.tsx b/gui/src/components/OnboardingCard/components/JetBrainsFetchGitHubTokenDialog.tsx index 38d1b526b..cc20e77d7 100644 --- a/gui/src/components/OnboardingCard/components/JetBrainsFetchGitHubTokenDialog.tsx +++ b/gui/src/components/OnboardingCard/components/JetBrainsFetchGitHubTokenDialog.tsx @@ -36,8 +36,8 @@ function JetBrainsFetchGitHubTokenDialog({ return (
-

Sign in with GitHub

-

+

Sign in with GitHub

+

Continue will request read access to your GitHub email so that we can prevent abuse of the free trial. If you prefer not to sign in, you can use Continue with your own API keys or local model. diff --git a/media/run-continue-intellij.png b/media/run-continue-intellij.png index 75d0a04f3..129cf37bb 100644 Binary files a/media/run-continue-intellij.png and b/media/run-continue-intellij.png differ