-
Couldn't load subscription status.
- Fork 14
Integrate IntelliJ plugin into pnpm 🚀 #420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jamthief
wants to merge
12
commits into
neo4j:main
Choose a base branch
from
jamthief:intellij-misc-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
687a0af
IntelliJ plugin misc fixes
jamthief 3fdd168
Use turbo for intellij plugin build
jamthief f539032
update READMEs
jamthief 93c9d1f
Still haven't quite figured this out
jamthief b1c5bb5
Enforce gradle build ordering
jamthief c737d5d
Add Java 21 setup to github actions
jamthief 115d7cb
update README
jamthief 3588430
scale back .gitignore changes
jamthief 5640481
Merge remote-tracking branch 'origin/main' into intellij-misc-fixes
ncordon 0c547df
Removes turbo wiring from the intellij plugin, uses pnpm
ncordon 9f545f1
Adds java to the setup action
ncordon ee97dc2
Removes intellij artifacts from the ci cache
ncordon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
editor-plugin/intellij/.gitignore → packages/intellij-extension/.gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| .gradle | ||
| .run | ||
| build/ | ||
| !gradle/wrapper/gradle-wrapper.jar | ||
| !**/src/main/**/build/ | ||
|
|
||
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Neo4j Cypher LSP support for IntelliJ | ||
|
|
||
| ## Build and run | ||
|
|
||
| Run through the [prerequisites](../../CONTRIBUTING.md#building-the-project). | ||
|
|
||
| You can choose to build the plugin via `gradle`: | ||
|
|
||
| ``` | ||
| intellij-extension$ ./gradlew buildPlugin | ||
| ``` | ||
|
|
||
| Or you can use [`turbo`](https://turbo.build) from the project root: | ||
|
|
||
| ``` | ||
| cypher-language-support$ npx turbo build:intellij | ||
| ``` | ||
|
|
||
| ## Manual testing | ||
|
|
||
| If you want to test the plugin during a development workflow, you can spin up a temporary copy | ||
| of IntelliJ right from within the project. Simply run either the gradle target directly: | ||
|
|
||
| ``` | ||
| intellij-extension$ ./gradlew runIde | ||
| ``` | ||
|
|
||
| Or, from the project root: | ||
|
|
||
| ``` | ||
| cypher-language-support$ npx turbo run:intellij | ||
| ``` | ||
|
|
||
| ## Installing the plugin | ||
|
|
||
| From IntelliJ, open Settings > Plugins > (cog icon) > Install Plugin from disk, and browse to the jar file | ||
| located in `packages/intellij-extension/build/distributions`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "name": "neo4j-for-intellij", | ||
| "version": "1.0.0", | ||
| "description": "Highlighting, completions and more for Neo4j Cypher in IntelliJ", | ||
| "publisher": "neo4j-extensions", | ||
| "author": "Neo4j Inc.", | ||
| "license": "Apache-2.0", | ||
| "preview": true, | ||
| "scripts": { | ||
| "build:intellij": "./gradlew buildPlugin", | ||
| "clean": "./gradlew clean", | ||
| "run:intellij": "./gradlew runIde" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,4 @@ pluginManagement { | |
| } | ||
| } | ||
|
|
||
| rootProject.name = "cypher-lsp-support" | ||
| rootProject.name = "neo4j-for-intellij" | ||
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 7 additions & 1 deletion
8
...intellij/lsp/language/CypherLanguage.java → ...intellij/lsp/language/CypherLanguage.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,17 @@ | ||
| package org.neo4j.intellij.lsp.language; | ||
|
|
||
| import com.intellij.lang.Language; | ||
| import org.jetbrains.annotations.NotNull; | ||
|
|
||
| public class CypherLanguage extends Language { | ||
|
|
||
| public static final CypherLanguage INSTANCE = new CypherLanguage(); | ||
|
|
||
| private CypherLanguage() { | ||
| super("Cypher"); | ||
| } | ||
|
|
||
| @Override | ||
| public @NotNull String getDisplayName() { | ||
| return "Cypher"; | ||
| } | ||
| } |
File renamed without changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes.
1 change: 1 addition & 0 deletions
1
packages/intellij-extension/src/main/resources/fileTemplates/Cypher File.cypher.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <font face="verdana" size="-1">This file template is used whenever you create a new Cypher file.</font> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.