Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Nov 16, 2023
1 parent fcf3c41 commit 465edb8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ It also includes an End-to-End test.

## Introduction

Rain Language server works for rain files with `.rain` extentions, example:
Rain Language server works for rain files with `.rain` extentions (utf8 encoded), example:
```rainlang
@ dispair 0x78fd1edb0bdb928db6015990fecafbb964b44692e2d435693062dd4efc6254dd
@ contmeta 0x56ffc3fc82109c33f1e1544157a70144fc15e7c6e9ae9c65a636fd165b1bc51c
Expand Down
12 changes: 7 additions & 5 deletions client/src/browserClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,12 +538,14 @@ async function sleep(ms: number) {
);
}

function stringToUint8Array(text: string): Uint8Array {
const encoder = new TextEncoder();
return encoder.encode(text);
}

function uint8ArrayToString(uint8array: Uint8Array): string {
let str = "";
for (let i = 0; i < uint8array.length; i++) {
str = str + String.fromCharCode(uint8array[i]);
}
return str;
const decoder = new TextDecoder();
return decoder.decode(uint8array);
}

function hexlify(data: Uint8Array): string {
Expand Down
30 changes: 15 additions & 15 deletions server/package-lock.json

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

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "https://github.com/rainprotocol/rainlang-vscode/issues"
},
"dependencies": {
"@rainprotocol/rainlang": "^5.1.0",
"@rainprotocol/rainlang": "^5.1.1",
"vscode-languageserver": "^8.1.0"
},
"devDependencies": {
Expand Down

0 comments on commit 465edb8

Please sign in to comment.