Commit graph

384 commits

Author SHA1 Message Date
ChuangLee
63f139dd74
feat: cancel completions early on newline (#461)
* Stream completion results and cancel early on newline

* Rename 'suggestion, needCancel' to 'message, cancel'

* Replace cancelCurrentCall() with eventSource.cancel() for simplicity

* remove isStreaming variable and onComplete() method

* fix: do not trigger completed callbacks during streaming

---------

Co-authored-by: lichuang <lichuanglai8@163.com>
Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2024-04-17 14:34:37 +03:00
Simon Svensson
b2d9442eba
fix: custom OpenAI service settings sync (#472) 2024-04-17 12:46:21 +03:00
Simon Svensson
7d075f6905
Persist credentials back into the PasswordSafe (#465) 2024-04-17 12:04:40 +03:00
René
2221d72430
feat: add support for placeholders in prompts (#458)
* fixes #432 adds support for Placeholders in Prompts

- activate gradle plugin Git4Idea
- adds PlaceholderUtil
- adds DATE_ISO_8601 PlaceholderReplacer
- adds BRANCH_NAME PlaceholderReplacer

* convert to kotlin, improve ui and add int. test

* fix: do not reuse projects from previous test runs

---------

Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2024-04-17 11:41:21 +03:00
Carl-Robert Linnupuu
f6a5113216 2.6.2 2024-04-15 16:03:37 +03:00
Carl-Robert Linnupuu
077059fd23 chore(deps): bump llm-client 2024-04-15 15:51:12 +03:00
Rene Leonhardt
5f16213bd1
fix: Use System Prompt from user configuration (#454) (#455) 2024-04-15 11:42:42 +03:00
Carl-Robert Linnupuu
0dfaa128b7 2.6.1 2024-04-12 18:04:51 +03:00
Carl-Robert Linnupuu
d4690e9796 fix: remove exclusion of okhttp dependency from gradle-intellij-plugin (required for publishPlugin task) 2024-04-12 18:01:21 +03:00
Carl-Robert Linnupuu
2911bc71ce docs: update changelog 2024-04-12 17:17:29 +03:00
Carl-Robert Linnupuu
18a4e80951 chore(deps): bump llm-client 2024-04-12 16:21:54 +03:00
Carl-Robert Linnupuu
a9131430af fix: temporarily disable tree-sitter logic (fixes #452) 2024-04-12 01:57:04 +03:00
Rene Leonhardt
6de7696877
fix: Use correct setting for updates and screenshot checkboxes (#446) (#451) 2024-04-11 17:54:28 +03:00
Rene Leonhardt
0cdd5096ba
chore: Convert Java tests to Kotlin (#447) 2024-04-11 12:03:31 +03:00
Rene Leonhardt
6fb0b8d30c
fix: Catch AssertionError in countTokens() (#445) 2024-04-10 14:56:35 +03:00
Rene Leonhardt
7d89650062
chore: Improve code (#442)
* chore: Improve code

* Convert classes to records
2024-04-10 14:47:38 +03:00
Rene Leonhardt
c29d3928db
Update to latest 233 platform 2023.3.6 (#439)
* Update to latest 233 platform 2023.3.6

* Use first non-blank choice from response
2024-04-08 16:46:13 +03:00
Carl-Robert Linnupuu
a50e068813 fix: set until build version 2024-04-08 16:38:10 +03:00
Carl-Robert Linnupuu
3ef9aba488 docs: extract getting started guide into its own doc 2024-04-07 17:38:00 +03:00
Carl-Robert Linnupuu
3c2d185b8a 2.6.0 2024-04-07 17:28:39 +03:00
Rene Leonhardt
00c9813eeb
chore(deps): Update checkstyle to 10.15.0 (#438)
* Cleaned versions catalog and dependencies
* Fixed checkstyle finding
2024-04-07 16:53:59 +03:00
Carl-Robert Linnupuu
4688a1c8d0 refactor: remove 'Standard' prefix from toolwindow component class names, and other minor cleanup 2024-04-07 16:45:04 +03:00
Rene Leonhardt
7f505e2c30
chore(deps): Update and centralize dependencies (#436)
* chore(deps): Update and centralize dependencies

* Update treesitter to 0.22.2
* Update kotlin to 1.9.23
* Update jackson to 2.17.0
* Update gradle-intellij-plugin to 1.17.3
* Update gradle to 8.7
* Use BOMs where possible
* Centralize dependencies in version catalog
* Allow Dependabot to update other modules (add treesitter and buildSrc/src/main/kotlin, remove core)

* fix: preload credentials only once for all headers
2024-04-06 13:41:02 +03:00
Carl-Robert Linnupuu
52ceaa6a26 docs: update changelog 2024-04-06 02:25:05 +03:00
Carl-Robert Linnupuu
efe0f0b74a fix: use the proper callback for text area autofocus 2024-04-06 02:24:32 +03:00
Carl-Robert Linnupuu
71aee5f6aa fix: prevent sending completion to a closed channel 2024-04-06 02:02:12 +03:00
Carl-Robert Linnupuu
30025d2378 feat: request focus for text area on toolwindow state changes (closes #423) 2024-04-06 00:49:24 +03:00
Carl-Robert Linnupuu
2048f87fa8 docs: update changelog 2024-04-05 19:05:14 +03:00
Artem Borzov
9ed95f4e4e
fix: correctly handle changed files to generate a commit message #338 (#433)
* fix: properly handle changed files to generate commit message (resolve #338)

* fix: re-include staged diff in the final prompt

---------

Co-authored-by: borzov <borzov@skbkontur.ru>
Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2024-04-05 19:02:18 +03:00
Carl-Robert Linnupuu
17cfbf43de docs: update readme 2024-04-04 16:40:34 +03:00
Carl-Robert Linnupuu
314fbfbafc docs: update plugin description 2024-04-04 16:16:59 +03:00
Carl-Robert Linnupuu
3246102f06 docs: update changelog 2024-04-04 16:15:55 +03:00
Carl-Robert Linnupuu
fef8f6f903 docs: update changelog 2024-04-03 02:07:54 +03:00
Carl-Robert Linnupuu
f0172722c7 feat: add support for configuring code completions via settings 2024-04-03 02:02:15 +03:00
Carl-Robert Linnupuu
2b98b65210 docs: update changelog 2024-04-02 20:59:22 +03:00
Carl-Robert Linnupuu
79ef7550fe fix: send button enabled state 2024-04-02 20:54:59 +03:00
Carl-Robert Linnupuu
35ee02ba79 feat: display total tokens for all providers (closes #397) 2024-04-02 20:43:26 +03:00
Carl-Robert
8cf5720db9
feat: OpenAI and Claude vision support (#430)
* feat: add OpenAI and Claude vision support

* refactor: replace awaitility with PlatformTestUtil.waitWithEventsDispatching

* feat: display error when image not found

* chore: bump llm-client

* feat: configurable file watcher and minor code cleanup

* fix: ensure image notifications are triggered only for image file types

* docs: update changelog

* fix: user textarea icon button behaviour

* refactor: minor cleanup
2024-04-02 02:50:41 +03:00
Carl-Robert Linnupuu
99b5f94dad fix: enable code completion for DocumentEvent only 2024-03-28 14:55:52 +02:00
Carl-Robert Linnupuu
2ad1e4e917 refactor: code completion request creation to use CodeCompletionRequestFactory for better abstraction 2024-03-28 11:29:45 +02:00
Carl-Robert Linnupuu
6255bf9eb6 fix: preload credentials to avoid long running tasks on EDT 2024-03-28 00:09:49 +02:00
Carl-Robert Linnupuu
b72ddfccd6 fix: migrate from StartupActivity to ProjectActivity 2024-03-27 21:48:48 +02:00
Carl-Robert Linnupuu
9d28e3e009 refactor: code cleanup 2024-03-27 18:27:37 +02:00
Carl-Robert
657868453f
feat: migrate to a new inline completion api (#425)
* fix: plugin since/until build versions

* add necessary kotlin deps

* migrate to new inline completions api

* remove previous implementation

* replace build and platform versions

* bump gradle-intellij-plugin version
2024-03-27 14:34:09 +02:00
Chris Campbell
8ccf331988
fix: Allow single Java files to be added to context (#420) 2024-03-25 11:50:49 +02:00
Carl-Robert Linnupuu
c0c02d9afb refactor: remove custom Azure service configuration 2024-03-14 14:58:58 +02:00
Carl-Robert Linnupuu
42105bf308 refactor: clean up old code 2024-03-14 14:34:29 +02:00
Carl-Robert Linnupuu
33c597d8e5 2.5.1 2024-03-14 14:09:59 +02:00
Carl-Robert Linnupuu
8151a69c7e fix: DeleteConversationAction update thread 2024-03-14 14:06:56 +02:00
Carl-Robert Linnupuu
d4964d139e docs: update changelog 2024-03-14 13:39:22 +02:00