Skip to content

Commit be76992

Browse files
author
Akos Kitta
committed
Updated the extension name.
- Enabled linter (closes #1), - Set `beta` version, and - Updated the GH Actions workflow. Closes #14 Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent 3621c6c commit be76992

File tree

7 files changed

+643
-28
lines changed

7 files changed

+643
-28
lines changed

.eslintrc.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"plugins": [
9+
"@typescript-eslint"
10+
],
11+
"rules": {
12+
"@typescript-eslint/semi": "warn",
13+
"curly": "warn",
14+
"eqeqeq": "warn",
15+
"no-throw-literal": "warn",
16+
"semi": "error"
17+
}
18+
}

.github/workflows/build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: VS Code Arduino Language Server
1+
name: VS Code Arduino Tools
22

33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
workflow_dispatch:
88
pull_request:
99
branches:
10-
- master
10+
- main
1111
schedule:
1212
- cron: '0 2 * * *' # run every day at 2AM
1313

@@ -36,12 +36,12 @@ jobs:
3636
path: build-artifacts/
3737

3838
- name: Upload VS Code Extension [S3]
39-
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master')
39+
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
4040
uses: docker://plugins/s3
4141
env:
4242
PLUGIN_SOURCE: "build-artifacts/*"
4343
PLUGIN_STRIP_PREFIX: "build-artifacts/"
44-
PLUGIN_TARGET: "/vscode-arduino-language-server/nightly"
44+
PLUGIN_TARGET: "/vscode-arduino-tools/nightly"
4545
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
4646
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
4747
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.2.0",
44
"configurations": [
55
{
6-
"name": "Launch Arduino Language Server – VS Code Extension",
6+
"name": "Launch Arduino Tools – VS Code Extension",
77
"type": "extensionHost",
88
"request": "launch",
99
"runtimeExecutable": "${execPath}",

.yarnrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--ignore-engines true

README.md

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
## Arduino Language extension for VS Code
1+
## Arduino Tools extension for VS Code
2+
3+
VS Code extension for Arduino Tools, such as language features and debugger.
24

35
### Quick Start
4-
To build the Arduino Language Server VS Code extension (VSIX), execute:
6+
To build the Arduino Tools VS Code extension (VSIX), execute:
57
```
68
yarn
79
```
810

9-
It will generate a `vscode-arduino-language-server-x.x.x.vsix` file in the `./build-artifacts` folder.
11+
It will generate a `vscode-arduino-tools-x.x.x.vsix` file in the `./build-artifacts` folder.
1012
In VS Code, open the `Extensions` panel, click on the ellipses (`...`) and select `Install from VSIX...`.
1113
Or from the [_Command Palette_](https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix).
1214

1315
You can also start the extension in debug mode.
14-
Open the `Debug` panel, and select the `Launch Arduino Language Server VS Code Extension` launch configuration.
15-
16-
### TODOs
17-
- [x] Use `webpack` to bundle the dependencies into a single JS module to reduce the size of the extension.
18-
- [ ] Integrate the VSIX packaging into the GitHub Actions.
19-
- [x] Wire additional language features: `Go to Definition`, `Peak Definition`, `Find All References`, etc...
20-
- [x] Bump up the version of the `vscode` and `vscode-languageclient` dependencies.
21-
- [ ] Discuss `licensing`, `author`, and `publisher`.
22-
- [ ] _Add your item_
16+
Open the `Debug` panel, and select the `Launch Arduino Tools – VS Code Extension` launch configuration.

package.json

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
2-
"name": "vscode-arduino-language-server",
2+
"name": "vscode-arduino-tools",
33
"private": true,
4-
"version": "0.0.1",
4+
"version": "0.0.1-beta.1",
55
"publisher": "arduino",
6-
"license": "MIT",
6+
"license": "Apache-2.0",
77
"author": "Arduino SA",
8-
"description": "Arduino Language Server extension for VS Code",
8+
"description": "Arduino Tools extension for VS Code",
99
"main": "./dist/bundle",
1010
"engines": {
1111
"vscode": "^1.46.0"
1212
},
1313
"scripts": {
14-
"prepare": "yarn clean && yarn compile && yarn webpack && yarn package",
14+
"prepare": "yarn clean && yarn compile && yarn lint && yarn webpack && yarn package",
1515
"clean": "rimraf ./lib ./dist ./build-artifacts",
1616
"compile": "tsc -p ./",
17+
"lint": "eslint src --ext ts",
1718
"watch": "tsc -w -p ./",
1819
"webpack": "webpack --config ./configs/webpack.config.js",
1920
"package": "mkdirp build-artifacts && vsce package --out ./build-artifacts"
@@ -28,7 +29,10 @@
2829
"devDependencies": {
2930
"@types/node": "^10.14.9",
3031
"@types/vscode": "^1.41.0",
32+
"@typescript-eslint/eslint-plugin": "^4.8.0",
33+
"@typescript-eslint/parser": "^4.8.0",
3134
"copy-webpack-plugin": "^6.1.0",
35+
"eslint": "^7.9.0",
3236
"mkdirp": "^1.0.4",
3337
"rimraf": "^3.0.2",
3438
"typescript": "^3.8.3",
@@ -61,10 +65,11 @@
6165
],
6266
"categories": [
6367
"Programming Languages",
64-
"Formatters"
68+
"Formatters",
69+
"Debuggers"
6570
],
6671
"galleryBanner": {
67-
"color": "#006468",
72+
"color": "#005c5f",
6873
"theme": "light"
6974
},
7075
"activationEvents": [

0 commit comments

Comments
 (0)