Skip to content

Commit ab3e90f

Browse files
authored
Initial extension content (#1)
* initial extension content Signed-off-by: Jens Reinecke <[email protected]>
1 parent ded4ef3 commit ab3e90f

23 files changed

+3511
-2
lines changed

.eslintrc.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"project": [
7+
"./tsconfig.json"
8+
],
9+
"sourceType": "module"
10+
},
11+
"plugins": [
12+
"@typescript-eslint"
13+
],
14+
"extends": [
15+
"eslint:recommended",
16+
"plugin:@typescript-eslint/eslint-recommended",
17+
"plugin:@typescript-eslint/recommended"
18+
],
19+
"rules": {
20+
"@typescript-eslint/no-unused-vars": [
21+
"warn",
22+
{
23+
"argsIgnorePattern": "^_"
24+
}
25+
],
26+
"block-spacing": [
27+
"error",
28+
"always"
29+
],
30+
"brace-style": [
31+
"error",
32+
"1tbs",
33+
{
34+
"allowSingleLine": true
35+
}
36+
],
37+
"eol-last": [
38+
"error"
39+
],
40+
"indent": [
41+
"error",
42+
4,
43+
{
44+
"SwitchCase": 1
45+
}
46+
],
47+
"linebreak-style": [
48+
"error",
49+
"unix"
50+
],
51+
"no-trailing-spaces": [
52+
"error"
53+
],
54+
"object-curly-spacing": [
55+
"error",
56+
"always"
57+
],
58+
"quotes": [
59+
"error",
60+
"single"
61+
],
62+
"semi": [
63+
"error",
64+
"always"
65+
]
66+
},
67+
"ignorePatterns": [
68+
"dist",
69+
"**/*.d.ts",
70+
"node_modules"
71+
]
72+
}

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Fixes
2+
<!-- List the GitHub issue this PR resolves -->
3+
4+
- [#<Number>](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/<number>)
5+
6+
## Changes
7+
<!-- List the changes this PR introduces -->
8+
9+
-
10+
11+
## Screenshots
12+
<!-- Show UI changes with screenshots to ease UX/UI feedback: -->
13+
14+
## Checklist
15+
<!-- Put an `x` in the boxes. All tasks must be completed and boxes checked before merging. -->
16+
17+
<!-- TODO: Add a checklist -->

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
merge_group:
12+
13+
jobs:
14+
build:
15+
name: Build and package
16+
runs-on: [ubuntu-latest]
17+
steps:
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
19+
with:
20+
fetch-depth: 0
21+
submodules: true
22+
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
23+
with:
24+
node-version: 20.x
25+
registry-url: https://npm.pkg.github.com
26+
always-auth: true
27+
- name: Build
28+
env:
29+
GITHUB_TOKEN: ${{github.token}}
30+
run: yarn --frozen-lockfile
31+
- name: Package desktop
32+
run: |
33+
yarn package
34+
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
35+
with:
36+
name: vsix-package
37+
path: ./*.vsix
38+
retention-days: 1

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
dist
3+
*.vsix
4+
*.log
5+
test-workspace/*
6+
!test-workspace/.vscode

.vscode/launch.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Desktop Extension",
9+
"type": "extensionHost",
10+
"request": "launch",
11+
"args": [
12+
"--extensionDevelopmentPath=${workspaceFolder}",
13+
"${workspaceFolder}/test-workspace"
14+
],
15+
"outFiles": [
16+
"${workspaceFolder}/dist/**/*.js"
17+
],
18+
"sourceMapPathOverrides": {
19+
"webpack://?:*/*": "${workspaceFolder}/*"
20+
}
21+
}
22+
]
23+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// Ensure editing files in this workspace uses Unix line endings
3+
"files.eol": "\n",
4+
}

.vscode/tasks.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "watch",
7+
"group": {
8+
"kind": "build",
9+
"isDefault": true
10+
},
11+
"problemMatcher": [],
12+
"label": "Watch",
13+
"detail": "npm run watch"
14+
}
15+
]
16+
}

.vscodeignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.github
2+
.vscode
3+
dist/**/*.js.map
4+
node_modules
5+
src
6+
test-workspace
7+
.eslintrc.json
8+
.gitignore
9+
.vscodeignore
10+
tsconfig.json
11+
webpack.config.js
12+
*.vsix

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Change Log
2+
3+
## Unreleased

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Contributing to this extension

0 commit comments

Comments
 (0)