Commit graph

4355 commits

Author SHA1 Message Date
Nate
f659aa69bb Bump version to 1.1.70 2025-07-28 18:36:22 -07:00
Nate
2fc7106c6f test: skip next edit e2e test due to flake 2025-07-28 18:17:25 -07:00
Nate Sesti
72b7791b5e
Merge pull request #6723 from continuedev/dallin/system-message-tools
feat: System Message tools
2025-07-28 15:31:20 -07:00
Tomasz Stefaniak
6ca9c60e66
Merge pull request #6573 from continuedev/nate/onboarding-improvements-p1
fix: Onboarding / assistant switcher improvements
2025-07-28 13:27:51 -07:00
Dallin Romney
a521117e8f fix: merge main 2025-07-29 01:57:00 +07:00
Dallin Romney
929e5deb40 merge: main 2025-07-29 01:56:42 +07:00
Dallin Romney
0c9a238f71
Merge branch 'main' into dallin/system-message-tools 2025-07-29 01:36:05 +07:00
Nate
18f21e3834 Merge branch 'main' into nate/onboarding-improvements-p1 2025-07-28 11:15:09 -07:00
Tomasz Stefaniak
c9e15ddf5c
Merge pull request #6661 from continuedev/jacob/enhancement/nextedit-perf
Jacob/enhancement/nextedit perf
2025-07-28 10:54:28 -07:00
Nate Sesti
451f43c6f9
Merge pull request #6824 from continuedev/exigow/add-file-tests-and-migrate-platform
fix: Add file tests + migrate to IntelliJ Platform Gradle Plugin v2
2025-07-28 10:42:58 -07:00
Jakub Blach
4ef45d3173 fix formatting 2025-07-28 20:48:20 +02:00
Jakub Blach
5f647afdf2 fix: Add file tests + migrate to IntelliJ Platform Gradle Plugin v2
The tests use fixtures and operate on real files in a temp directory.
This change will allow us to confidently migrate from java.io.File to VFS.

Note: These tests are headless and starts the Continue binary. This gives us many possibilities because we can write fast and valuable tests without runIdeForUiTests.

The IntelliJ Platform plugin already includes classes like BasePlatformTestCase written in JUnit 3, which we should be using for unit testing.
We also have JUnit 5 for e2e testing. As a result, we had two different runners, which caused problems because we couldn’t use classes like UsefulTest since they required a different runner.
In order to fix that, I had to add `org.junit.vintage:junit-vintage-engine` to enable running both JUnit 3 and JUnit 5 tests.

Note: ideally, we should have a sourceSet named testIntegration with its own dependencies for E2E (robot, JUnit 5, video recorder).
That would give us a clean separation between E2E tests and unit tests. That would prevent accidental use of JUnit 5 classes in unit tests. We should do that in the future.

The new platform simplifies plugin config and allows us to remove some of the custom code.
I left the original Qodana and Kover configs, but looking at our workflow, i think it's currently dead code.
If we don’t plan to use them, I think we can remove these dependencies in the future.

Note: along with this migration, I had to bump a wrapper to latest version.

For some reason, we included the Kotlin standard library with the plugin, even though we had a property specifying we didn’t want to.
I saw no objections to removing this dependency, so I decided to do that.

From now on, we rely on older stdlib that's bundled with 2022.3+.

More context: https://github.com/continuedev/continue/pull/6431#issuecomment-3031838189

This proves my point regarding the removal of the standard library dependency.

I added plugin verification against versions 2022.3.3 (oldest) and 2025.1.4 (newest). Everything is working.

Plugin can be verified with `./gradlew verifyPlugin`. We can consider adding this to CI later.

I made a few small improvements that simplify the build scripts:
* Some properties were removed because they duplicated content from `plugin.xml` (e.g., supported version numbers, plugin ID, and similar - all were unnecessarily overridden inside `intellij {}`/`intellijPlatform {}`).
* I replaced `prepareSandbox` with a separate task that is now a dependency of all `runIde` tasks, so there is no need to declare each case individually.
* From now on, properties are read via delegation instead of calling our custom `properties(...)` function. This is type-safe (if a property is not declared, the build will fail).
* I removed the `kotlin("test")` dependency, which we were only using for `assertTrue`.

The e2e Autocomplete tests are very flaky, and unfortunately, I haven’t been able to find a solution yet. I will try to address this in upcoming fixes.
I believe that ultimately we should have max one e2e test describing the happy path, and the rest of the features should be tested with unit tests.
Our e2e tests are very inconvenient, which results in no one running them (because we hijack the input), so they should be kept to a minimum.
The rest of the e2e tests were already disabled (I assume I know why :D), so I didn't touch them.

Fun fact: with the removal of the standard library, we managed to remove all unnecessary dependencies except for Sentry and PostHog (which are included for obvious reasons).
2025-07-28 20:39:44 +02:00
Tomasz Stefaniak
fe4ab26a9b
Merge pull request #6472 from dipfocus/improvement/modernize-download-with-proxy
Modernize downloadFile function with fetch API and proxy support
2025-07-28 10:23:31 -07:00
Jacob Kim
3b200458af refactor: rename renderDeletes to renderDeletions 2025-07-28 10:18:47 -07:00
Patrick Erichsen
076ff3efc1
chore: ignore max-lines-per-function in tests (#6825)
* chore: ignore `max-lines-per-function` in tests

* Update package-lock.json
2025-07-28 09:04:13 -07:00
Tomasz Stefaniak
173f9bf5bb chore: bump version numbers 2025-07-28 08:22:58 -07:00
Patrick Erichsen
880786b66f
Revert "feat: enhance oneper utility and refactor build system for commit SHA versioning" (#6811) 2025-07-28 08:07:06 -07:00
Tomasz Stefaniak
05674bf409 chore: bump versions for prerelease 2025-07-25 17:59:21 -07:00
Nate Sesti
9c67767973
Merge pull request #6788 from continuedev/pe/oneper-version-change
feat: enhance oneper utility and refactor build system for commit SHA versioning
2025-07-25 15:42:11 -07:00
Jakub Błach
e9558277de
fix: Apply proxy settings on the Continue process using environment variables (solves #5242) (#6752)
* fix: Apply proxy settings on the Continue process using environment variables (solves #5242)

This is a new and simplified implementation for passing proxy config.

It's based on environment variables instead of dedicated message in the protocol, however it has some downsides.

More details:
* This will not work if we use the binary with USE_TCP, because these env vars can only be set for the process.
* The implementation of the process handler has partially changed its behavior. From now on, manual restart (including Continue: Restart Process action) has no artificial delay/it's instant. This was a bug IMO that is fixed now.

To test this in a development environment, you need to remove USE_TCP from the run configuration.
Currently, we only track two proxy settings controls: whether it's enabled and the proxy address along with the port.
To test this, you need to go into the settings, change the state of those controls, then apply. The activity polls their values, and if it detects a change, the service restarts the binary, which reads the new setting on start.
There should always be only one process per IDE, regardless of how quickly the settings are changed or how often the binary is restarted manually.

* fix: misc.xml

* fix
2025-07-25 15:41:24 -07:00
Jakub Błach
5d45c46afe
fix: Add logging of Continue binary IO (#6658)
* fix: Add logging of Continue binary IO

* reformat
2025-07-25 15:27:25 -07:00
Patrick Erichsen
b3b5f24a0f update locks 2025-07-25 13:52:47 -07:00
Patrick Erichsen
b7eb90da79 fix path errors 2025-07-25 13:51:33 -07:00
Patrick Erichsen
1307aef340 update build scripts 2025-07-25 13:40:55 -07:00
Tomasz Stefaniak
280e9bf3c9
Merge pull request #6785 from continuedev/tingwai/log-editOutcome-for-agent-mode
feat: add editOutcome logging for Agent Mode
2025-07-25 13:07:52 -07:00
Jakub Błach
621e1dbf6b
fix: Add JCEF not supported warning (#6762)
* fix: Add JCEF not supported warning

Related to: #5107, #4598, #649, #596

* fix: provide guidance on how to install the correct JDK
2025-07-25 11:29:20 -07:00
Jakub Błach
b2986e3a84
fix: fix /auth/refresh string value (#6799) 2025-07-25 08:13:38 -07:00
Patrick Erichsen
0bab51eae5 refactor: update build system and oneper script for commit SHA versioning
- Update main.yaml workflow to use reusable build-vscode-extension.yml
- Fix oneper script to properly handle commit SHA-based versioning
- Switch packages to use local file:// references for better dev experience
- Update build scripts to handle fetch package dependencies correctly
- Add VS Code task for building packages with extension

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-24 19:10:16 -07:00
Ting-Wai To
4d44234855 feat: add editOutcome logging for Agent Mode
• Add editOutcome.jsonl logging for Agent Mode accept / rejects
• Capture original file content before applying changes to enable proper diff tracking
• Fix newline handling in IntelliJ and VS Code to prevent line count discrepancies, was causing lineChange count to be off by one
2025-07-24 14:38:04 -07:00
Ting-Wai
20d546e243
Merge pull request #6780 from uinstinct/dev-data-edit-outcome
improve: add filepath in editoutcome dev data
2025-07-24 11:33:58 -07:00
uinstinct
90f703724d improve: add filepath in editoutcome dev data 2025-07-24 19:52:53 +05:30
Dallin Romney
0f85e80be5
Merge pull request #6757 from continuedev/exigow/remove-out-of-process-config
fix: Remove redundant jcef.out-of-process=false from run configs
2025-07-24 14:17:51 +02:00
Jakub Błach
d1b258ffc3
fix: Send the process exit reason to Sentry + add OS info 2025-07-24 14:16:00 +02:00
Tomasz Stefaniak
80f7f711cb chore: upgrade 2025-07-23 11:29:26 -07:00
Dallin Romney
954d816885 merge main 2025-07-23 20:53:42 +07:00
Jakub Blach
71fed98d36 fix: Remove redundant jcef.out-of-process=false from run configs
Related to #6611
2025-07-23 14:42:21 +02:00
Nate
9dc2ac9da2 Merge branch 'main' into exigow/send-process-exit-reason 2025-07-21 22:03:25 -07:00
Nate Sesti
10861f2cd5
Merge pull request #6702 from SoLoHiC/feature/jetbrainPlugins/terminalContent
feat: Support @Terminal Context Provider and RunInTerminal Button for Jetbrains Plugin
2025-07-21 22:00:38 -07:00
Nate Sesti
fe6fa7ddec
Merge pull request #6581 from continuedev/jacob/feature/static
feat: Test static contextualization
2025-07-21 21:53:21 -07:00
Jakub Błach
52e2f3c4e0
fix: Ignore invalid JSON messages (like NODE_ENV undefined) (#6576)
Fixes: https://continue-xd.sentry.io/issues/6731751693

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
2025-07-21 14:37:06 -07:00
Jakub Błach
60aa531650
fix: Follow JetBrains IDE proxy settings (#6531)
* fix: use HttpRequests in ContinueAuthService

* wip

* fix: Use HttpRequests everywhere in Jetbrains plugin

* build: Remove OkHttp from release (note: it's still used for testing)

* fix time

* remove todo

* remove todo (fixed)
2025-07-21 14:25:20 -07:00
Jakub Błach
40b1a588c0
build: Add *-eap postfix to JetBrains Early Access releases (#6728)
Extra cleanup:
* Remove unused log4j dependency
  We don't have any dependency that uses it, so this dependency was unnecessarily added to the release.
* Remove explicit version in patchPluginXml
  The version is already retrieved from the project-level version / it was redundant.
* Remove commented-out publishPlugin.hidden + some noisy/redundant comments
  I removed the commented-out code which doesn't work anyway (the hidden field is not available in this version of the JetBrains Gradle plugin).

### Test

> ./gradlew buildPlugin
Outputs distributions/continue-intellij-extension-1.0.28.zip

> export RELEASE_CHANNEL=eap
> ./gradlew buildPlugin
Outputs distributions/continue-intellij-extension-1.0.28-eap.zip
2025-07-21 14:12:14 -07:00
zimu
ebd5154b8c fix: recover non-related change in InteliJIde.kt 2025-07-21 09:58:18 +08:00
zimu
76bbb67dba feat: reuse terminal and find by terminalName before running command 2025-07-21 09:58:18 +08:00
zimu
bb049e8f86 feat: implement runCommand() method in IntelijIde.kt, and update a interface signature for runCommand by providing TerminalOptions.class, which aligns to how VS COde Extension implemented 2025-07-21 09:58:10 +08:00
zimu
10e4c325a2 feat: optimize getTerminalContents in InteliJIde.kt, which reads content from the selected terminal panel 2025-07-21 09:56:16 +08:00
zimu
1862344605 feat: support getTerminalContents in InteliJIde.kt, which could only read content from the latest terminal tab for now 2025-07-21 09:56:16 +08:00
Dallin Romney
400013333d chore: system message tools: cleanup and restore edit test 2025-07-20 12:42:03 +02:00
Dallin Romney
9511eb5fa9 fix: test failures - was doing a chat test in agent mode 2025-07-20 12:19:42 +02:00
Patrick Erichsen
8d832b7378 chore: bump verssions 2025-07-17 22:20:03 -07:00