Skip to content

Commit

Permalink
整理代码
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Nov 6, 2024
1 parent 781bdee commit 455cabc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Compile Client
shell: bash
run: |
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/y3-editor/y3-helper"
},
"engines": {
"vscode": "^1.90.0"
"vscode": "^1.92.0"
},
"categories": [
"Other"
Expand Down Expand Up @@ -468,7 +468,7 @@
"@types/module-alias": "^2.0.4",
"@types/node": "^18.19.18",
"@types/uuid": "^9.0.8",
"@types/vscode": "^1.90.0",
"@types/vscode": "^1.92.0",
"@types/winreg": "^1.2.34",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
Expand Down
2 changes: 1 addition & 1 deletion src/tools/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function writeFile(uri: vscode.Uri | string, ...args: any[]) {
data = args[1];
}
try {
await vscode.workspace.fs.writeFile(uri, new Uint8Array(Buffer.from(data)));
await vscode.workspace.fs.writeFile(uri, new TextEncoder().encode(data));
return true;
} catch {
return false;
Expand Down

0 comments on commit 455cabc

Please sign in to comment.