diff --git a/gradle.properties b/gradle.properties index c0b9d6db..5e3ada0d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,6 @@ pluginVersion = 1.0.0 platformType = IC platformVersion = 2025.3.3 sinceBuild = 253 -untilBuild = 253.* # === Java === javaVersion = 21 diff --git a/graph-database-plugin/build.gradle b/graph-database-plugin/build.gradle index 9cdd6568..a869a26d 100644 --- a/graph-database-plugin/build.gradle +++ b/graph-database-plugin/build.gradle @@ -36,7 +36,6 @@ intellijPlatform { ideaVersion { sinceBuild = providers.gradleProperty('sinceBuild') - untilBuild = providers.gradleProperty('untilBuild') } changeNotes = (providers.provider { diff --git a/language/cypher/src/main/java/com/github/mdelambilly/graphdbplugin/language/cypher/editor/CypherTypedHandlerDelegate.java b/language/cypher/src/main/java/com/github/mdelambilly/graphdbplugin/language/cypher/editor/CypherTypedHandlerDelegate.java index 18e3b7ae..20c0b237 100644 --- a/language/cypher/src/main/java/com/github/mdelambilly/graphdbplugin/language/cypher/editor/CypherTypedHandlerDelegate.java +++ b/language/cypher/src/main/java/com/github/mdelambilly/graphdbplugin/language/cypher/editor/CypherTypedHandlerDelegate.java @@ -7,6 +7,7 @@ */ package com.github.mdelambilly.graphdbplugin.language.cypher.editor; +import com.github.mdelambilly.graphdbplugin.language.cypher.CypherLanguage; import com.github.mdelambilly.graphdbplugin.language.cypher.completion.metadata.atoms.CypherKeywords; import com.github.mdelambilly.graphdbplugin.language.cypher.psi.CypherStringLiteral; import com.intellij.codeInsight.editorActions.TypedHandlerDelegate; @@ -39,6 +40,10 @@ public Result checkAutoPopup(char charTyped, @NotNull Project project, @NotNull @NotNull @Override public Result charTyped(char c, @NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { + if (!file.getLanguage().isKindOf(CypherLanguage.INSTANCE)) { + return Result.CONTINUE; + } + if (c != ' ' && c != '\n' && c != '\t' && c != '(' && c != ')' && c != ',' && c != '[' && c != '{') { return Result.CONTINUE; } diff --git a/testing/integration-neo4j/build.gradle b/testing/integration-neo4j/build.gradle index b8f787ae..9060e0b7 100644 --- a/testing/integration-neo4j/build.gradle +++ b/testing/integration-neo4j/build.gradle @@ -16,7 +16,6 @@ dependencies { bundledPlugin('com.intellij.java') } - testImplementation project(':graph-database-plugin') testImplementation project(':ui:jetbrains') testImplementation project(':language:cypher') testImplementation project(':database:api') diff --git a/testing/integration-neo4j/src/main/resources/META-INF/plugin.xml b/testing/integration-neo4j/src/main/resources/META-INF/plugin.xml new file mode 100644 index 00000000..570aac45 --- /dev/null +++ b/testing/integration-neo4j/src/main/resources/META-INF/plugin.xml @@ -0,0 +1,125 @@ + + + com.github.mdelambilly.jetbrains.graphdbplugin.tests + com.intellij.modules.lang + com.intellij.modules.java + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file