Skip to content

Commit

Permalink
Bumps VSCode version (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncordon authored Jun 20, 2024
1 parent 0ccbb30 commit fb63982
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish-vscode-extension.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish VSCode extension to Marketplace and OpenVSX

on:
workflow_dispatch:
push:
tags:
- 'neo4j-for-vscode@*.*.*'
Expand Down
5 changes: 5 additions & 0 deletions packages/vscode-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# @neo4j-cypher/vscode-extension

## 1.2.0

- Adds basic connection pane to connect to Neo4j using VSCode menus
- Adds syntax highlighting inside Markdown files and for annotated strings in Java, Python, Javascript, .NET and Go

## 1.1.1

### Patch Changes
Expand Down
49 changes: 48 additions & 1 deletion packages/vscode-extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,58 @@ Our extension preview provides a rich set of features for working with Cypher, t

![demo-gif](https://github.com/neo4j/cypher-language-support/blob/main/packages/vscode-extension/resources/images/demo.gif?raw=true)

It also provides a basic database connection management pane and syntax highlighting embedded in other languages, namely Markdown, Java, Python, Javascriopt, .NET and Go. This is possible having a multiline string that starts with `//cypher` or `/*cypher*/` or a single line string starting with `/*cypher*/`. We also support a templated string `/*cypher*/`{{query here}}` in Javascript. Examples:

### Markdown

````
```cypher
MATCH (n) RETURN n
```
````

### Java

```java
String a = """//cypher
MATCH (n)
RETURN n
"""

String b = """/*cypher*/
MATCH (n)
RETURN n
"""

String c = "/*cypher*/ MATCH (n:Label) RETURN function(n.property)"
```

### Javascript / Typescript

```typescript
const a = /* cypher */ `
MATCH (n)
RETURN n
`;

const b = `//cypher
MATCH (n)
RETURN n
`;

const c = `/*cypher*/
MATCH (n)
RETURN n
`;

const d = '/*cypher*/ MATCH (n) RETURN n';
```

## Upcoming features

We're working on adding more features to the extension, such as:

- Easier database connection management
- Improved database connection management
- Embedded cypher support in other file types
- Query exectution and result visualization
- Automatic query formatting
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"publisher": "neo4j-extensions",
"author": "Neo4j Inc.",
"license": "Apache-2.0",
"version": "1.1.1",
"version": "1.2.0",
"preview": true,
"categories": [
"Programming Languages",
Expand Down

0 comments on commit fb63982

Please sign in to comment.