From ef6f70e16db6ee16e639278cd048a1ffec3ebfa3 Mon Sep 17 00:00:00 2001 From: mdelambilly Date: Thu, 26 Mar 2026 14:57:29 +0100 Subject: [PATCH 1/3] fix: restrict Cypher keyword auto-uppercase to Cypher files only --- .../language/cypher/editor/CypherTypedHandlerDelegate.java | 5 +++++ 1 file changed, 5 insertions(+) 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; } From 09658050d135006c7236d1375dfa35103a0af0c6 Mon Sep 17 00:00:00 2001 From: mdelambilly Date: Thu, 26 Mar 2026 14:59:24 +0100 Subject: [PATCH 2/3] chore: remove untilBuild restriction for future IntelliJ compatibility --- gradle.properties | 1 - graph-database-plugin/build.gradle | 1 - 2 files changed, 2 deletions(-) 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 { From f44e93db3c0dd81ab2732faf0d561855603ec3e2 Mon Sep 17 00:00:00 2001 From: mdelambilly Date: Fri, 27 Mar 2026 00:16:48 +0100 Subject: [PATCH 3/3] fix: register plugin services for integration test sandbox Add META-INF/plugin.xml to testing:integration-neo4j main resources so that IJPGP 2.x includes it in the composedJar used for the test sandbox. This registers all required services (DataSourcesComponent, DataSourcesComponentMetadata, CypherMetadataProviderService, etc.) and Cypher language extensions, fixing 210 NullPointerExceptions in LightJavaCodeInsightFixtureTestCase setUp(). Remove redundant testImplementation project(':graph-database-plugin') since all individual modules are already listed explicitly. Co-Authored-By: Claude Sonnet 4.6 --- testing/integration-neo4j/build.gradle | 1 - .../src/main/resources/META-INF/plugin.xml | 125 ++++++++++++++++++ 2 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 testing/integration-neo4j/src/main/resources/META-INF/plugin.xml 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