Skip to content

Commit ba5a04a

Browse files
committed
Move to yarn and add prettier for formatting + apply formatting
1 parent 693a7fa commit ba5a04a

29 files changed

Lines changed: 8340 additions & 7797 deletions

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@ client/server
55
*.vsix
66
examples/*.json
77
**/.antlr
8+
9+
# Yarn files
10+
.yarn/*
11+
!.yarn/patches
12+
!.yarn/plugins
13+
!.yarn/releases
14+
!.yarn/sdks
15+
!.yarn/versions

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
out
2+
.yarn

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 120
4+
}

.vscode/launch.json

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,26 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"runtimeExecutable": "${execPath}",
13-
"args": [
14-
"--extensionDevelopmentPath=${workspaceFolder}"
15-
],
16-
"sourceMaps": true,
17-
"outFiles": [
18-
"${workspaceFolder}/out/src/**/*.js"
19-
],
20-
"preLaunchTask": "npm: watch",
21-
"stopOnEntry": false
22-
},
23-
{
24-
"type": "node",
25-
"request": "attach",
26-
"name": "Attach to Server",
27-
"port": 6009,
28-
"restart": true,
29-
"outFiles": [
30-
"${workspaceRoot}/out/src/**/*.js"
31-
]
32-
}
33-
]
34-
}
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14+
"sourceMaps": true,
15+
"outFiles": ["${workspaceFolder}/out/src/**/*.js"],
16+
"preLaunchTask": "npm: watch",
17+
"stopOnEntry": false
18+
},
19+
{
20+
"type": "node",
21+
"request": "attach",
22+
"name": "Attach to Server",
23+
"port": 6009,
24+
"restart": true,
25+
"outFiles": ["${workspaceRoot}/out/src/**/*.js"]
26+
}
27+
]
28+
}

.vscode/tasks.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"type": "npm",
6-
"script": "watch",
7-
"problemMatcher": "$tsc-watch",
8-
"isBackground": true,
9-
"presentation": {
10-
"reveal": "never"
11-
},
12-
"group": {
13-
"kind": "build",
14-
"isDefault": true
15-
}
16-
}
17-
]
18-
}
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "watch",
7+
"problemMatcher": "$tsc-watch",
8+
"isBackground": true,
9+
"presentation": {
10+
"reveal": "never"
11+
},
12+
"group": {
13+
"kind": "build",
14+
"isDefault": true
15+
}
16+
}
17+
]
18+
}

.yarn/releases/yarn-4.6.0.cjs

Lines changed: 934 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.6.0.cjs

CHANGELOG.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,31 @@
33
All notable changes to the "vscode-cashscript" extension will be documented in this file.
44

55
## 0.1.0
6+
67
Initial release of vscode-cashscript. Features:
8+
79
- Syntax Highlighting
810
- Auto-Completion
911
- Snippets
1012
- Linting
1113
- Contract Compilation (press F5 or click "Compile Contract")
12-
Would like to implement tests and other sustainability features before bumping version
14+
Would like to implement tests and other sustainability features before bumping version
1315

1416
## 0.1.1
17+
1518
- Fixed language grammar to have comprehensive highlighting
1619
- Added janky HoverProvider for variable types
1720
- Added split/reverse to hover provider
1821

1922
## 0.1.2
23+
2024
- Added tx to completion provider and syntax highlighting
2125
- added byte alias for bytes1
2226

2327
## 0.2.0
24-
- Compatible with ```cashscript@0.7.0```
25-
- Updated to new Native Introspection functionality
26-
- Added tuple destructuring
27-
- Added new ```constant``` keyword
28-
- Added ```*``` operator
29-
28+
29+
- Compatible with `cashscript@0.7.0`
30+
- Updated to new Native Introspection functionality
31+
- Added tuple destructuring
32+
- Added new `constant` keyword
33+
- Added `*` operator

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ None available yet.
5454
Check the [changelog](/CHANGELOG.md) for past releases. Latest stable version:
5555

5656
## 0.2.0
57-
- Compatible with ```cashscript@0.7.0```
58-
- Updated to new Native Introspection functionality
59-
- Added tuple destructuring
60-
- Added new ```constant``` keyword
61-
- Added ```'*'``` operator
57+
58+
- Compatible with `cashscript@0.7.0`
59+
- Updated to new Native Introspection functionality
60+
- Added tuple destructuring
61+
- Added new `constant` keyword
62+
- Added `'*'` operator

cashscript.configuration.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
"comments": {
3-
"lineComment": "//",
4-
"blockComment": [ "/*", "*/" ]
5-
},
6-
"brackets": [
7-
["{", "}"],
8-
["[", "]"],
9-
["(", ")"]
10-
],
11-
"autoClosingPairs": [
12-
{ "open": "{", "close": "}" },
13-
{ "open": "[", "close": "]" },
14-
{ "open": "(", "close": ")" },
15-
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
16-
{ "open": "\"", "close": "\"", "notIn": ["string"] },
17-
{ "open": "/*", "close": " */", "notIn": ["string"] }
18-
],
19-
"surroundingPairs": [
20-
["{", "}"],
21-
["[", "]"],
22-
["(", ")"],
23-
["\"", "\""],
24-
["'", "'"]
25-
]
26-
}
2+
"comments": {
3+
"lineComment": "//",
4+
"blockComment": ["/*", "*/"]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"],
9+
["(", ")"]
10+
],
11+
"autoClosingPairs": [
12+
{ "open": "{", "close": "}" },
13+
{ "open": "[", "close": "]" },
14+
{ "open": "(", "close": ")" },
15+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
16+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
17+
{ "open": "/*", "close": " */", "notIn": ["string"] }
18+
],
19+
"surroundingPairs": [
20+
["{", "}"],
21+
["[", "]"],
22+
["(", ")"],
23+
["\"", "\""],
24+
["'", "'"]
25+
]
26+
}

0 commit comments

Comments
 (0)