fix vscode activation failure with tasks, more jetbrains task updates
This commit is contained in:
parent
a439c86b08
commit
b2254d341d
31 changed files with 1949 additions and 43 deletions
2
.idea/.name
generated
2
.idea/.name
generated
|
|
@ -1 +1 @@
|
|||
Continue IntelliJ Extension
|
||||
continue-intellij-extension
|
||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
|
|
@ -4,7 +4,7 @@
|
|||
<component name="FrameworkDetectionExcludesConfiguration">
|
||||
<file type="web" url="file://$PROJECT_DIR$/extensions/intellij" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="17" project-jdk-type="JavaSDK" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK" />
|
||||
<component name="SuppressKotlinCodeStyleNotification">
|
||||
<option name="disableForAll" value="true" />
|
||||
</component>
|
||||
|
|
|
|||
8
.idea/modules.xml
generated
8
.idea/modules.xml
generated
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/continue-intellij-extension.iml" filepath="$PROJECT_DIR$/.idea/modules/continue-intellij-extension.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
8
.idea/modules/continue-intellij-extension.iml
generated
8
.idea/modules/continue-intellij-extension.iml
generated
|
|
@ -1,8 +0,0 @@
|
|||
<?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>
|
||||
6
.vscode/launch.json
vendored
6
.vscode/launch.json
vendored
|
|
@ -20,9 +20,7 @@
|
|||
"outFiles": ["${workspaceFolder}/extensions/vscode/out/extension.js"],
|
||||
"preLaunchTask": "vscode-extension:build",
|
||||
"env": {
|
||||
// "staging" for the preview deployment
|
||||
// "local" for entirely local development of control plane/proxy
|
||||
// "CONTROL_PLANE_ENV": "staging"
|
||||
"CONTINUE_GLOBAL_DIR": "${workspaceFolder}/extensions/.continue-debug"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -38,7 +36,7 @@
|
|||
"cwd": "${workspaceFolder}/binary",
|
||||
"env": {
|
||||
"CONTINUE_DEVELOPMENT": "true",
|
||||
"CONTINUE_GLOBAL_DIR": "${workspaceFolder}/binary/.continue"
|
||||
"CONTINUE_GLOBAL_DIR": "${workspaceFolder}/extensions/.continue-debug"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
7
.vscode/tasks.json
vendored
7
.vscode/tasks.json
vendored
|
|
@ -5,7 +5,7 @@
|
|||
{
|
||||
"label": "vscode-extension:build",
|
||||
"dependsOn": [
|
||||
// To detect compile errors
|
||||
// To detect compile errors and output extensions.js
|
||||
"vscode-extension:tsc",
|
||||
// To build the React app that is used in the extension
|
||||
"vscode-extension:continue-ui:build",
|
||||
|
|
@ -21,7 +21,10 @@
|
|||
},
|
||||
{
|
||||
"label": "vscode-extension:esbuild",
|
||||
"dependsOn": ["vscode-extension:continue-ui:build"],
|
||||
"dependsOn": [
|
||||
"vscode-extension:continue-ui:build",
|
||||
"vscode-extension:tsc"
|
||||
],
|
||||
"type": "npm",
|
||||
"script": "esbuild-watch",
|
||||
"path": "extensions/vscode",
|
||||
|
|
|
|||
76
extensions/.continue-debug/config.json
Normal file
76
extensions/.continue-debug/config.json
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
"models": [
|
||||
{
|
||||
"model": "claude-3-5-sonnet-20240620",
|
||||
"provider": "anthropic",
|
||||
"apiKey": "",
|
||||
"title": "Claude 3.5 Sonnet"
|
||||
}
|
||||
],
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest",
|
||||
"apiKey": ""
|
||||
},
|
||||
"customCommands": [
|
||||
{
|
||||
"name": "test",
|
||||
"prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
|
||||
"description": "Write unit tests for highlighted code"
|
||||
}
|
||||
],
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "code",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"name": "docs",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"name": "diff",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"name": "terminal",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"name": "problems",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"name": "folder",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"name": "codebase",
|
||||
"params": {}
|
||||
}
|
||||
],
|
||||
"slashCommands": [
|
||||
{
|
||||
"name": "edit",
|
||||
"description": "Edit selected code"
|
||||
},
|
||||
{
|
||||
"name": "comment",
|
||||
"description": "Write comments for the selected code"
|
||||
},
|
||||
{
|
||||
"name": "share",
|
||||
"description": "Export the current chat session to markdown"
|
||||
},
|
||||
{
|
||||
"name": "cmd",
|
||||
"description": "Generate a shell command"
|
||||
},
|
||||
{
|
||||
"name": "commit",
|
||||
"description": "Generate a git commit message"
|
||||
}
|
||||
],
|
||||
"docs": []
|
||||
}
|
||||
3
extensions/.continue-debug/config.ts
Normal file
3
extensions/.continue-debug/config.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export function modifyConfig(config: Config): Config {
|
||||
return config;
|
||||
}
|
||||
BIN
extensions/.continue-debug/index/autocompleteCache.sqlite
Normal file
BIN
extensions/.continue-debug/index/autocompleteCache.sqlite
Normal file
Binary file not shown.
BIN
extensions/.continue-debug/index/docs.sqlite
Normal file
BIN
extensions/.continue-debug/index/docs.sqlite
Normal file
Binary file not shown.
6
extensions/.continue-debug/index/globalContext.json
Normal file
6
extensions/.continue-debug/index/globalContext.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"lastSelectedProfileForWorkspace": {
|
||||
"/Users/dallin/Documents/code/continue/manual-testing-sandbox": "local"
|
||||
},
|
||||
"curEmbeddingsProviderId": "_TransformersJsEmbeddingsProvider::all-MiniLM-L6-v2"
|
||||
}
|
||||
BIN
extensions/.continue-debug/index/index.sqlite
Normal file
BIN
extensions/.continue-debug/index/index.sqlite
Normal file
Binary file not shown.
BIN
extensions/.continue-debug/index/index.sqlite-shm
Normal file
BIN
extensions/.continue-debug/index/index.sqlite-shm
Normal file
Binary file not shown.
BIN
extensions/.continue-debug/index/index.sqlite-wal
Normal file
BIN
extensions/.continue-debug/index/index.sqlite-wal
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
extensions/.continue-debug/package.json
Normal file
1
extensions/.continue-debug/package.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"name":"continue-config","version":"1.0.0","description":"My Continue Configuration","main":"config.js"}
|
||||
File diff suppressed because one or more lines are too long
8
extensions/.continue-debug/sessions/sessions.json
Normal file
8
extensions/.continue-debug/sessions/sessions.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
{
|
||||
"sessionId": "89004c9d-6d6f-4786-83e0-a9f61c80bf44",
|
||||
"title": "(dallin) dallin@Dallins-MBP intellij % ",
|
||||
"dateCreated": "1730235077652",
|
||||
"workspaceDirectory": "/Users/dallin/Documents/code/continue/manual-testing-sandbox"
|
||||
}
|
||||
]
|
||||
29
extensions/.continue-debug/tsconfig.json
Normal file
29
extensions/.continue-debug/tsconfig.json
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"useDefineForClassFields": true,
|
||||
"lib": [
|
||||
"DOM",
|
||||
"DOM.Iterable",
|
||||
"ESNext"
|
||||
],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"module": "System",
|
||||
"moduleResolution": "Node",
|
||||
"noEmit": false,
|
||||
"noEmitOnError": false,
|
||||
"outFile": "./out/config.js",
|
||||
"typeRoots": [
|
||||
"./node_modules/@types",
|
||||
"./types"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"./config.ts"
|
||||
]
|
||||
}
|
||||
1024
extensions/.continue-debug/types/core/index.d.ts
vendored
Normal file
1024
extensions/.continue-debug/types/core/index.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -3,7 +3,7 @@
|
|||
<toRun name="Run Extension" type="GradleRunConfiguration" />
|
||||
<toRun name="Prompt Logs" type="ShConfigurationType" />
|
||||
<toRun name="Start Core Dev Server (CE)" type="ShConfigurationType" />
|
||||
<toRun name="Start GUI Dev Server (CE)" type="ShConfigurationType" />
|
||||
<toRun name="Start GUI Dev Server" type="ShConfigurationType" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Run Continue (IU)" type="CompoundRunConfigurationType">
|
||||
<toRun name="Run Extension" type="GradleRunConfiguration" />
|
||||
<toRun name="Prompt Logs" type="ShConfigurationType" />
|
||||
<toRun name="Start Core Dev Server (IU)" type="NodeJSConfigurationType" />
|
||||
<toRun name="Start GUI Dev Server (CE)" type="ShConfigurationType" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
||||
9
extensions/intellij/.run/Run Continue.run.xml
Normal file
9
extensions/intellij/.run/Run Continue.run.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Run Continue" type="CompoundRunConfigurationType">
|
||||
<toRun name="Run Extension" type="GradleRunConfiguration" />
|
||||
<toRun name="Prompt Logs" type="ShConfigurationType" />
|
||||
<toRun name="Start Core Dev Server" type="Unknown" />
|
||||
<toRun name="Start GUI Dev Server" type="ShConfigurationType" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Start Core Dev Server (IU)" type="NodeJSConfigurationType" path-to-js-file="out/index.js" working-dir="$PROJECT_DIR$/binary">
|
||||
<configuration default="false" name="Start Core Dev Server" 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" />
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Start GUI Dev Server (CE)" type="ShConfigurationType">
|
||||
<configuration default="false" name="Start GUI Dev Server" type="ShConfigurationType">
|
||||
<option name="SCRIPT_TEXT" value="npm run dev" />
|
||||
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
|
||||
<option name="SCRIPT_PATH" value="" />
|
||||
|
|
@ -30,11 +30,11 @@ packaging it in a binary in the `binary` directory. Communication occurs over st
|
|||
|
||||
### IDE Installation
|
||||
|
||||
We recommend using IntelliJ IDEA, which you can download from
|
||||
the [JetBrains website](https://www.jetbrains.com/idea/download).
|
||||
Continue is built with JDK version 17 (as specified in [`./build.gradle.kts`](./build.gradle.kts)), which can be downloaded from [Oracle](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html).
|
||||
|
||||
Both Ultimate and Community (free) editions are suitable for this project. Continue is built with JDK version 17, as
|
||||
specified in [`./build.gradle.kts`](./build.gradle.kts).
|
||||
We recommend using IntelliJ IDEA, which you can download from the [JetBrains website](https://www.jetbrains.com/idea/download).
|
||||
|
||||
Both Ultimate and Community (free) editions are suitable for this project, although Ultimate has better debugging (see notes below).
|
||||
|
||||
### IDE configuration
|
||||
|
||||
|
|
@ -63,13 +63,15 @@ This project requires Node.js version 20.11.0 (LTS) or higher. You have two opti
|
|||
|
||||
Select the `Run Continue` task in the top right corner of the IDE and then select the "Debug" option.
|
||||
|
||||
> In community edition, use `Run Continue (CE)` instead, which uses shell scripts instead of Ultimate-only node configs. If you want to debug the core in CE, you'll need to quit the `Start Core Dev Server (CE)` process and run the core in a different environment that supports debugging, such as VS Code (Launch "Core Binary").
|
||||
|
||||

|
||||
|
||||
This should open a new instance on IntelliJ with the extension installed.
|
||||
|
||||
### Accessing files in the `.continue` directory
|
||||
|
||||
When running the `Start Dev Server (core)` task, we set the location of your Continue directory to `./binary/.continue`. This is to
|
||||
When running the `Start Core Dev Server` 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
|
||||
|
|
@ -78,13 +80,13 @@ allow for changes to your `config.json` and other files during development, with
|
|||
_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 (requires restarting the `Start Dev Server (core)` task)
|
||||
- `core`: Run `npm run build` from the `binary` directory (requires restarting the `Start Core Dev Server` 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 Intellij (requires restarting the `Start Dev Server (core)` task)
|
||||
- `core`: Breakpoints can be set in Intellij (requires restarting the `Start Core Dev Server` task)
|
||||
|
||||
### Available Gradle tasks
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue