add additional run configs
This commit is contained in:
parent
3bc3ac8c29
commit
2b87a1685d
8 changed files with 556 additions and 495 deletions
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
|
@ -14,8 +14,6 @@
|
|||
}
|
||||
},
|
||||
"search.exclude": {
|
||||
"**/binary": true,
|
||||
"binary/": false,
|
||||
"**/core/vendor/**": true,
|
||||
"**/gui/dist": true,
|
||||
"**/extensions/vscode/gui/**": true,
|
||||
|
|
|
|||
|
|
@ -674,7 +674,7 @@ function readConfigJs(): string | undefined {
|
|||
return fs.readFileSync(configJsPath, "utf8");
|
||||
}
|
||||
|
||||
async function buildConfigTs(ide: IDE, ideType: IdeType) {
|
||||
async function buildConfigTsandReadConfigJs(ide: IDE, ideType: IdeType) {
|
||||
const configTsPath = getConfigTsPath();
|
||||
|
||||
if (!fs.existsSync(configTsPath)) {
|
||||
|
|
@ -724,7 +724,7 @@ async function loadFullConfigNode(
|
|||
let intermediate = await serializedToIntermediateConfig(serialized, ide);
|
||||
|
||||
// Apply config.ts to modify intermediate config
|
||||
const configJsContents = await buildConfigTs(ide, ideType);
|
||||
const configJsContents = await buildConfigTsandReadConfigJs(ide, ideType);
|
||||
if (configJsContents) {
|
||||
try {
|
||||
// Try config.ts first
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ export const DEFAULT_IGNORE_FILETYPES = [
|
|||
"*.bin",
|
||||
"*.pag",
|
||||
"*.swp",
|
||||
"*.jsonl",
|
||||
// "*.prompt", // can be incredibly confusing for the LLM to have another set of instructions injected into the prompt
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
<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="Tail dev logs" type="ShConfigurationType" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
||||
17
extensions/intellij/.run/Tail_dev_logs.xml
Normal file
17
extensions/intellij/.run/Tail_dev_logs.xml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<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="tail -f ./binary/.continue/logs/core.log" />
|
||||
<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>
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
# Contributing to Continue (JetBrains extension) <!-- omit in toc -->
|
||||
|
||||
This file is for contribution guidelines specific to the JetBrains extension. See the root [
|
||||
`CONTRIBUTING.md`](../../CONTRIBUTING.md) for general contribution guidelines.
|
||||
This file is for contribution guidelines specific to the JetBrains extension. See the root [`CONTRIBUTING.md`](../../CONTRIBUTING.md) for general contribution guidelines.
|
||||
|
||||
## Table of Contents <!-- omit in toc -->
|
||||
|
||||
|
|
@ -18,6 +17,7 @@ This file is for contribution guidelines specific to the JetBrains extension. Se
|
|||
- [Setting breakpoints](#setting-breakpoints)
|
||||
- [Available Gradle tasks](#available-gradle-tasks)
|
||||
- [Packaging](#packaging)
|
||||
- [Testing the packaged extension](#testing-the-packaged-extension)
|
||||
|
||||
## Architecture Overview
|
||||
|
||||
|
|
@ -57,22 +57,27 @@ 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.
|
||||
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
|
||||
|
||||
- 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.
|
||||
- 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.
|
||||
|
||||
\
|
||||
|
||||
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 and connected via TCP to the server started
|
||||
through the `Core binary` task.
|
||||
|
||||
### Reloading changes
|
||||
|
||||
- `extensions/intellij`: Attempt to reload changed classes by selecting `Run | Debugging Actions | Reload Changed Classes`
|
||||
- `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
|
||||
- `gui`: Changes will be reloaded automatically
|
||||
- `core`: Run `npm run build` from the `binary` directory and restart the `Core binary` task in VS Code
|
||||
|
|
@ -103,8 +108,13 @@ verifyPluginConfiguration - Checks if Java and Kotlin compilers configuration me
|
|||
|
||||
### Packaging
|
||||
|
||||
- Unix: `./gradlew build`
|
||||
- Windows: `./gradlew.bat build`
|
||||
- Unix: `./gradlew buildPlugin`
|
||||
- Windows: `./gradlew.bat buildPlugin`
|
||||
|
||||
This will generate a .zip file in `./build/distributions` with the version defined in [
|
||||
`./gradle.properties`](./gradle.properties)
|
||||
This will generate a .zip file in `./build/distributions` with the version defined in [`./gradle.properties`](./gradle.properties)
|
||||
|
||||
#### Testing the packaged extension
|
||||
|
||||
- Navigate to the Plugins settings page (_Settings | Plugins_)
|
||||
- Click on the gear icon
|
||||
- Click _Install from disk_ and select the ZIP file in `./build/distributions`
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -9,15 +9,15 @@ interface MoreHelpRowProps {
|
|||
function MoreHelpRow({ title, description, onClick, Icon }: MoreHelpRowProps) {
|
||||
return (
|
||||
<div
|
||||
className="flex items-center gap-2 justify-between cursor-pointer"
|
||||
className="flex cursor-pointer items-center justify-between gap-2"
|
||||
onClick={onClick}
|
||||
>
|
||||
<div className="w-4/5 flex flex-col justify-center">
|
||||
<h3 className="text-sm my-0">{title}</h3>
|
||||
<span className="text-stone-500 py-1">{description}</span>
|
||||
<div className="flex w-4/5 flex-col justify-center">
|
||||
<h3 className="my-0 text-sm">{title}</h3>
|
||||
<span className="py-1 text-xs text-stone-500">{description}</span>
|
||||
</div>
|
||||
|
||||
<div className="flex justify-end w-1/5 cursor-pointer w-5 h-5 text-stone-500">
|
||||
<div className="flex h-5 w-1/5 w-5 cursor-pointer justify-end text-stone-500">
|
||||
<Icon />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue