Skip to content

Commit 2b996cb

Browse files
authored
fix: fix garbled chars (#150)
1 parent 041557e commit 2b996cb

File tree

9 files changed

+307
-223
lines changed

9 files changed

+307
-223
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[*]
2+
end_of_line = lf

.eslintrc.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@
88
"sourceType": "module",
99
"project": ["./tsconfig.json", "./ui/tsconfig.json", "./test/tsconfig.json"]
1010
},
11-
"rules": {},
11+
"rules": {
12+
"prettier/prettier": [
13+
"error",
14+
{
15+
"endOfLine": "auto"
16+
}
17+
]
18+
},
1219
"ignorePatterns": ["out", "dist", "src/test/**", "**/*.d.ts", "__mocks__/vscode.ts", "src/assets/**"],
1320
"overrides": [
1421
{
@@ -17,5 +24,5 @@
1724
"node": true
1825
}
1926
}
20-
]
27+
]
2128
}

.github/workflows/build-check.yml

Lines changed: 104 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,114 @@
11
name: Build and check the code format
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request_target:
8-
types:
9-
- opened
10-
- synchronize
11-
- reopened
12-
- edited
4+
push:
5+
branches:
6+
- main
7+
pull_request_target:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
- edited
1313
env:
14-
GITLAB_NPM_TOKEN: ${{secrets.GITLAB_NPM_TOKEN}}
14+
GITLAB_NPM_TOKEN: ${{secrets.GITLAB_NPM_TOKEN}}
1515
jobs:
16-
lint:
17-
permissions: read-all
18-
runs-on: ubuntu-latest
19-
strategy:
20-
matrix:
21-
node-version: [16.x]
22-
steps:
23-
- uses: actions/checkout@v2
24-
with:
25-
ref: ${{ github.event.pull_request.head.sha }}
26-
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v2
28-
with:
29-
node-version: ${{ matrix.node-version }}
30-
cache: 'npm'
31-
- name: 'Installing Dependencies'
32-
run: npm ci
33-
- name: 'Linting'
34-
run: npm run lint
35-
- name: 'Testing(Unit)'
36-
run: npm run test:unit
37-
package:
38-
strategy:
39-
matrix:
40-
include:
41-
- os: windows-latest
42-
platform: win32
43-
arch: x64
44-
npm_config_arch: x64
45-
- os: windows-latest
46-
platform: win32
47-
arch: ia32
48-
npm_config_arch: ia32
49-
- os: windows-latest
50-
platform: win32
51-
arch: arm64
52-
npm_config_arch: arm
53-
- os: ubuntu-latest
54-
platform: linux
55-
arch: x64
56-
npm_config_arch: x64
57-
- os: ubuntu-latest
58-
platform: linux
59-
arch: arm64
60-
npm_config_arch: arm64
61-
- os: ubuntu-latest
62-
platform: linux
63-
arch: armhf
64-
npm_config_arch: arm
65-
- os: ubuntu-latest
66-
platform: alpine
67-
arch: x64
68-
npm_config_arch: x64
69-
- os: macos-latest
70-
platform: darwin
71-
arch: x64
72-
npm_config_arch: x64
73-
- os: macos-latest
74-
platform: darwin
75-
arch: arm64
76-
npm_config_arch: arm64
77-
runs-on: ${{ matrix.os }}
78-
needs: lint
79-
env:
80-
npm_config_arch: ${{ matrix.npm_config_arch }}
81-
steps:
82-
- uses: actions/checkout@v2
83-
with:
84-
ref: ${{ github.event.pull_request.head.sha }}
85-
- name: Use Node.js
86-
uses: actions/setup-node@v2
87-
with:
88-
node-version: 16.x
89-
cache: 'npm'
16+
lint:
17+
permissions: read-all
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
node-version: [16.x]
22+
steps:
23+
- uses: actions/checkout@v2
24+
with:
25+
ref: ${{ github.event.pull_request.head.sha }}
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v2
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
cache: "npm"
31+
- name: "Installing Dependencies"
32+
run: npm ci
33+
- name: "Linting"
34+
run: npm run lint
35+
- name: "Testing(Unit)"
36+
run: npm run test:unit
37+
package:
38+
strategy:
39+
matrix:
40+
include:
41+
- os: windows-latest
42+
platform: win32
43+
arch: x64
44+
npm_config_arch: x64
45+
- os: windows-latest
46+
platform: win32
47+
arch: ia32
48+
npm_config_arch: ia32
49+
- os: windows-latest
50+
platform: win32
51+
arch: arm64
52+
npm_config_arch: arm
53+
- os: ubuntu-latest
54+
platform: linux
55+
arch: x64
56+
npm_config_arch: x64
57+
- os: ubuntu-latest
58+
platform: linux
59+
arch: arm64
60+
npm_config_arch: arm64
61+
- os: ubuntu-latest
62+
platform: linux
63+
arch: armhf
64+
npm_config_arch: arm
65+
- os: ubuntu-latest
66+
platform: alpine
67+
arch: x64
68+
npm_config_arch: x64
69+
- os: macos-latest
70+
platform: darwin
71+
arch: x64
72+
npm_config_arch: x64
73+
- os: macos-latest
74+
platform: darwin
75+
arch: arm64
76+
npm_config_arch: arm64
77+
runs-on: ${{ matrix.os }}
78+
needs: lint
79+
env:
80+
npm_config_arch: ${{ matrix.npm_config_arch }}
81+
steps:
82+
- uses: actions/checkout@v2
83+
with:
84+
ref: ${{ github.event.pull_request.head.sha }}
85+
- name: Use Node.js
86+
uses: actions/setup-node@v2
87+
with:
88+
node-version: 16.x
89+
cache: "npm"
9090

91-
- name: 'Installing Dependencies'
92-
run: npm ci
91+
- name: "Installing Dependencies"
92+
run: npm ci
9393

94-
- name: 'Building'
95-
run: npm run package -- --env CLIENTID=${{ secrets.OAUTHCLIENTID }} --env CLIENTSECRET=${{ secrets.OAUTHCLIENTSECRET }} && npm run ui:package
94+
- name: Building
95+
run: npm run package -- --env CLIENTID=${{ secrets.OAUTHCLIENTID }} --env CLIENTSECRET=${{ secrets.OAUTHCLIENTSECRET }} && npm run ui:package
9696

97-
- name: 'Versioning'
98-
id: version
99-
shell: bash
100-
run: echo "VERSION=1.0.0-beta.$(date +%s)" >> $GITHUB_OUTPUT
97+
- name: "Versioning"
98+
id: version
99+
shell: bash
100+
run: echo "VERSION=1.0.0-beta.$(date +%s)" >> $GITHUB_OUTPUT
101101

102-
- id: targeting
103-
name: Targeting
104-
shell: pwsh
105-
run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_OUTPUT
102+
- id: targeting
103+
name: Targeting
104+
shell: pwsh
105+
run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_OUTPUT
106106

107-
- name: 'Packaging'
108-
id: packaging
109-
run: |
110-
npx vsce package --pre-release --target ${{ steps.targeting.outputs.target }} --no-update-package-json --no-git-tag-version ${{ steps.version.outputs.VERSION }}
111-
- uses: actions/upload-artifact@v2
112-
with:
113-
name: ${{ steps.targeting.outputs.target }}
114-
path: '*.vsix'
107+
- name: Packaging
108+
id: packaging
109+
run: |
110+
npx @vscode/vsce package --pre-release --target ${{ steps.targeting.outputs.target }} --no-update-package-json --no-git-tag-version ${{ steps.version.outputs.VERSION }}
111+
- uses: actions/upload-artifact@v2
112+
with:
113+
name: ${{ steps.targeting.outputs.target }}
114+
path: "*.vsix"

0 commit comments

Comments
 (0)