Skip to content

Commit 226be38

Browse files
committed
⬆️ Ajout de dépendances pour Git4Idea et modules VCS, désactivation de l'instrumentation du code
1 parent c59cf37 commit 226be38

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ dependencies {
5454

5555
// Configure IntelliJ Platform Gradle Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html
5656
intellijPlatform {
57+
instrumentCode = false
58+
5759
pluginConfiguration {
5860
name = providers.gradleProperty("pluginName")
5961
version = providers.gradleProperty("pluginVersion")

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ platformVersion = 2024.2.5
2020
# Note: Bundled plugins are now defined separately from plugins of other sources (like JetBrains Marketplace).
2121
# Example: platformBundledPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
2222
platformPlugins =
23-
platformBundledPlugins =
23+
platformBundledPlugins = Git4Idea
2424

2525
# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
2626
javaVersion = 21

src/main/kotlin/com/github/patou/gitmoji/GitCommitAction.kt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import com.intellij.ide.util.PropertiesComponent
55
import com.intellij.openapi.actionSystem.ActionUpdateThread
66
import com.intellij.openapi.actionSystem.AnAction
77
import com.intellij.openapi.actionSystem.AnActionEvent
8+
import com.intellij.openapi.actionSystem.PlatformCoreDataKeys
89
import com.intellij.openapi.actionSystem.PlatformDataKeys
910
import com.intellij.openapi.application.ApplicationManager.getApplication
1011
import com.intellij.openapi.command.CommandProcessor
@@ -132,14 +133,6 @@ class GitCommitAction : AnAction() {
132133
.setNamerForFiltering { "${it.code} ${it.localeDescription} ${it.description}" }
133134
.setAutoPackHeightOnFiltering(false)
134135
.createPopup()
135-
.apply {
136-
setUiDataProvider { sink ->
137-
sink[COPY_PROVIDER] = object : TextCopyProvider() {
138-
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.EDT
139-
override fun getTextLinesToCopy() = listOfNotNull(selectedMessage).nullize()
140-
}
141-
}
142-
}
143136
}
144137

145138
private fun preview(

src/main/resources/META-INF/plugin.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434

3535
<depends>com.intellij.modules.lang</depends>
3636
<depends>com.intellij.modules.platform</depends>
37+
<depends>com.intellij.modules.vcs</depends>
38+
<depends>Git4Idea</depends>
3739

3840
<resource-bundle>messages.GitmojiBundle</resource-bundle>
3941

0 commit comments

Comments
 (0)