continue-custom/core
continue[bot] d70bdbbf28
Fix readFileRange Kotlin Int overflow in IntelliJ plugin (#8976)
* Fix readFileRange Kotlin Int overflow in IntelliJ plugin

Replace Number.MAX_SAFE_INTEGER with Int.MAX_VALUE (2147483647) to prevent
JSON deserialization errors in IntelliJ plugins.

The issue occurred because JavaScript's Number.MAX_SAFE_INTEGER (2^53 - 1)
exceeds Kotlin's Int maximum value (2^31 - 1), causing the following error:
'java.lang.NumberFormatException: Expected an int but was 9007199254740991'

This change ensures compatibility with Kotlin's Int type while still reading
to the end of each line as intended.

Fixes #8517

Co-authored-by: dallin <dallin@continue.dev>
Generated with [Continue](https://continue.dev)

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

* Trigger CI re-run

The previous CI failure was a flaky test in the CLI extension, unrelated to our changes.

Co-authored-by: dallin <dallin@continue.dev>
Generated with [Continue](https://continue.dev)

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

* Extract magic number into MAX_CHAR_POSITION constant

Improve code maintainability by defining the Kotlin Int.MAX_VALUE as a
named constant with clear documentation.

Co-authored-by: dallin <dallin@continue.dev>
Generated with [Continue](https://continue.dev)

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

* Trigger CI re-run for flaky tests

Flaky UI tests failing intermittently on macOS (Node 18, 20) but passing
on all other platforms. Tests are unrelated to readFileRange changes.

Co-authored-by: dallin <dallin@continue.dev>
Generated with [Continue](https://continue.dev)

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

* Fix flaky CLI UI tests on macOS

Increase timeouts for UI rendering tests on macOS to prevent race conditions.
The tests were failing intermittently on macOS with Node 18/20 due to
insufficient wait times for UI stabilization.

Changes:
- Double timeouts on macOS in TUIChat.fileSearch.test.tsx
- Add extra 100ms wait on macOS in TUIChat.slashCommands.test.tsx
- Tests now pass consistently across all platforms

Co-authored-by: dallin <dallin@continue.dev>
Generated with [Continue](https://continue.dev)

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

* fix: revert test changes

---------

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-12-05 12:13:39 -08:00
..
.vscode
__mocks__/@continuedev/fetch llm pre-fetch tests: nested dependency mocks for continue fetch 2025-06-06 17:39:28 -07:00
autocomplete Merge pull request #8367 from Ayyanaruto/f/optimize-autocompletelru-cache 2025-11-18 18:26:45 -08:00
codeRenderer feat: next edit char-level diff (#7776) 2025-09-19 00:25:33 -07:00
commands chore: mcp 1.24.0 (#8974) 2025-12-04 12:58:28 -08:00
config chore: sonnet 4.5 preference 2025-12-02 12:35:27 -08:00
context chore: mcp 1.24.0 (#8974) 2025-12-04 12:58:28 -08:00
continueServer remove legacy config.js 2025-01-24 20:45:07 -08:00
control-plane Make account level MCPs generally available (#8493) 2025-10-31 11:52:08 -07:00
data fix types 2025-08-13 22:12:33 -07:00
deploy clean up URLs 2024-10-15 12:00:05 -07:00
diff refactor: remove unused code 2025-07-28 17:10:45 -07:00
edit fix tests 2025-12-04 18:36:15 +05:30
indexing Update DocsCrawler.test.ts 2025-10-20 10:07:16 -07:00
llm feat: use google/genai sdk for streaming gemini & vertex responses (#8907) 2025-12-04 13:03:57 -08:00
nextEdit fix: use system prompts for default endpoint type instances in next edit (#8660) 2025-11-17 11:00:59 -08:00
promptFiles fix: show md rules and prompts in respective sections (#8178) 2025-10-27 15:25:03 -07:00
protocol feat: allow renaming rule before creation 2025-11-19 16:34:09 +05:30
tag-qry 🚧 WIP on indexing for code context provider 2024-03-03 20:22:08 -05:00
test Fix: Refactor dependency injection for settings and clients 2025-09-03 09:15:47 -04:00
tools Fix readFileRange Kotlin Int overflow in IntelliJ plugin (#8976) 2025-12-05 12:13:39 -08:00
util Merge pull request #8830 from uinstinct/ripgrep-regex 2025-11-27 01:43:17 -08:00
utils prettier and code cleanup 2025-07-13 14:47:54 -07:00
vendor fix: formatting 2025-06-02 13:51:36 -07:00
.eslintrc.json chore: ignore max-lines-per-function in tests (#6825) 2025-07-28 09:04:13 -07:00
.gitignore feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
.npmignore 🔥 add tests to .npmignore 2024-03-19 12:54:17 -07:00
core.ts feat: allow renaming rule before creation 2025-11-19 16:34:09 +05:30
index.d.ts persist session-specific mode and chat model selection across tab switches and session loads 2025-11-09 12:23:18 +01:00
jest.config.js Reapply "feat: enhance oneper utility and refactor build system for commit SHA versioning" (#6811) 2025-07-28 14:15:49 -07:00
package-lock.json Merge pull request #9008 from continuedev/pe/onboarding 2025-12-04 14:07:35 -08:00
package.json chore: mcp 1.24.0 (#8974) 2025-12-04 12:58:28 -08:00
rules.md new rules 2025-06-20 16:06:03 -07:00
tsconfig.json feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
tsconfig.npm.json ⏩ Preview to main (#1299) 2024-05-16 22:15:44 -07:00
vitest.config.ts test only .vitest.ts files 2025-06-17 10:28:02 +05:30