mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-05-10 03:34:06 +02:00
Add task to run IDE in split mode
This commit is contained in:
parent
4913b13a2d
commit
0d4ba06e57
@ -0,0 +1,25 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Start IJ with IdeaVim (Split Mode)" type="GradleRunConfiguration" factoryName="Gradle">
|
||||
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea.log" />
|
||||
<ExternalSystemSettings>
|
||||
<option name="executionName" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="externalSystemIdString" value="GRADLE" />
|
||||
<option name="scriptParameters" value="" />
|
||||
<option name="taskDescriptions">
|
||||
<list />
|
||||
</option>
|
||||
<option name="taskNames">
|
||||
<list>
|
||||
<option value="runIdeSplitMode" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="vmOptions" value="" />
|
||||
</ExternalSystemSettings>
|
||||
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
|
||||
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
||||
<DebugAllEnabled>false</DebugAllEnabled>
|
||||
<RunAsTest>false</RunAsTest>
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
@ -33,6 +33,8 @@ import org.eclipse.jgit.lib.RepositoryBuilder
|
||||
import org.intellij.markdown.ast.getTextInNode
|
||||
import org.jetbrains.changelog.Changelog
|
||||
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
|
||||
import org.jetbrains.intellij.platform.gradle.tasks.CustomRunIdeTask
|
||||
import org.jetbrains.intellij.platform.gradle.tasks.aware.SplitModeAware
|
||||
import org.kohsuke.github.GHUser
|
||||
import java.net.HttpURLConnection
|
||||
import java.net.URL
|
||||
@ -84,6 +86,7 @@ val ideaVersion: String by project
|
||||
val ideaType: String by project
|
||||
val instrumentPluginCode: String by project
|
||||
val remoteRobotVersion: String by project
|
||||
val splitModeVersion: String by project
|
||||
|
||||
val publishChannels: String by project
|
||||
val publishToken: String by project
|
||||
@ -215,6 +218,15 @@ tasks {
|
||||
// localPath = file("/Users/{user}/Applications/WebStorm.app")
|
||||
// }
|
||||
|
||||
val runIdeSplitMode by registering(CustomRunIdeTask::class) {
|
||||
splitMode = true
|
||||
splitModeTarget = SplitModeAware.SplitModeTarget.FRONTEND
|
||||
|
||||
// Frontend split mode support requires 242+
|
||||
// TODO: Remove this once IdeaVim targets 242, as the task will naturally use the target version to run
|
||||
version.set(splitModeVersion)
|
||||
}
|
||||
|
||||
// Start the default IDE with both IdeaVim and the robot server plugin installed, ready to run a UI test task. The
|
||||
// robot server plugin is automatically added as a dependency to this task, and Gradle will take care of downloading.
|
||||
// Note that the CustomTestIdeUiTask can be used to run tests against a different IDE
|
||||
|
@ -28,6 +28,12 @@ javaVersion=17
|
||||
remoteRobotVersion=0.11.22
|
||||
antlrVersion=4.10.1
|
||||
|
||||
# [VERSION UPDATE] 2024.2 - remove when IdeaVim targets 2024.2
|
||||
# Running IdeaVim in split mode requires 242. Update this version once 242 has been released, and remove it completely
|
||||
# when IdeaVim targets 242, at which point runIdeSplitMode will run correctly with the target version.
|
||||
# See also runIdeSplitMode
|
||||
splitModeVersion=242-EAP-SNAPSHOT
|
||||
|
||||
|
||||
# Please don't forget to update kotlin version in buildscript section
|
||||
# Also update kotlinxSerializationVersion version
|
||||
|
Loading…
Reference in New Issue
Block a user