Skip to content

Updated the extension name. #15

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

Merged
merged 1 commit into from
Feb 26, 2021
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
18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "error"
}
}
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: VS Code Arduino Language Server
name: VS Code Arduino Tools

on:
push:
branches:
- master
- main
workflow_dispatch:
pull_request:
branches:
- master
- main
schedule:
- cron: '0 2 * * *' # run every day at 2AM

Expand Down Expand Up @@ -36,12 +36,12 @@ jobs:
path: build-artifacts/

- name: Upload VS Code Extension [S3]
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master')
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
uses: docker://plugins/s3
env:
PLUGIN_SOURCE: "build-artifacts/*"
PLUGIN_STRIP_PREFIX: "build-artifacts/"
PLUGIN_TARGET: "/vscode-arduino-language-server/nightly"
PLUGIN_TARGET: "/vscode-arduino-tools/nightly"
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.2.0",
"configurations": [
{
"name": "Launch Arduino Language Server – VS Code Extension",
"name": "Launch Arduino Tools – VS Code Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
Expand Down
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--ignore-engines true
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
## Arduino Language extension for VS Code
## Arduino Tools extension for VS Code

VS Code extension for Arduino Tools, such as language features and debugger.

### Quick Start
To build the Arduino Language Server VS Code extension (VSIX), execute:
To build the Arduino Tools VS Code extension (VSIX), execute:
```
yarn
```

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

You can also start the extension in debug mode.
Open the `Debug` panel, and select the `Launch Arduino Language Server VS Code Extension` launch configuration.

### TODOs
- [x] Use `webpack` to bundle the dependencies into a single JS module to reduce the size of the extension.
- [ ] Integrate the VSIX packaging into the GitHub Actions.
- [x] Wire additional language features: `Go to Definition`, `Peak Definition`, `Find All References`, etc...
- [x] Bump up the version of the `vscode` and `vscode-languageclient` dependencies.
- [ ] Discuss `licensing`, `author`, and `publisher`.
- [ ] _Add your item_
Open the `Debug` panel, and select the `Launch Arduino Tools – VS Code Extension` launch configuration.
19 changes: 12 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"name": "vscode-arduino-language-server",
"name": "vscode-arduino-tools",
"private": true,
"version": "0.0.1",
"version": "0.0.1-beta.1",
"publisher": "arduino",
"license": "MIT",
"license": "Apache-2.0",
"author": "Arduino SA",
"description": "Arduino Language Server extension for VS Code",
"description": "Arduino Tools extension for VS Code",
"main": "./dist/bundle",
"engines": {
"vscode": "^1.46.0"
},
"scripts": {
"prepare": "yarn clean && yarn compile && yarn webpack && yarn package",
"prepare": "yarn clean && yarn compile && yarn lint && yarn webpack && yarn package",
"clean": "rimraf ./lib ./dist ./build-artifacts",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -w -p ./",
"webpack": "webpack --config ./configs/webpack.config.js",
"package": "mkdirp build-artifacts && vsce package --out ./build-artifacts"
Expand All @@ -28,7 +29,10 @@
"devDependencies": {
"@types/node": "^10.14.9",
"@types/vscode": "^1.41.0",
"@typescript-eslint/eslint-plugin": "^4.8.0",
"@typescript-eslint/parser": "^4.8.0",
"copy-webpack-plugin": "^6.1.0",
"eslint": "^7.9.0",
"mkdirp": "^1.0.4",
"rimraf": "^3.0.2",
"typescript": "^3.8.3",
Expand Down Expand Up @@ -61,10 +65,11 @@
],
"categories": [
"Programming Languages",
"Formatters"
"Formatters",
"Debuggers"
],
"galleryBanner": {
"color": "#006468",
"color": "#005c5f",
"theme": "light"
},
"activationEvents": [
Expand Down
Loading