Commit graph

1330 commits

Author SHA1 Message Date
Taras Malinovskii
c5490d97ea
fix(intellij): handle square brackets in file paths for autocomplete (#11474)
* fix(intellij): handle square brackets in file paths for autocomplete

Use File.toURI() instead of URI constructor for Windows two-slash
file:// URIs to properly percent-encode special characters like [ ].
Fixes #10978.

* test(intellij): strengthen Windows URI assertions for bracket encoding

Verify that square brackets are percent-encoded and drive letter
and directory structure are preserved in parsed URI path.

* fix(intellij): make Windows bracket test cross-platform

The CI runs on Linux where C: is not a drive letter.
Assert that brackets are encoded and structure is preserved
without platform-specific path assumptions.

* fix: use cross-platform URI constructor instead of File.toURI()

File.toURI() is platform-dependent — on non-Windows hosts it treats
Windows drive paths (e.g. C:/Users/...) as relative paths, producing
corrupted URIs. The multi-arg URI(scheme, host, path, fragment)
constructor is pure RFC 2396 string manipulation and works identically
on all platforms.

Also strengthens the Windows bracket test with exact equality assertions
instead of loose contains/assertFalse checks.

* chore: remove verbose comments for minimal diff

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-26 15:12:38 -07:00
Dallin Romney
afd5e5e18f
fix: chunk large JCEF messages to prevent JetBrains sidebar freezes (#11899)
* fix: chunk large JCEF messages to prevent JetBrains sidebar freezes

When session data exceeds ~1MB (e.g. long conversations with many context
items), sendToWebview embeds the entire JSON payload in a single
executeJavaScript call. JCEF's JS parser/compiler cannot handle source
strings that large and freezes the IDE.

This adds a chunked sending path: payloads over 1MB are base64-encoded,
split into 512KB chunks sent as individual executeJavaScript calls that
each append to a buffer variable, then a final call decodes and dispatches
the reassembled message via window.postMessage. Each individual call is
trivial for JCEF to parse, and V8 handles the string concatenation and
final JSON.parse without issue.

Messages under 1MB (the vast majority) take the existing fast path unchanged.

* chore: trim verbose comments

* fix: clean up partial chunk buffer on failure

* fix: use array join instead of string concat for JCEF chunk reassembly

Replaces O(n²) string concatenation (+=) with O(n) array push + join
for JS-side chunk buffering. Extracts script generation into testable
buildChunkScripts() and adds unit tests for chunking logic.

* perf: increase chunk size from 512KB to 2MB

Reduces IPC round-trips by 4x (e.g. 7 calls instead of 26 for 10MB).
Safe because chunks are trivial JS with pure Base64 string literals.

* fix: decode chunked messages as UTF-8 to prevent mojibake

atob() returns Latin-1, so multi-byte UTF-8 characters (em dashes,
accented letters, CJK, emoji) were mangled. Use TextDecoder to
properly decode UTF-8 bytes after base64 decoding.
2026-03-26 14:59:21 -07:00
Dallin Romney
afb6b2111c
fix: prevent responseListeners memory leak in CoreMessenger (#11901)
Response listeners were only removed when data contained `"done": true`,
but most message types (file events, autocomplete, nextEdit, etc.)
return responses without a `done` field. This caused every fire-and-forget
request to leak its callback lambda permanently in the map.

Over a long session with heavy autocomplete and file navigation, this
could accumulate hundreds of thousands of entries (40-100+ MB).

Fix: invert the removal logic — remove the listener by default, and
only keep it when `done == false` (i.e., a streaming response is still
in progress). This preserves existing streaming behavior while ensuring
all non-streaming responses are cleaned up immediately.
2026-03-26 14:59:09 -07:00
Dallin Romney
581980e31e
fix: resolve SideEffectNotAllowedException in intention previews (#11894)
* fix: use Dispatchers.Default to avoid SideEffectNotAllowedException in JetBrains intention previews

DocumentChangeTracker and ActiveHandlerManager used Dispatchers.Main which
schedules work via INVOKE_LATER. JetBrains forbids this during intention
preview computation (autocomplete, inspections), throwing
SideEffectNotAllowedException. Neither class requires EDT for its coroutine
work, so switching to Dispatchers.Default resolves the issue.

Fixes #9463, #8035

* fix: use limitedParallelism(1) to prevent race conditions

Dispatchers.Default allows concurrent execution on a thread pool,
which breaks thread-safety for shared mutable state that was previously
serialized on the Main/EDT dispatcher. Using limitedParallelism(1)
preserves single-threaded execution while still avoiding the
SideEffectNotAllowedException from Dispatchers.Main.
2026-03-26 14:37:07 -07:00
Dallin Romney
b48183c023
fix: sync message type pass-through lists between core and JetBrains (#11902)
fix: add missing pass-through message types for JetBrains

Three message types sent by the GUI were missing from JetBrains'
PASS_THROUGH_TO_CORE list, causing them to be misrouted to the IDE
protocol handler instead of core:

- history/loadRemote (loading remote sessions)
- controlPlane/getEnvironment
- controlPlane/getCreditStatus
2026-03-26 14:36:39 -07:00
Dallin Romney
204c9b60fe
fix: add guard for disposed JCEF browser in sendToWebview (#11897)
* fix: add guard for disposed JCEF browser in sendToWebview

Before calling executeJavaScript, check if the browser is already closed
to prevent NPE propagation from deeper in JCEF. Also broadens the catch
from IllegalStateException to Exception to handle NPE and other errors
that can occur when the browser is in a disposed state.

Fixes #8085, #9159

* fix: add log warning when sending to disposed browser

Log the message type before early-returning on a closed JCEF browser
to aid debugging silent message drops during project disposal.
2026-03-26 14:29:32 -07:00
Dallin Romney
5a8d10fff4
fix: resolve crashes in DiffStreamHandler — unsafe cast and negative line numbers (#11893)
* fix: resolve crashes in DiffStreamHandler — unsafe cast and negative line numbers

- Use safe cast (as?) for TextEditor in undoChanges() to prevent ClassCastException
- Add early return for empty documents and clamp line numbers to prevent IndexOutOfBoundsException in initUnfinishedRangeHighlights()
- Remove redundant .toList() call in rejectAll()

Fixes #4267

* refactor: inline lineNum variable in initUnfinishedRangeHighlights
2026-03-26 14:28:11 -07:00
Dallin Romney
ea44368968
fix: harden JetBrains remote config sync to prevent IDE freezes (#11891)
Remove Sentry error reporting from the sync catch block — the
service<ContinueSentryService>() call could itself throw from the
background thread, letting the original exception escape and silently
killing all future scheduled runs of the sync task.

Replace with IDEA Logger warnings so failures are visible in the IDE
log. Add explicit connect/read timeouts (5s) to prevent a hung server
from blocking the shared executor indefinitely. Early-return when the
remote config URL is not configured so no work is done at all.

Remove redundant addRemoteSyncJob() call from settings reset(), which
only restores UI fields and should not restart the sync.

Ref: https://github.com/continuedev/continue/discussions/8606#discussioncomment-15003299
2026-03-26 11:53:23 -07:00
Dallin Romney
f048649b17
chore: jetbrains 65, vs code 36 (#11892) 2026-03-26 11:51:25 -07:00
Ivan L
44ca86002b
Fix StringIndexOutOfBoundsException in readRangeInFile (#11881)
* Fix StringIndexOutOfBoundsException in readRangeInFile

* fix: clamp endLine relative to startLine to ensure invariant

Ensures endLine >= startLine after clamping, preventing a potential
IllegalArgumentException from subList if both values were clamped
independently to conflicting bounds.

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-26 10:46:33 -07:00
Dallin Romney
2f52b46ec2
chore: prerelease bumps jb 64, vs code 35 (#11834) 2026-03-25 15:28:52 -07:00
Dallin Romney
9abc9b5b46
jetbrains 63, vscode 34 (#11790)
chore: prerlease bumps
2026-03-24 20:06:00 -07:00
Peter Dave Hello
cbbe3ef11a
Update Node.js LTS to v20.20.1 (#11506)
Node.js v20 entered Maintenance LTS six months ago. Update the version
from v20.19.0 (released over a year ago) to v20.20.1, the latest LTS
release this month.

This ensures the project leverages recent Node.js improvements,
including security updates, and stays on a supported LTS track.
2026-03-24 11:36:07 -07:00
Dallin Romney
b9174c0ee8
jb 1.0.62, vscode 1.3.33 (#11396) 2026-03-13 11:52:20 -07:00
Pyroboomka
86b074e3e2
Fix displaying diff line when instant applying in jetbrains extensions (#10627) 2026-03-10 00:19:19 -07:00
Nate Sesti
1638a92d63
fix: handle spaces in filepaths for JetBrains autocomplete (#10633)
When VirtualFile.toUriOrNull() generates unencoded URIs with spaces,
URI() throws. Fall back to File(path).toURI() which properly encodes
the path.

Fixes #10613

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 00:00:21 -07:00
Vadim
997c4a2ebe
fix: update extensions readme docs urls (#10776)
* update extensions readme docs urls

* update url in jetbrains extension readme
2026-03-09 23:58:06 -07:00
Ty Dunn
4272df1e66 docs: remove tagline description from all READMEs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 18:44:34 -08:00
Ty Dunn
c00d58a8ab docs: update READMEs to reflect new product direction
Rewrite main, VS Code, and JetBrains READMEs to focus on
source-controlled AI checks enforceable in CI. Add community-maintained
notice to JetBrains plugin with CLI recommendation. Prefix IDE-specific
feature headings with platform names.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 18:06:41 -08:00
Dallin Romney
54e5d5cd1d
chore: prerelease bumps vscode 32 jetbrains 61 (#10563) 2026-02-16 12:16:10 -08:00
Dallin Romney
4f7a4c0634 chore: vscode 31 jetbrains 60 2026-02-03 21:13:11 -08:00
Nate
92c593d1bf Merge remote-tracking branch 'origin/main' into nate/simplify-docs 2026-01-30 18:29:04 -08:00
Nate
f9feab110c Replace community Discord links with GitHub Discussions
Discord links across docs, READMEs, GUI components, and issue templates
now point to https://github.com/continuedev/continue/discussions.
The Discord context provider (product feature) is left untouched.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 17:19:56 -08:00
Dallin Romney
03e5fc3b92 chore: hub.continue.dev -> continue.dev 2026-01-30 15:47:00 -08:00
Dallin Romney
5492a95ced chore: vscode 30, jetbrains 59 2026-01-23 12:24:16 -08:00
uinstinct
970552b44c provision to delete rule file 2026-01-16 15:51:42 +05:30
uinstinct
0318855b9b add provision to remove a file from ide 2026-01-16 15:42:30 +05:30
Dallin Romney
81d5c5ac97 chore: bump prerelease versions 2026-01-14 14:11:00 -08:00
Dallin Romney
5231a7e81d
Merge pull request #9085 from rossigee/fix/overzealous-security-pattern
fix: overzealous 'token' and 'credential' security regexps
2025-12-15 16:58:27 -08:00
BekahHW
13e9f2977a
Merge pull request #8962 from continuedev/add-integration-docs
Add PostHog, Atlassian, and Netlify integration documentation
2025-12-15 13:53:28 -05:00
continue[bot]
99c988a8a5 Apply same security pattern fix to IntelliJ implementation
Remove credentials.* and token.* patterns from IntelliJ security ignore
list to match the TypeScript core changes. This ensures consistent behavior
across both IDE extensions.

Co-authored-by: nate <nate@continue.dev>
2025-12-11 03:16:59 +07:00
BekahHW
87c12eb3ee Fix link to agents in the hub 2025-12-08 11:22:43 -05:00
김효연
5d1cd00103 fix(intellij): Prevent ConcurrentModificationException in keymap access 2025-12-08 15:39:24 +09:00
Dallin Romney
886c0a4741 merge main 2025-12-02 12:25:02 -08:00
Dallin Romney
84a58d776f chore: prerelease version bumps 2025-12-01 15:59:17 -08:00
Dallin Romney
44981f21d3 chore: jetbrains 56 2025-11-25 22:35:12 -08:00
Dallin Romney
ff335487aa merge: main 2025-11-25 20:39:59 -08:00
Dallin Romney
ec141f5445 Merge branch 'main' of https://github.com/continuedev/continue into fix-jetbrains-compiler-warnings 2025-11-21 17:50:27 -08:00
continue[bot]
5e9204c849
Fix IntelliJ remote config sync freeze and JSON parsing issues (#8801)
* Fix IntelliJ remote config sync issues

- Only schedule sync job when remote server URL is configured
- Catch all exceptions including JsonSyntaxException
- Fix logic error where configJs and configJson overwrite each other
- Properly clean up sync job when cancelled

Fixes #8769

Co-authored-by: dallin <dallin@continue.dev>

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>

* Fix config.js and config.json file path separation

Use separate file paths for JavaScript (config.js) and JSON (config.json)
configuration files to maintain proper separation of concerns.

Co-authored-by: dallin <dallin@continue.dev>

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>

---------

Co-authored-by: continue[bot] <continue[bot]@users.noreply.github.com>
Co-authored-by: Continue <noreply@continue.dev>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2025-11-21 16:46:48 -08:00
Dallin Romney
9a08e2b75f
Merge pull request #8798 from uinstinct/read-document-fallback
fallback to vsfutil.loadtext when readDocument is null
2025-11-21 14:37:42 -08:00
Qian
1fa18edbe9
feat: add JCEF reload action (#8711)
* fix bug: set the property JS_QUERY_POOL_SIZE to use JBCefJSQuery after the browser has been created

* feat: add JCEF reload action

* fix: update reload action

* Revert "fix bug: set the property JS_QUERY_POOL_SIZE to use JBCefJSQuery after the browser has been created"

This reverts commit e998ae83b261a171b03e0473cf2b8aaeac481ed7.
2025-11-21 13:47:28 -08:00
uinstinct
82050fc868 Merge branch 'main' into read-document-fallback 2025-11-20 11:16:33 +05:30
Dallin Romney
90d54f3f66
chore: jetgrains 1.0.55 (#8806)
fix: gradle properties
2025-11-19 15:27:43 -08:00
Dallin Romney
05cce29d20
fix: remove dead isTelemetryEnabled code for jetbrains (#8799) 2025-11-19 15:27:29 -08:00
uinstinct
1edaf25273 fallback to vsfutil.loadtext when readDocument is null 2025-11-19 20:24:38 +05:30
continue[bot]
b97108d9cf Fix TerminalToolWindowManager.createLocalShellWidget() parameter count
Use correct 3-parameter signature for createLocalShellWidget()

Co-authored-by: dallin <dallin@continue.dev>
2025-11-18 19:12:49 +00:00
continue[bot]
c3804935b2 Fix JetBrains Kotlin compiler warnings
- Replace deprecated StreamUtil.readText() with bufferedReader().use { it.readText() }
- Replace deprecated String.toLowerCase() with lowercase()
- Replace deprecated JBCefBrowser.executeJavaScriptAsync() with cefBrowser.executeJavaScript()
- Replace deprecated TerminalView with TerminalToolWindowManager
- Replace deprecated PluginManager.getPlugin() with PluginManagerCore.getPlugin()
- Replace deprecated Char.toInt() with Char.code
- Replace deprecated Disposer.isDisposed() with editor.isDisposed check
- Add @Suppress("UNCHECKED_CAST") annotations for safe null-check casts in NextEditService and CoreMessenger

Co-authored-by: dallin <dallin@continue.dev>
2025-11-18 18:59:39 +00:00
Aditya Mitra
d8cc0b69d2
feat: sonnet lazy apply prompt should not change comments (#8665)
* feat: sonnet lazy apply prompt should not change comments

* change for ApplyManager.getApplyPrompt

* change for ApplyToFileHandler.buildApplyPrompt

* remove unused edit prompts in edit templates

* add do not change comments to edit templates

* tweak prompt to remove explicitly
2025-11-17 11:05:22 -08:00
houssemzaier
dc0e86e4a1 perf(intellij): implement GsonService singleton to reduce memory allocation
Replace 31+ scattered Gson() instantiations with a centralized application-level
GsonService singleton. This eliminates redundant object creation, particularly in
hot message handling paths (28 instances in IdeProtocolClient alone).

Changes:
- Created GsonService as application-scoped singleton (@Service annotation)
- Updated IdeProtocolClient to use GsonService via default constructor parameter
- Updated CoreMessenger to use GsonService via default constructor parameter
- Updated ContinueBrowser to use GsonService via default constructor parameter

Performance impact:
- Eliminates 31+ Gson object allocations per session
- Reduces reflection overhead from repeated Gson initialization
- Improves message handling performance in IDE-Core communication

Addresses: #8452
2025-11-04 09:18:36 +01:00
Ty Dunn
b2e8fa32be
docs: Update VS Code README for agents (#8574)
Update VS Code README for agents

Co-authored-by: Nate Sesti <33237525+sestinj@users.noreply.github.com>
2025-11-03 18:33:51 -08:00