Alex Plate
664c433ee9
Add test for Visual mode inclusive caret positioning in templates
...
Adds a test to verify that when using 'idearefactormode=visual' with
inclusive selection (default), the caret is correctly positioned at the
inclusive end of the selection (on the last character) rather than the
exclusive end (after the last character).
This test covers the caret adjustment logic in IdeaSpecifics.kt that
moves the caret from IntelliJ's exclusive end position to Vim's
inclusive end position for Visual mode when 'selection' doesn't contain
"exclusive".
2025-10-24 14:32:03 +03:00
Matt Ellis
b4915d08cd
Remove redundant code
...
The template listener is called immediately for the first variable, which will do the same thing.
2025-10-24 14:29:58 +03:00
Matt Ellis
6b7b18d947
Switch to Normal when accepting an inline rename
...
The 'idearefactormode' default of Select would leave an inline rename in Insert mode, and hitting Escape to return to Normal frequently cancelled the rename.
Also fixes various edge cases when moving between template variables. Often, this works due to a change in selection, but if there's an empty template variable and no current selection, there's no change in selection, and the mode isn't updated.
2025-10-24 14:29:58 +03:00
dependabot[bot]
ac4a55d245
Bump org.junit.vintage:junit-vintage-engine from 5.13.4 to 6.0.0
...
Bumps [org.junit.vintage:junit-vintage-engine](https://github.com/junit-team/junit-framework ) from 5.13.4 to 6.0.0.
- [Release notes](https://github.com/junit-team/junit-framework/releases )
- [Commits](https://github.com/junit-team/junit-framework/compare/r5.13.4...r6.0.0 )
---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
dependency-version: 6.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-01 18:22:54 +03:00
Matt Ellis
a9e503d13f
Extract error messages from code
2025-09-16 16:33:40 +03:00
Matt Ellis
5297193649
Assert full error message, not partial
...
There's no good reason to only check a partial match. Make sure the entire string is correct.
2025-09-16 16:33:40 +03:00
NaMinhyeok
ca676ca973
Fix Gradle build deprecation warnings and improve type safety
...
- Replace deprecated java.net.URL and HttpURLConnection with Ktor HttpClient in slackNotification task
- Fix deprecated intellijPlatform API calls:
- create(ideaType, ideaVersion, useInstaller) → create(ideaType, ideaVersion) { this.useInstaller = useInstaller }
- verifyPlugin → pluginVerification
- Add explicit Task type parameters to all tasks.register() calls to resolve Kotlin type inference warnings
Signed-off-by: NaMinhyeok <nmh9097@gmail.com >
2025-08-19 16:59:06 +03:00
dependabot[bot]
f474d44d27
Bump org.junit.vintage:junit-vintage-engine from 5.13.2 to 5.13.4
...
Bumps [org.junit.vintage:junit-vintage-engine](https://github.com/junit-team/junit-framework ) from 5.13.2 to 5.13.4.
- [Release notes](https://github.com/junit-team/junit-framework/releases )
- [Commits](https://github.com/junit-team/junit-framework/compare/r5.13.2...r5.13.4 )
---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
dependency-version: 5.13.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-23 18:32:32 +03:00
Xinhe Wang
2f7f0dcacb
Fix(VIM-3044): correct the behavior of I in (linewise) Visual mode
...
For visual selections spanning multiple lines, keep caret position
if it's on the first line. Otherwise move the caret to the start of
the first selected line.
2025-07-07 10:55:30 +03:00
dependabot[bot]
8f5a44bf44
Bump org.junit.vintage:junit-vintage-engine from 5.13.1 to 5.13.2
...
Bumps [org.junit.vintage:junit-vintage-engine](https://github.com/junit-team/junit-framework ) from 5.13.1 to 5.13.2.
- [Release notes](https://github.com/junit-team/junit-framework/releases )
- [Commits](https://github.com/junit-team/junit-framework/compare/r5.13.1...r5.13.2 )
---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
dependency-version: 5.13.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-02 19:19:55 +03:00
dependabot[bot]
3149de7b73
Bump org.junit.vintage:junit-vintage-engine from 5.13.0 to 5.13.1
...
Bumps [org.junit.vintage:junit-vintage-engine](https://github.com/junit-team/junit5 ) from 5.13.0 to 5.13.1.
- [Release notes](https://github.com/junit-team/junit5/releases )
- [Commits](https://github.com/junit-team/junit5/compare/r5.13.0...r5.13.1 )
---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
dependency-version: 5.13.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-11 18:30:27 +03:00
dependabot[bot]
725d60a56e
Bump org.junit.vintage:junit-vintage-engine from 5.12.2 to 5.13.0
...
Bumps [org.junit.vintage:junit-vintage-engine](https://github.com/junit-team/junit5 ) from 5.12.2 to 5.13.0.
- [Release notes](https://github.com/junit-team/junit5/releases )
- [Commits](https://github.com/junit-team/junit5/compare/r5.12.2...r5.13.0 )
---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
dependency-version: 5.13.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-04 19:06:01 +03:00
Alex Plate
e41831798e
Add a big number of undo tests for ex commands
...
This is a part of work for VIM-3935. Since we'll have to change the `CommandProcessor` execution, this may affect the "undo" command behavior. To ensure the stability, we add undo tests before making a refactoring.
2025-05-28 11:48:38 +03:00
Alex Plate
233bad0070
Turn off TeamCity emulation when running tests locally
...
IJ platform runs additional project leak checks when it detects teamcity run. It was quite complicated to understand why tests were failing on TC, but not locally, so I decided to enable TeamCity emulation to have these checks locally.
However, it turned out that in addition to that, an IJ platform also collects CPU statistics on TeamCity, which may take around a minute. This dramatically affects the performance of local execution. So, this property is turned off.
2025-05-28 09:38:54 +03:00
Alex Plate
66ce949cc5
Do not use installer for Rider tests
2025-05-09 13:00:50 +02:00
Alex Plate
2f33d41713
Update the minimal version of IJ to 251
2025-04-22 08:56:07 +03:00
dependabot[bot]
cf554e9ae2
Bump org.junit.vintage:junit-vintage-engine from 5.12.1 to 5.12.2
...
Bumps [org.junit.vintage:junit-vintage-engine](https://github.com/junit-team/junit5 ) from 5.12.1 to 5.12.2.
- [Release notes](https://github.com/junit-team/junit5/releases )
- [Commits](https://github.com/junit-team/junit5/compare/r5.12.1...r5.12.2 )
---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
dependency-version: 5.12.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-16 19:10:22 +03:00
Alex Plate
3ddc75f5f0
Remove the call for the instrumentationTools as it's deprecated
2025-04-04 18:39:28 +03:00
CCCC-L
f079edfb25
Modify CommentaryTextObject test case
2025-03-28 18:45:42 +02:00
dependabot[bot]
4b3bba6a98
Bump org.junit.vintage:junit-vintage-engine from 5.12.0 to 5.12.1
...
Bumps [org.junit.vintage:junit-vintage-engine](https://github.com/junit-team/junit5 ) from 5.12.0 to 5.12.1.
- [Release notes](https://github.com/junit-team/junit5/releases )
- [Commits](https://github.com/junit-team/junit5/compare/r5.12.0...r5.12.1 )
---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-19 18:34:51 +03:00
dependabot[bot]
5b5ff852f1
Bump org.junit.vintage:junit-vintage-engine from 5.10.5 to 5.12.0
...
Bumps [org.junit.vintage:junit-vintage-engine](https://github.com/junit-team/junit5 ) from 5.10.5 to 5.12.0.
- [Release notes](https://github.com/junit-team/junit5/releases )
- [Commits](https://github.com/junit-team/junit5/compare/r5.10.5...r5.12.0 )
---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-02-26 18:15:11 +02:00
Alex Plate
3866565e51
Remove IdeaVimTestCase and replace it with VimTestCase
2025-02-21 13:03:23 +02:00
Alex Plate
be86dc3c78
Rename VimNoWriteActionTestCase to IdeaVimTestCase
2025-02-20 19:15:43 +02:00
Alex Plate
e18035b729
Migrate java tests to VimNoWriteActionTestCase
2025-02-20 18:57:52 +02:00
Alex Plate
96a1456dcd
Remove the hack for yaml plugin
2025-02-19 16:48:12 +02:00
Alex Plate
693bb50d5e
Do add a yaml module only for the latest snapshot
2025-02-14 17:58:01 +02:00
Alex Plate
0cef0d3d9a
Fix EAP tests for IdeaVim
2025-02-11 20:52:21 +02:00
Alex Plate
ffee3ccbeb
Remove the llmInstaller dependency, which was a workaround for LLM-13649
2025-02-03 11:12:02 +02:00
Osvaldo Cordova Aburto
7b16deb3e3
fix: calculation to find the closest delimited range
2025-01-30 13:40:26 +02:00
Osvaldo Cordova Aburto
01d776957a
fix: distanceTo to works with nested quotes and brackets
2025-01-30 13:40:26 +02:00
Osvaldo Cordova Aburto
31a6d8174a
feat: add mini-ai extension
2025-01-27 23:19:24 +02:00
Alex Plate
8ba02a77f1
Enable dependency on llmInstaller to fix the tests for the latest EAP.
...
LLM-13649
2025-01-10 13:28:49 +03:00
Alex Plate
f5e7459b37
[IJPL-165238] It seems the issue was fixed
2024-12-03 15:18:20 +02:00
Alex Plate
df8144fc00
Temporally bring back first and last checks
2024-12-03 15:03:09 +02:00
filipp
94d7902ef2
Remove more deprecated methods
2024-11-22 17:15:07 +02:00
dependabot[bot]
2fd488531b
Bump org.junit.vintage:junit-vintage-engine from 5.10.3 to 5.10.5
...
Bumps [org.junit.vintage:junit-vintage-engine](https://github.com/junit-team/junit5 ) from 5.10.3 to 5.10.5.
- [Release notes](https://github.com/junit-team/junit5/releases )
- [Commits](https://github.com/junit-team/junit5/compare/r5.10.3...r5.10.5 )
---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-30 17:55:56 +02:00
Alex Plate
6b751fae6e
Disable some IJ additional checks
2024-10-25 17:29:07 +03:00
Alex Plate
314304246a
Fix the LATEST-EAP-SNAPSHOT tests
2024-09-05 17:10:14 +03:00
The1xDeveloper
3ba14d05b4
VIM-566: Add za motion support for toggling folds
2024-08-16 12:28:18 +03:00
Alex Plate
ff44596c1a
Migrate to gradle plugin 2.0.0-rc1
2024-07-26 19:00:31 +03:00
Filipp Vakhitov
8369391902
Fix(VIM-3530): "Yank inner block"/"Change inner block" uses wrong block
2024-07-16 18:47:58 +03:00
Matt Ellis
4913b13a2d
Migrate to IntelliJ Platform Gradle Plugin 2.0
...
Also updates the GitHub workflows to use the new name for the testIdeUi task, and the TeamCity files to use the new name for the VerifyPlugin task
2024-06-17 11:03:17 +01:00
Matt Ellis
a2bfe950fa
Fix move command moving to current line
...
Removes a workaround that would break moving a range to the current line because it would always move the caret to the start of the range. Now positions the caret to the start of the selection if there is one. This also means we can remove the SAVE_VISUAL flag from JoinLinesCommand
Fixes VIM-2936
2024-06-03 11:54:48 +03:00
Matt Ellis
9ca9530061
Add tests and fixes for shift commands
...
Shift left and right now work with counts, validate the counts and move the caret to the correct end position
2024-06-03 11:54:48 +03:00
Matt Ellis
f382544101
Fix clearing highlighted yank in modal dialogs
...
Also fixes a memory leak registering a disposable for each yank, allows config variables to be numbers rather than strings and removes highlights when IdeaVim is disabled
Fixes VIM-2236
2024-05-24 18:05:51 +03:00
filipp
3f65d1d99a
Revert "Revert changes to SearchGroup"
...
This reverts commit 00ccddf8cf .
2024-03-29 14:52:52 +02:00
Alex Plate
52372ae3d3
Disable plugin verifier for tests
2024-03-12 09:34:55 +02:00
filipp
00ccddf8cf
Revert changes to SearchGroup
...
Wrong branch. The changes should be merged to master only after review in the Fleet branch
2024-03-03 22:16:19 +02:00
filipp
0914cda7e5
Better matching for a sequence of single-line comments
2024-03-03 22:05:28 +02:00
filipp
5959e9aaa1
Fix(VIM-1399): Uncommented brackets are matched to commented ones in VIM mode
2024-03-03 22:05:28 +02:00