continue-custom/extensions/intellij
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
..
.run test: use intellij-ide-starter for e2e tests (#7690) 2025-09-19 12:54:25 -07:00
gradle/wrapper fix: Add file tests + migrate to IntelliJ Platform Gradle Plugin v2 2025-07-28 20:39:44 +02:00
src fix(intellij): handle square brackets in file paths for autocomplete (#11474) 2026-03-26 15:12:38 -07:00
testdata/rename Squash commits for JB integration testing 2024-12-17 09:12:33 -08:00
.gitignore test: use intellij-ide-starter for e2e tests (#7690) 2025-09-19 12:54:25 -07:00
build.gradle.kts test: use intellij-ide-starter for e2e tests (#7690) 2025-09-19 12:54:25 -07:00
CONTRIBUTING.md Update Node.js LTS to v20.20.1 (#11506) 2026-03-24 11:36:07 -07:00
gradle.properties chore: jetbrains 65, vs code 36 (#11892) 2026-03-26 11:51:25 -07:00
gradlew fix: Add file tests + migrate to IntelliJ Platform Gradle Plugin v2 2025-07-28 20:39:44 +02:00
gradlew.bat ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00
package-lock.json chore: update JB docs and devex 2024-10-16 16:08:14 -07:00
qodana.yml ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00
README.md fix: update extensions readme docs urls (#10776) 2026-03-09 23:58:06 -07:00
rules.md feat: rebrand assistants as agents (#7227) 2025-08-18 16:25:30 -07:00
settings.gradle.kts ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00

Continue

Source-controlled AI checks, enforceable in CI

Note: The JetBrains plugin is now community-maintained. We strongly recommend using the Continue CLI instead. It works in any environment, it's where our active development is happening, and it's a better experience than we can reliably provide through the plugin right now. Run cn in your terminal alongside your IDE and you get the same agent capabilities, the same model access, and the same configuration, without depending on a plugin framework we can't give the attention it deserves.

JetBrains Agent

Agent to work on development tasks together with AI

JetBrains Chat

Chat to ask general questions and clarify code sections

JetBrains Edit

Edit to modify a code section without leaving your current file

JetBrains Autocomplete

Autocomplete to receive inline code suggestions as you type

License

Apache 2.0 © 2023-2025 Continue Dev, Inc.