Skip to content

Commit 2a6764b

Browse files
authored
Merge pull request #47 from PraneshASP/staging
✨ Version 1.4.0
2 parents 0b39752 + 73b229a commit 2a6764b

File tree

10 files changed

+551
-133
lines changed

10 files changed

+551
-133
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ TL;DR, this is my first VSCode extension, so feel free to provide feedback as I
2525
- Syntax highlighting of for `.tree` files.
2626
- Generate foundry test stub using [bulloak](https://github.com/alexfertel/bulloak)'s `scaffold` command.
2727
- Auto-complete path suggestions for importing files and dependencies (with forge remappings support).
28+
- Inline code-separator suggestion (solmate and solady style)
29+
- Contract code size decorator.
2830

2931
---
3032

@@ -82,6 +84,21 @@ https://github.com/PraneshASP/vscode-solidity-inspector/assets/42379522/2a3d591b
8284

8385
---
8486

87+
#### Inline separator suggestions:
88+
89+
[![]()](https://github.com/user-attachments/assets/abbbd466-520f-464e-aa59-1ba628a57d18)
90+
91+
---
92+
93+
#### Inline contract size decoration:
94+
> [!TIP]
95+
> This uses the `deployedBytecode` object from the build file. So it will get updated only after every build. This setting can be also turned on/off via the extension settings.
96+
97+
![](./assets/inline-contract-size.png)
98+
99+
---
100+
101+
> [!NOTE]
85102
> For more demos, see [./assets](https://github.com/PraneshASP/vscode-solidity-inspector/tree/main/assets)
86103
87104
<!-- CONTRIBUTING -->

assets/inline-contract-size.png

31.2 KB
Loading

package-lock.json

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

package.json

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-solidity-inspector",
33
"displayName": "Solidity Inspector",
44
"description": "A vscode extension used to inspect Solidity files",
5-
"version": "1.3.0",
5+
"version": "1.4.0",
66
"engines": {
77
"vscode": "^1.72.0"
88
},
@@ -33,6 +33,7 @@
3333
"onLanguage:tree"
3434
],
3535
"contributes": {
36+
3637
"commands": [
3738
{
3839
"command": "vscode-solidity-inspector.activeFile.irOptimizer",
@@ -103,7 +104,13 @@
103104
"configuration": {
104105
"type": "object",
105106
"title": "Solidity Inspector",
106-
"properties": {}
107+
"properties": {
108+
"solidityInspector.showContractSize": {
109+
"type": "boolean",
110+
"default": true,
111+
"description": "Show contract size information in the editor"
112+
}
113+
}
107114
},
108115
"keybindings": [
109116
{
@@ -147,6 +154,16 @@
147154
}
148155
]
149156
},
157+
"statusBar": [
158+
{
159+
"id": "deploymentReportStatus",
160+
"alignment": "right",
161+
"priority": 100,
162+
"command": "vscode-solidity-inspector.statusBar.generateDeploymentReport",
163+
"text": "$(file-code) Deployment summary",
164+
"tooltip": "View Deployment results in a table format"
165+
}
166+
],
150167
"grammars": [
151168
{
152169
"language": "tree",
@@ -176,6 +193,8 @@
176193
"typescript": "^4.8.4"
177194
},
178195
"dependencies": {
179-
"cli-table3": "^0.6.3"
196+
"cli-table3": "^0.6.3",
197+
"path": "^0.12.7",
198+
"solc": "^0.8.26"
180199
}
181-
}
200+
}

0 commit comments

Comments
 (0)