-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
304a330
commit 2a43bf2
Showing
8 changed files
with
89 additions
and
139 deletions.
There are no files selected for viewing
This file contains 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 contains 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,15 +1,28 @@ | ||
.vscode/** | ||
.vscode | ||
.github | ||
**/*.ts | ||
**/*.map | ||
.gitignore | ||
**/tsconfig.json | ||
**/tsconfig.base.json | ||
contributing.md | ||
.travis.yml | ||
ededb-ls-vscode/node_modules/** | ||
!ededb-ls-vscode/node_modules/vscode-jsonrpc/** | ||
!ededb-ls-vscode/node_modules/vscode-languageclient/** | ||
!ededb-ls-vscode/node_modules/vscode-languageserver-protocol/** | ||
!ededb-ls-vscode/node_modules/vscode-languageserver-types/** | ||
!ededb-ls-vscode/node_modules/{minimatch,brace-expansion,concat-map,balanced-match}/** | ||
!ededb-ls-vscode/node_modules/{semver,lru-cache,yallist}/** | ||
Makefile | ||
|
||
test | ||
settings/sublime | ||
settings/atom.cson | ||
generator | ||
misc | ||
readmes | ||
|
||
edgedb-ls-vscode/package.json | ||
edgedb-ls-vscode/package-lock.json | ||
edgedb-ls-vscode/out/test | ||
edgedb-ls-vscode/node_modules/** | ||
!edgedb-ls-vscode/node_modules/vscode-jsonrpc/** | ||
!edgedb-ls-vscode/node_modules/vscode-languageclient/** | ||
!edgedb-ls-vscode/node_modules/vscode-languageserver-protocol/** | ||
!edgedb-ls-vscode/node_modules/vscode-languageserver-types/** | ||
!edgedb-ls-vscode/node_modules/{minimatch,brace-expansion,concat-map,balanced-match}/** | ||
!edgedb-ls-vscode/node_modules/{semver,lru-cache,yallist}/** |
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 contains 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 contains 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,44 @@ | ||
# EdgeDB extension for Visual Studio Code | ||
|
||
Extension that provides support for EdgeDB query language (EdgeQL) and EdgeDB Schema Definition Language (ESDL). | ||
|
||
![](https://edgedb.github.io/edgedb-editor-plugin/edgedb-st.png) | ||
|
||
(The color scheme used in the screenshot is | ||
[Chromodynamics](https://github.com/MagicStack/Chromodynamics).) | ||
|
||
## Features | ||
|
||
- syntax highlighting, | ||
- syntax highlighting in embedded code blocks, | ||
|
||
|
||
## Installation Instructions | ||
|
||
In **Atom** and **Visual Studio Code** install the `edgedb` package. | ||
|
||
In **Sublime Text**, install the `EdgeDB` package via "Package Control". | ||
|
||
|
||
## Syntax highlighting for embedded code blocks | ||
|
||
This extension also provides syntax highlighting within string literals of other languages such as JavaScript and Go. | ||
To enable the highlighting, include `# edgeql` in a backtick-quoted string. | ||
This will make it easier to spot syntax errors and make your embedded queries more readable. | ||
|
||
```go | ||
// Go | ||
query := `#edgeql | ||
select Example { * }; | ||
` | ||
``` | ||
|
||
```javascript | ||
// JavaScript | ||
const query = ` | ||
# edgeql | ||
SELECT ... | ||
`; | ||
``` | ||
|
||
Other languages are not yet implemented, but we are accepting pull requests at [edgedb-editor-plugin](https://github.com/edgedb/edgedb-editor-plugin). |