Skip to content
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

+Basic VSCode extension #5

Merged
merged 2 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tools/vscode-extension/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
out
node_modules
client/server
.vscode-test
*.vsix
1 change: 1 addition & 0 deletions tools/vscode-extension/bind.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mklink /D "%USERPROFILE%\.vscode\extensions\salient-lang" "%~dp0"
22 changes: 22 additions & 0 deletions tools/vscode-extension/client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "salient-lang",
"description": "Salient VSCode Plugin",
"author": "Ajani Bilby",
"license": "MIT",
"version": "0.0.1",
"publisher": "Ajani Bilby",
"repository": {
"type": "git",
"url": "https://github.com/ajanibilby/salient"
},
"engines": {
"vscode": "^1.43.0"
},
"dependencies": {
"vscode-languageclient": "^6.1.3"
},
"devDependencies": {
"@types/vscode": "1.43.0",
"vscode-test": "^1.3.0"
}
}
12 changes: 12 additions & 0 deletions tools/vscode-extension/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2019",
"lib": ["ES2019"],
"outDir": "out",
"rootDir": "src",
"sourceMap": true
},
"include": ["src"],
"exclude": ["node_modules", ".vscode-test"]
}
31 changes: 31 additions & 0 deletions tools/vscode-extension/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"comments": {
"lineComment": "//",
"blockComment": [ "/*", "*/" ]
},
"brackets": [
[ "{", "}" ],
[ "[", "]" ],
[ "(", ")" ]
],
"autoClosingPairs": [
{ "open": "[", "close": "]" },
{ "open": "{", "close": "}" },
{ "open": "(", "close": ")" },
{
"open": "\"",
"close": "\"",
"notIn": [
"string"
]
}
],
"surroundingPairs": [
[ "{", "}" ],
[ "[", "]" ],
[ "(", ")" ],
[ "\"", "\"" ],
[ "'", "'" ],
[ "`", "`" ]
]
}
37 changes: 37 additions & 0 deletions tools/vscode-extension/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "salient-lang",
"displayName": "%displayName%",
"description": "%description%",
"version": "0.0.3",
"publisher": "Ajani Bilby",
"license": "MIT",
"repository": "https://github.com/ajanibilby/salient/tools/vscode-extension",
"engines": {
"vscode": "*"
},
"scripts": {
"package": "vsce package"
},
"contributes": {
"languages": [
{
"id": "salient",
"extensions": [
".sa"
],
"aliases": [
"Salient",
"salient language"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "salient",
"scopeName": "source.sa",
"path": "./syntaxes/salient.tmLanguage.json"
}
]
}
}
4 changes: 4 additions & 0 deletions tools/vscode-extension/package.nls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"displayName": "Salient Language",
"description": "Provides syntax highlighting and bracket matching in Salient-lang files."
}
3 changes: 3 additions & 0 deletions tools/vscode-extension/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Uniview Language Extension

The official syntax highlighter for [uniview](https://github.com/qupa-project/uniview-lang)
Loading