Skip to content

Commit 92bb7e0

Browse files
committed
Drafted the initial code rework.
1 parent 1aa8639 commit 92bb7e0

File tree

79 files changed

+2188
-2127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2188
-2127
lines changed

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.ts]
2+
charset = utf-8
3+
end_of_line = lf
4+
indent_style = space
5+
indent_size = 2

.eslintrc.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/eslint-recommended"
9+
],
10+
"globals": {
11+
"Atomics": "readonly",
12+
"SharedArrayBuffer": "readonly"
13+
},
14+
"parser": "@typescript-eslint/parser",
15+
"parserOptions": {
16+
"ecmaVersion": 2018,
17+
"sourceType": "module"
18+
},
19+
"plugins": [
20+
"@typescript-eslint"
21+
],
22+
"rules": {
23+
"brace-style": "warn",
24+
"indent": [ "warn", 2 ],
25+
"max-depth": [ "warn", 3 ],
26+
"linebreak-style": [ "warn", "unix" ],
27+
"max-params": [ "warn", 3 ],
28+
"quotes": [ "warn", "single" ],
29+
"require-await": "warn",
30+
"semi": [ "warn", "always" ],
31+
"no-trailing-spaces": "warn",
32+
"no-unused-vars": "off",
33+
"@typescript-eslint/no-unused-vars": [
34+
"warn",
35+
{
36+
"varsIgnorePattern": "^_$"
37+
}
38+
],
39+
"@typescript-eslint/object-curly-spacing": [ "warn", "always" ],
40+
"@typescript-eslint/prefer-optional-chain": "warn",
41+
"@typescript-eslint/no-implicit-any-catch": "warn"
42+
}
43+
}

.github/workflows/ci.yaml

+9-5
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ jobs:
1919
# uses: warchant/setup-sonar-scanner@v1
2020

2121
- run: npm install
22-
#- run: npm run prettier
23-
- run: npm run build
24-
- run: npm run package
22+
- run: npm run eslint
23+
- run: npm run vscode:prepublish
2524
# - run: npm test
2625
# env:
2726
# CI: true
27+
- name: "Prepare: Package VSCode Extension"
28+
uses: actions/setup-node@v1
29+
- run: npm install -g [email protected]
30+
- run: vsce package --out dist/
31+
2832

2933
#- name: "Run sonar-scanner"
3034
# env:
@@ -119,8 +123,8 @@ jobs:
119123
id: get_version
120124
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
121125

122-
- run: npm install
123-
- run: npm run publish -- -p "${MARKETPLACE_TOKEN}" --packagePath dist/${PACKAGE_NAME}-${VERSION}.vsix
126+
- run: npm install -g [email protected]
127+
- run: vsce publish -p "${MARKETPLACE_TOKEN}" --packagePath dist/${PACKAGE_NAME}-${VERSION}.vsix
124128
env:
125129
# Note: Marketplace Token according to:
126130
# https://code.visualstudio.com/api/working-with-extensions/publishing-extension#get-a-personal-access-token

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/dafny
33
.vscode-test
44
node_modules/
5-
package-lock.json
65
.DS_Store
76
/dist/*
87
!/dist/.gitkeep

.gitlab-ci.yml

-52
This file was deleted.

.prettierrc.js

-8
This file was deleted.

.vscode/extensions.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
5+
// List of extensions which should be recommended for users of this workspace.
6+
"recommendations": [
7+
"dbaeumer.vscode-eslint"
8+
]
9+
}

.vscode/launch.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
// A launch configuration that compiles the extension and then opens it inside a new window
21
{
3-
"version": "0.1.0",
2+
"version": "0.2.0",
3+
// List of configurations. Add new configurations or edit existing ones.
44
"configurations": [
55
{
6-
"name": "Launch Extension",
76
"type": "extensionHost",
87
"request": "launch",
8+
"name": "Launch Client",
99
"runtimeExecutable": "${execPath}",
1010
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
1111
"stopOnEntry": false,
1212
"sourceMaps": true,
13-
"outFiles": [ "${workspaceRoot}/out/src/**/*.js" ],
14-
"preLaunchTask": "npm"
13+
"outFiles": ["${workspaceRoot}/out/**/*.js"],
14+
"preLaunchTask": "npm: watch"
1515
}
1616
]
1717
}

.vscode/settings.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
// Place your settings in this file to overwrite default and user settings.
21
{
3-
"files.exclude": {
4-
"out": false // set this to true to hide the "out" folder with the compiled JS files
5-
},
6-
"search.exclude": {
7-
"out": true // set this to false to include "out" folder in search results
8-
},
9-
"typescript.tsdk": "./node_modules/typescript/lib" // we want to use the TS server from our node_modules folder to control its version
2+
"editor.insertSpaces": false,
3+
"tslint.enable": true,
4+
"typescript.tsc.autoDetect": "off",
5+
"typescript.preferences.quoteStyle": "single"
106
}

.vscode/symbols.json

-1
This file was deleted.

.vscode/tasks.json

+25-32
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,33 @@
1-
// Available variables which can be used inside of strings.
2-
// ${workspaceRoot}: the root folder of the team
3-
// ${file}: the current opened file
4-
// ${fileBasename}: the current opened file's basename
5-
// ${fileDirname}: the current opened file's dirname
6-
// ${fileExtname}: the current opened file's extension
7-
// ${cwd}: the current working directory of the spawned process
8-
9-
// A task runner that calls a custom npm script that compiles the extension.
101
{
112
"version": "2.0.0",
12-
13-
// we want to run npm
14-
"command": "npm",
15-
16-
// we run the custom script "compile" as defined in package.json
17-
"args": ["run", "compile", "--loglevel", "silent"],
18-
19-
// The tsc compiler is started in watching mode
20-
"isWatching": true,
21-
22-
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
23-
"problemMatcher": "$tsc-watch",
243
"tasks": [
254
{
26-
"label": "npm",
27-
"type": "shell",
28-
"command": "npm",
29-
"args": [
30-
"run",
31-
"compile",
32-
"--loglevel",
33-
"silent"
34-
],
5+
"type": "npm",
6+
"script": "compile",
7+
"group": "build",
8+
"presentation": {
9+
"panel": "dedicated",
10+
"reveal": "never"
11+
},
12+
"problemMatcher": [
13+
"$tsc"
14+
]
15+
},
16+
{
17+
"type": "npm",
18+
"script": "watch",
3519
"isBackground": true,
36-
"problemMatcher": "$tsc-watch",
37-
"group": "build"
20+
"group": {
21+
"kind": "build",
22+
"isDefault": true
23+
},
24+
"presentation": {
25+
"panel": "dedicated",
26+
"reveal": "never"
27+
},
28+
"problemMatcher": [
29+
"$tsc-watch"
30+
]
3831
}
3932
]
4033
}

.vscodeignore

-14
This file was deleted.

Dockerfile

-27
This file was deleted.

_launch_VScode.bat

-1
This file was deleted.

language-configuration.json

+28-28
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
2-
"comments": {
3-
"lineComment": "//",
4-
"blockComment": [ "/*", "*/" ]
5-
},
6-
"brackets": [
7-
["{", "}"],
8-
["[", "]"],
9-
["(", ")"],
10-
["<", ">"]
11-
],
12-
"autoClosingPairs": [
13-
{ "open": "{", "close": "}" },
14-
{ "open": "[", "close": "]" },
15-
{ "open": "(", "close": ")" },
16-
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
17-
{ "open": "\"", "close": "\"", "notIn": ["string"] },
18-
{ "open": "/**", "close": " */", "notIn": ["string"] }
19-
],
20-
"surroundingPairs": [
21-
["{", "}"],
22-
["[", "]"],
23-
["(", ")"],
24-
["<", ">"],
25-
["'", "'"],
26-
["\"", "\""],
27-
["`", "`"]
28-
]
29-
}
2+
"comments": {
3+
"lineComment": "//",
4+
"blockComment": [ "/*", "*/" ]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"],
9+
["(", ")"],
10+
["<", ">"]
11+
],
12+
"autoClosingPairs": [
13+
{ "open": "{", "close": "}" },
14+
{ "open": "[", "close": "]" },
15+
{ "open": "(", "close": ")" },
16+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
17+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
18+
{ "open": "/**", "close": " */", "notIn": ["string"] }
19+
],
20+
"surroundingPairs": [
21+
["{", "}"],
22+
["[", "]"],
23+
["(", ")"],
24+
["<", ">"],
25+
["'", "'"],
26+
["\"", "\""],
27+
["`", "`"]
28+
]
29+
}

0 commit comments

Comments
 (0)