-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
6 changed files
with
153 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.vsix | ||
node_modules |
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,5 +1,3 @@ | ||
# Erg language support for Visual Studio Code | ||
|
||
__Warning__: The plugin is in a very early stage. Very few functions are available. | ||
|
||
The initial version is a small part fork of https://github.com/julia-vscode/julia-vscode (has started to rewritten) | ||
This extension provides syntax highlighting and basic supports (diagnostics & code completion) for the [Erg](https://github.com/erg-lang/erg) programming language. |
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,32 @@ | ||
"use strict"; | ||
const vscode = require("vscode"); | ||
const languageclient = require("vscode-languageclient"); | ||
|
||
let client; | ||
|
||
function activate(context) { | ||
try { | ||
const serverOptions = { | ||
command: "els", | ||
args: [] | ||
}; | ||
const clientOptions = { | ||
documentSelector: [ | ||
{ | ||
scheme: "file", | ||
language: "erg", | ||
} | ||
], | ||
}; | ||
client = new languageclient.LanguageClient("els", serverOptions, clientOptions); | ||
context.subscriptions.push(client.start()); | ||
} catch (e) { | ||
vscode.window.showErrorMessage("failed to start els."); | ||
} | ||
} | ||
|
||
function deactivate() { | ||
if (client) return client.stop(); | ||
} | ||
|
||
module.exports = { activate, deactivate } |
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