Merge pull request #2648 from continuedev/pe/jb-misc-fixes

bugfix: incorrect font sizing on JB GH auth dialog
This commit is contained in:
Patrick Erichsen 2024-10-23 16:54:52 -07:00 • committed by GitHub
commit fbb8a88779
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 43 additions and 72 deletions

4
.idea/modules.xml generated
View file

@ -2,9 +2,7 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/modules/com.github.continuedev.continueintellijextension.continue-intellij-extension.iml" filepath="$PROJECT_DIR$/.idea/modules/com.github.continuedev.continueintellijextension.continue-intellij-extension.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/com.github.continuedev.continueintellijextension.continue-intellij-extension.main.iml" filepath="$PROJECT_DIR$/.idea/modules/com.github.continuedev.continueintellijextension.continue-intellij-extension.main.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/com.github.continuedev.continueintellijextension.continue-intellij-extension.test.iml" filepath="$PROJECT_DIR$/.idea/modules/com.github.continuedev.continueintellijextension.continue-intellij-extension.test.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/continue-intellij-extension.iml" filepath="$PROJECT_DIR$/.idea/modules/continue-intellij-extension.iml" />
</modules>
</component>
</project>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="AdditionalModuleElements">
<content url="file://$MODULE_DIR$/../..">
<sourceFolder url="file://$MODULE_DIR$/../../extensions/intellij/.gradle/8.3/dependencies-accessors/5ff144de810dd952e050983bda2040fa7aa351f8/sources" isTestSource="false" />
</content>
</component>
</module>

View file

@ -1,3 +1,3 @@
<component name="DependencyValidationManager">
<scope name="Continue" pattern="!file[com.github.continuedev.continueintellijextension.continue-intellij-extension]:gui/dist//*&amp;&amp;!file[com.github.continuedev.continueintellijextension.continue-intellij-extension]:extensions/vscode/gui//*&amp;&amp;!file[com.github.continuedev.continueintellijextension.continue-intellij-extension]:core/vendor//*" />
<scope name="Continue" pattern="file[continue-intellij-extension]:*/&amp;&amp;!file[continue-intellij-extension]:binary/bin//*&amp;&amp;!file[continue-intellij-extension]:binary/build//*&amp;&amp;!file[continue-intellij-extension]:binary/out//*&amp;&amp;!file[continue-intellij-extension]:gui/dist//*&amp;&amp;!file[continue-intellij-extension]:extensions/intellij/build//*&amp;&amp;!file[continue-intellij-extension]:extensions/vscode/bin//*&amp;&amp;!file[continue-intellij-extension]:extensions/vscode/build//*&amp;&amp;!file[continue-intellij-extension]:extensions/vscode/out//*" />
</component>

19
.vscode/launch.json vendored
View file

@ -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"
// }
// }
]
}

View file

@ -1,7 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run Continue" type="CompoundRunConfigurationType">
<toRun name="Run Extension" type="GradleRunConfiguration" />
<toRun name="GUI: Start Dev Server" type="js.build_tools.npm" />
<toRun name="Start Dev Server (core)" type="NodeJSConfigurationType" />
<toRun name="Start Dev Server (gui)" type="js.build_tools.npm" />
<toRun name="Tail Dev Logs" type="ShConfigurationType" />
<method v="2" />
</configuration>

View file

@ -0,0 +1,9 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Start Dev Server (core)" type="NodeJSConfigurationType" path-to-js-file="out/index.js" working-dir="$PROJECT_DIR$/binary">
<envs>
<env name="CONTINUE_DEVELOPMENT" value="true" />
<env name="CONTINUE_GLOBAL_DIR" value="$PROJECT_DIR$/binary/.continue" />
</envs>
<method v="2" />
</configuration>
</component>

View file

@ -1,17 +0,0 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Tail Dev Logs" type="ShConfigurationType">
<option name="SCRIPT_TEXT" value="tail -f ./binary/.continue/logs/core.log" />
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
<option name="SCRIPT_PATH" value="" />
<option name="SCRIPT_OPTIONS" value="" />
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
<option name="INTERPRETER_PATH" value="/bin/zsh" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="EXECUTE_IN_TERMINAL" value="false" />
<option name="EXECUTE_SCRIPT_FILE" value="false" />
<envs />
<method v="2" />
</configuration>
</component>

View file

@ -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

View file

@ -36,8 +36,8 @@ function JetBrainsFetchGitHubTokenDialog({
return (
<div className="flex flex-col gap-3 p-8">
<div className="text-center">
<h1 className="my-0">Sign in with GitHub</h1>
<p>
<h1 className="my-0 text-xl">Sign in with GitHub</h1>
<p className="text-sm">
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.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 11 KiB