Skip to content

Commit 3bc5f2d

Browse files
Merge pull request #1 from nathanielCherian/refactor
Refactor
2 parents 2ab5f60 + 26b6101 commit 3bc5f2d

80 files changed

Lines changed: 1243 additions & 10140 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 32 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,34 @@
1-
// A launch configuration that compiles the extension and then opens it inside a new window
1+
// A launch configuration that launches the extension inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
25
{
36
"version": "0.2.0",
4-
"configurations": [
5-
6-
{
7-
"type": "extensionHost",
8-
"request": "launch",
9-
"name": "Launch Client",
10-
"runtimeExecutable": "${execPath}",
11-
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
12-
"outFiles": ["${workspaceRoot}/client/out/**/*.js"],
13-
"preLaunchTask": {
14-
"type": "npm",
15-
"script": "watch"
16-
}
17-
},
18-
{
19-
"type": "node",
20-
"request": "attach",
21-
"name": "Attach to Server",
22-
"port": 6009,
23-
"restart": true,
24-
"outFiles": ["${workspaceRoot}/server/out/**/*.js"]
25-
},
26-
{
27-
"name": "Language Server E2E Test",
28-
"type": "extensionHost",
29-
"request": "launch",
30-
"runtimeExecutable": "${execPath}",
31-
"args": [
32-
"--extensionDevelopmentPath=${workspaceRoot}",
33-
"--extensionTestsPath=${workspaceRoot}/client/out/test/index",
34-
"${workspaceRoot}/client/testFixture"
35-
],
36-
"outFiles": ["${workspaceRoot}/client/out/test/**/*.js"]
37-
}
38-
],
39-
"compounds": [
40-
{
41-
"name": "Client + Server",
42-
"configurations": ["Launch Client", "Attach to Server"]
43-
}
44-
]
45-
}
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+
}

.vscode/settings.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

.vscode/tasks.json

Lines changed: 16 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,18 @@
11
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"type": "npm",
6-
"script": "compile",
7-
"group": "build",
8-
"presentation": {
9-
"panel": "dedicated",
10-
"reveal": "never"
11-
},
12-
"problemMatcher": [
13-
"$tsc"
14-
]
15-
},
16-
{
17-
"type": "npm",
18-
"script": "watch",
19-
"isBackground": true,
20-
"group": {
21-
"kind": "build",
22-
"isDefault": true
23-
},
24-
"presentation": {
25-
"panel": "dedicated",
26-
"reveal": "never"
27-
},
28-
"problemMatcher": [
29-
"$tsc-watch"
30-
]
31-
}
32-
]
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+
]
3318
}

.vscodeignore

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
.vscode/**
2-
**/*.ts
3-
**/*.map
2+
.vscode-test/**
43
.gitignore
5-
**/tsconfig.json
6-
**/tsconfig.base.json
7-
contributing.md
8-
.travis.yml
9-
client/node_modules/**
10-
!client/node_modules/vscode-jsonrpc/**
11-
!client/node_modules/vscode-languageclient/**
12-
!client/node_modules/vscode-languageserver-protocol/**
13-
!client/node_modules/vscode-languageserver-types/**
14-
!client/node_modules/semver/**
4+
vsc-extension-quickstart.md

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Change Log
2+
3+
All notable changes to the "vscode-cashscript" extension will be documented in this file.
4+
5+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6+
7+
## 1.0.0
8+
Initial release of vscode-cashscript. Features:
9+
- Syntax Highlighting
10+
- Auto-Completion
11+
- Snippets
12+
- Linting
13+
- Contract Compilation (press F5 or click "Compile Contract")

README.md

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,38 @@
1-
# vscode-cashscript
2-
3-
## TODO
4-
- [ x ] Snippets
5-
- [ x ] Code Completion
6-
- [ ] Error/type checking
7-
- [ x ] Compile Contract
8-
- [ ] Hover Provider
1+
# vscode-cashscript
2+
3+
Vscode-cashscript provides tools that make it easier for developers to write smart contracts with [cashscript](https://cashscript.org/).
4+
5+
![example of vscode-cashscript](media/p2pkh.gif)
6+
7+
## Features
8+
9+
- Syntax Highlighting
10+
- Auto-Completion
11+
- Snippets
12+
- Linting
13+
- Contract Compilation
14+
15+
## Instructions
16+
17+
Press **F5** or click the "**Compile Contract**" button in the top right. A json file containing the contract artifiact will be created in the same directory with the same name.
18+
19+
## Extension Settings
20+
21+
None available yet.
22+
23+
## Known Issues
24+
25+
Calling out known issues can help limit users opening duplicate issues against your extension.
26+
27+
## Release Notes
28+
29+
Check the [changelog](/CHANGELOG.md) for past releases. Latest stable version:
30+
31+
### 1.0.0
32+
33+
Initial release of vscode-cashscript. Features:
34+
- Syntax Highlighting
35+
- Auto-Completion
36+
- Snippets
37+
- Linting
38+
- Contract Compilation (press F5 or click "Compile Contract")

0 commit comments

Comments
 (0)