Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew committed Jun 15, 2023
1 parent 6cbe583 commit 6d9fe05
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions packages/langium-vscode/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Langium Support for VS Code

This extension contributes a language server for the [Langium](https://langium.org) grammar declaration language. It is built with Langium itself.
This extension contributes support for the [Langium](https://langium.org) grammar declaration language. The underlying language server is built with Langium itself.

## Language Features

Contributed features:
* Syntax highlighting
* Completion
* Diagnostics
Expand All @@ -12,3 +13,9 @@ Contributed features:
* Document highlighting
* Document symbols
* Semantic tokens highlighting

## Syntax Diagrams

Langium grammar files can be visualised as syntax diagrams using the *Show Railroad Syntax Diagram* button that appears in the tab bar of `.langium` files.

![Example Syntax Diagram](https://github.com/langium/langium/assets/4377073/fe50828b-2a2a-474e-b065-8a05b3ce23cf)
2 changes: 1 addition & 1 deletion packages/langium-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"commands": [
{
"command": "langium.showRailroadDiagram",
"title": "Show railroad syntax diagram",
"title": "Show Railroad Syntax Diagram",
"category": "Langium",
"icon": "$(list-tree)"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/langium-vscode/src/railroad-webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class RailroadDiagramPanel implements vscode.Disposable {
private disposables: vscode.Disposable[] = [];

static current?: RailroadDiagramPanel;
static readonly viewType = 'railroadDiagram';
static readonly viewType = 'LangiumRailroadDiagram';

static createOrShow(client: LanguageClient, fileUri: vscode.Uri): void {
if (this.current) {
Expand Down

0 comments on commit 6d9fe05

Please sign in to comment.