-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: main
Are you sure you want to change the base?
Changes from 7 commits
687a0af
3fdd168
f539032
93c9d1f
b1c5bb5
c737d5d
115d7cb
3588430
5640481
0c547df
9f545f1
ee97dc2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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/ | ||
|
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 build the plugin from the project root using [`turbo`](https://turbo.build): | ||
|
||
``` | ||
$ npx turbo neo4j-for-intellij#build | ||
``` | ||
|
||
`gradle` is also an option (and can be used from within IntelliJ): | ||
|
||
``` | ||
$ cd packages/intellij-extension && ./gradlew buildPlugin | ||
``` | ||
|
||
## Develop and test | ||
|
||
If you want to test the plugin during a development workflow, you can spin up a temporary copy | ||
of IntelliJ that runs with a freshly built version enabled by default: | ||
|
||
``` | ||
$ npx turbo neo4j-for-intellij#runIde | ||
``` | ||
|
||
...this target also exists in `gradle`: | ||
|
||
``` | ||
$ cd packages/intellij-extension && ./gradlew runIde | ||
``` | ||
|
||
## Installing the plugin manually | ||
|
||
From IntelliJ, open Settings > Plugins > (cog icon) > Install Plugin from disk, and browse to the jar file | ||
located in `packages/intellij-extension/build/distributions`. |
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": "./gradlew -q buildPlugin", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer to have this as:
So this does not get executed for the people that work currently on the repo unless they specifically have that env variable set. The reason is we have 4 / 5 people that contribute regularly right now from the company, some of them using OSX, some using Windows, so I don't want to force them to install Kubernetes locally. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @anderson4j can you try this works for you if we gated the code? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, this skips and regular build works! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ncordon I think I get your gist - although it needs a single equals sign to work: However, in principle, I want to argue against doing this anyway. My reasoning is as follows:
|
||
"clean": "./gradlew -q clean", | ||
"runIde": "./gradlew -q runIde" | ||
} | ||
} |
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" |
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"; | ||
} | ||
} |
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> |
Uh oh!
There was an error while loading. Please reload this page.