Skip to content

Commit 779d4f1

Browse files
committed
style: formatting
1 parent 76065eb commit 779d4f1

File tree

10 files changed

+90
-110
lines changed

10 files changed

+90
-110
lines changed

.commitlintrc.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"extends": [
3-
"@commitlint/config-conventional"
4-
]
5-
}
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
*.vsix
3-
dist
3+
dist/**
4+
tmp/**

.vscode/launch.json

Lines changed: 29 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,31 @@
11
// A launch configuration that compiles the extension and then opens it inside a new window
22
{
3-
"version": "0.2.0",
4-
"configurations": [
5-
{
6-
"type": "extensionHost",
7-
"request": "launch",
8-
"name": "Launch Client",
9-
"runtimeExecutable": "${execPath}",
10-
"args": [
11-
"--extensionDevelopmentPath=${workspaceRoot}"
12-
],
13-
"outFiles": [
14-
"${workspaceRoot}/dist/client/out/**/*.js"
15-
],
16-
"autoAttachChildProcesses": true,
17-
"preLaunchTask": {
18-
"type": "npm",
19-
"script": "watch"
20-
}
21-
},
22-
{
23-
"name": "Language Server E2E Test",
24-
"type": "extensionHost",
25-
"request": "launch",
26-
"runtimeExecutable": "${execPath}",
27-
"args": [
28-
"--extensionDevelopmentPath=${workspaceRoot}",
29-
"--extensionTestsPath=${workspaceRoot}/client/out/test/index",
30-
"${workspaceRoot}/client/testFixture"
31-
],
32-
"outFiles": [
33-
"${workspaceRoot}/client/out/test/**/*.js"
34-
]
35-
}
36-
]
37-
}
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"name": "Launch Client",
9+
"runtimeExecutable": "${execPath}",
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
11+
"outFiles": ["${workspaceRoot}/dist/client/out/**/*.js"],
12+
"autoAttachChildProcesses": true,
13+
"preLaunchTask": {
14+
"type": "npm",
15+
"script": "watch"
16+
}
17+
},
18+
{
19+
"name": "Language Server E2E Test",
20+
"type": "extensionHost",
21+
"request": "launch",
22+
"runtimeExecutable": "${execPath}",
23+
"args": [
24+
"--extensionDevelopmentPath=${workspaceRoot}",
25+
"--extensionTestsPath=${workspaceRoot}/client/out/test/index",
26+
"${workspaceRoot}/client/testFixture"
27+
],
28+
"outFiles": ["${workspaceRoot}/client/out/test/**/*.js"]
29+
}
30+
]
31+
}

.vscode/tasks.json

Lines changed: 34 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,35 @@
11
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"type": "shell",
6-
"command": "npx nx affected --target=build",
7-
"label": "build",
8-
"problemMatcher": [
9-
"$tsc"
10-
]
11-
},
12-
{
13-
"type": "npm",
14-
"script": "compile",
15-
"group": "build",
16-
"presentation": {
17-
"panel": "dedicated",
18-
"reveal": "never"
19-
},
20-
"problemMatcher": [
21-
"$tsc"
22-
]
23-
},
24-
{
25-
"type": "npm",
26-
"script": "watch",
27-
"isBackground": true,
28-
"group": {
29-
"kind": "build",
30-
"isDefault": true
31-
},
32-
"presentation": {
33-
"panel": "dedicated",
34-
"reveal": "never"
35-
},
36-
"problemMatcher": [
37-
"$tsc-watch"
38-
]
39-
}
40-
]
41-
}
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "shell",
6+
"command": "npx nx affected --target=build",
7+
"label": "build",
8+
"problemMatcher": ["$tsc"]
9+
},
10+
{
11+
"type": "npm",
12+
"script": "compile",
13+
"group": "build",
14+
"presentation": {
15+
"panel": "dedicated",
16+
"reveal": "never"
17+
},
18+
"problemMatcher": ["$tsc"]
19+
},
20+
{
21+
"type": "npm",
22+
"script": "watch",
23+
"isBackground": true,
24+
"group": {
25+
"kind": "build",
26+
"isDefault": true
27+
},
28+
"presentation": {
29+
"panel": "dedicated",
30+
"reveal": "never"
31+
},
32+
"problemMatcher": ["$tsc-watch"]
33+
}
34+
]
35+
}

client/project.json

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,30 @@
66
"targets": {
77
"build": {
88
"executor": "@nrwl/js:tsc",
9-
"outputs": [
10-
"{options.outputPath}"
11-
],
9+
"outputs": ["{options.outputPath}"],
1210
"options": {
1311
"outputPath": "dist/client",
1412
"tsConfig": "client/tsconfig.lib.json",
1513
"packageJson": "client/package.json",
1614
"main": "client/src/index.ts",
17-
"assets": [
18-
"client/*.md"
19-
]
15+
"assets": ["client/*.md"]
2016
}
2117
},
2218
"lint": {
2319
"executor": "@nrwl/linter:eslint",
24-
"outputs": [
25-
"{options.outputFile}"
26-
],
20+
"outputs": ["{options.outputFile}"],
2721
"options": {
28-
"lintFilePatterns": [
29-
"client/**/*.ts"
30-
]
22+
"lintFilePatterns": ["client/**/*.ts"]
3123
}
3224
},
3325
"test": {
3426
"executor": "@nrwl/jest:jest",
35-
"outputs": [
36-
"{workspaceRoot}/coverage/{projectRoot}"
37-
],
27+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
3828
"options": {
3929
"jestConfig": "client/jest.config.ts",
4030
"passWithNoTests": true
4131
}
4232
}
4333
},
4434
"tags": []
45-
}
35+
}

client/src/test/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
* ------------------------------------------------------------------------------------------ */
55
import * as path from 'path';
6-
import * as Mocha from 'mocha';
7-
import {glob} from glob
6+
import { glob } from 'glob';
7+
import Mocha = require('mocha');
88

99
export function run(): Promise<void> {
1010
// Create the mocha test

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"@semantic-release/git": "^10.0.1",
5555
"@types/glob": "^8.0.1",
5656
"@types/jest": "28.1.1",
57+
"@types/mocha": "^10.0.1",
5758
"@types/node": "18.7.1",
5859
"@types/vscode": "^1.63.0",
5960
"@typescript-eslint/eslint-plugin": "^5.36.1",

server/README.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

server/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"executor": "@nrwl/js:tsc",
99
"outputs": ["{options.outputPath}"],
1010
"options": {
11-
"outputPath": "dist/./server",
11+
"outputPath": "dist/server",
1212
"tsConfig": "server/tsconfig.lib.json",
1313
"packageJson": "server/package.json",
1414
"main": "server/src/index.ts",

0 commit comments

Comments
 (0)