Skip to content

Commit af5bade

Browse files
committed
tweaks in metadata and improved ReadMe
1 parent 5a15ced commit af5bade

File tree

5 files changed

+69
-26
lines changed

5 files changed

+69
-26
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
out
2-
node_modules
2+
build
3+
node_modules

LICENSE.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11

2-
Copyright (c) Microsoft Corporation
2+
Copyright (c) Chainbloq Labs Inc
33

4-
All rights reserved.
4+
All rights reserved.
55

66
MIT License
77

8-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
9-
files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
10-
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
11-
is furnished to do so, subject to the following conditions:
8+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
9+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
10+
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
11+
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1212

13-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13+
The above copyright notice and this permission notice shall be included in all copies or substantial portions
14+
of the Software.
1415

15-
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
16-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
17-
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
18-
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
17+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
19+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20+
DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,55 @@
11
# VS Code Solidity Comments extension
2-
Adds NatSpec compliant @notice, @dev, @param and @return tags for function and modifier signatures in Solidity files.
2+
3+
This extension simplifies addition of NatSpec compliant @author, @title, @notice, @dev, @param and @return tags in Solidity files.
34

45
## Installation
5-
Currently, the solidity-comments VS Code extension is installed from a VSIX file only.
6+
7+
Currently, the solidity-comments VS Code extension is installed from a VSIX file only. The VSIX file can be downloaded from the [release page](https://github.com/Dexalot/vscode-solidity-comments/releases) on GitHub.
68

79
Go to `Extensions` tab and click the `...` at the top.
810

9-
Select `Install from VSIX`.
11+
Select `Install from VSIX` and point the file selector dialog to the downloaded VSIX file.
1012

1113
## Using
12-
In a Solidity file, move the cursor to a line with a function or modifier signature.
1314

14-
Invoke the `Add Solidity Comments` extension
15-
- Open the command palette wit `F1` or `ctrl+shift+p` on Windows and find `Add Solidity Comments`. Hit enter.
16-
- Alternatively, you can use the keybindings `ctrl+alt+d` on Windows and `shift+cmd+d` on Mac.
15+
* In a Solidity file, move the cursor to a line with a contract, interface, library, function or modifier keywords.
16+
17+
* Invoke the `Add Solidity Comments` extension
18+
- Open the command palette wit `F1` or `ctrl+shift+p` on Windows and find `Add Solidity Comments`. Hit enter.
19+
- Alternatively, you can use the keybindings `ctrl+alt+d` on Windows and `shift+cmd+d` on Mac.
20+
21+
* The extension will parse the signature on the line of the cursor and add NatSpec doc comments above the line.
22+
23+
For contract, interface and library keywords the extension adds a header as follows:
24+
25+
```
26+
/**
27+
* @author .
28+
* @title .
29+
* @dev .
30+
* @notice .
31+
*/
32+
```
1733
18-
The extension will parse the signature on the line of the cursor. A stub with @notice, @dev, @param and @return tags for each parameter and return variables will be added directly above the line.
34+
For function and modifier keywords the extension adds comments as follows:
35+
36+
```
37+
/**
38+
* @notice .
39+
* @dev .
40+
* @param _address .
41+
* @return bool .
42+
*/
43+
```
1944
2045
## Limitations
21-
The extension does not support any other type of NatSpec tags. It only uses @notice, @dev, @param and @return
46+
47+
The extension does not support any other type of NatSpec tags. It only uses @title, @author, @notice, @dev, @param and @return tags.
48+
49+
## Support
50+
51+
Please use the extension at your own risk as is knowing that there is no active support for it.
52+
53+
If you have a feature request or bug report you can open an issue from the [issues page](https://github.com/Dexalot/vscode-solidity-comments/issues) on GitHub.
54+
55+
Please note that there is no promise that these issues will be prioritized among other projects.
-26.3 KB
Binary file not shown.

package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
"bugs": {
1212
"url": "https://github.com/Dexalot/vscode-solidity-comments/issues"
1313
},
14+
"contributors": [
15+
{
16+
"name" : "M. Nihat Gurmen",
17+
"email" : "ngurmen@chainbloq.com"
18+
}
19+
],
1420
"homepage": "https://github.com/Dexalot/vscode-solidity-comments/blob/master/README.md",
1521
"repository": {
1622
"type": "git",
@@ -19,10 +25,10 @@
1925
"categories": [
2026
"Other"
2127
],
22-
"version": "1.0.0",
23-
"publisher": "dexalot",
28+
"version": "1.0.1",
29+
"publisher": "chainbloq",
2430
"engines": {
25-
"vscode": "0.10.0"
31+
"vscode": "^0.10.0"
2632
},
2733
"main": "./out/extension",
2834
"activationEvents": [
@@ -46,10 +52,10 @@
4652
"scripts": {
4753
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
4854
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
49-
"build": "mkdir -p build && vsce package --out build/"
55+
"build": "rm -fr build && mkdir build && vsce package --out build/"
5056
},
5157
"devDependencies": {
52-
"vscode": "0.10.0"
58+
"vscode": "^0.10.0"
5359
},
5460
"dependencies": {
5561
"indent-string": "^2.1.0"

0 commit comments

Comments
 (0)