Elffuss BraidHub

kikocis/continue public

main · 1.9 KiBRenderedRawPermalink
1# Continue JetBrains Extension
2
3## Project Purpose
4
5JetBrains/IntelliJ extension for Continue AI code agent. Provides chat, autocomplete, inline edit, and agent features within JetBrains IDEs.
6
7## Architecture
8
9- **Language**: Kotlin (JDK 17), Gradle build
10- **Communication**: stdin/stdout message passing with core binary from `../../binary`
11- **UI**: Embeds React webview from `../../gui`
12- **Platform**: IntelliJ Platform Plugin (IDEA, PyCharm, WebStorm, etc.)
13
14## Key Source Structure
15
16```
17src/main/kotlin/com/github/continuedev/continueintellijextension/
18├── continue/ # Core integration (CoreMessenger, IntelliJIde, IdeProtocolClient)
19├── autocomplete/ # Code completion logic
20├── editor/ # Diff handling, inline edits
21├── toolWindow/ # Main UI panel
22├── services/ # Settings, plugin lifecycle
23├── actions/ # Keyboard shortcuts, menu actions
24├── protocol/ # Message type definitions
25└── constants/ # App constants, paths
26
27src/main/resources/
28├── META-INF/plugin.xml # Plugin configuration
29└── webview/ # Embedded React UI assets
30```
31
32## Core Files
33
34- `IntelliJIde.kt`: Main IDE interface implementation
35- `CoreMessenger.kt`: Binary communication handler
36- `plugin.xml`: Plugin manifest and extension points
37- `build.gradle.kts`: Build configuration
38- `ContinuePluginService.kt`: Main service orchestrator
39
40## Message Protocol
41
42JSON messages between Extension ↔ Core ↔ GUI. Message types in `constants/MessageTypes.kt`. Extension relays messages between core binary and webview.
43
44## Testing
45
46- Unit tests: `src/test/kotlin/`
47- E2E tests: UI automation with intellij-ui-test-robot
48- Test command: `./gradlew test`
49- Debug: `runIde` Gradle task
50
51## Key Integration Points
52
53- File operations via IntelliJ VFS
54- Editor integration for diffs/autocomplete
55- Git operations for repository context
56- Settings via IntelliJ platform storage