Skip to content

Commit d0050a6

Browse files
committed
fix: readFile should be await
1 parent 6868c85 commit d0050a6

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "float-pigment-css-analyzer",
44
"publisher": "wechat-miniprogram",
55
"description": "float-pigment-css diagnostic information for Visual Studio Code",
6-
"version": "0.4.0",
6+
"version": "0.7.0",
77
"license": "MIT",
88
"engines": {
99
"vscode": "^1.61.0"
@@ -94,7 +94,7 @@
9494
"eslint-plugin-import": "^2.22.1",
9595
"eslint-plugin-prettier": "^4.2.1",
9696
"eslint-plugin-promise": "^4.2.1",
97-
"float-pigment-css": "^0.4.0",
97+
"float-pigment-css": "^0.7.0",
9898
"prettier": "^2.8.3",
9999
"ts-loader": "^9.5.1",
100100
"ts-node": "^10.9.2",

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class Client {
4545

4646
private async checkFile(uri: vscode.Uri): Promise<Uint8Array | null> {
4747
try {
48-
return vscode.workspace.fs.readFile(uri)
48+
return await vscode.workspace.fs.readFile(uri)
4949
} catch {
5050
return null
5151
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* empty */

0 commit comments

Comments
 (0)