Skip to content

Commit 7444f14

Browse files
authored
Merge pull request #60 from PraneshASP/staging
✨Version 1.5.0
2 parents eb8863f + 4e400ea commit 7444f14

File tree

7 files changed

+1244
-8
lines changed

7 files changed

+1244
-8
lines changed

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ TL;DR, this is my first VSCode extension, so feel free to provide feedback as I
2727
- Auto-complete path suggestions for importing files and dependencies (with forge remappings support).
2828
- Inline code-separator suggestion (solmate and solady style)
2929
- Contract code size decorator.
30+
- Foundry test analysis dashboard (supports per test, per suite or all tests)
3031

3132
---
3233

@@ -57,20 +58,25 @@ The usage of this extension is straightforward.
5758

5859
#### Highlights unused imports:
5960

60-
https://github.com/PraneshASP/vscode-solidity-inspector/assets/42379522/e4906ad3-69e6-4cea-b986-7712ec342fca
61-
61+
<video width="700" height="480" controls>
62+
<source src="https://github.com/PraneshASP/vscode-solidity-inspector/assets/42379522/e4906ad3-69e6-4cea-b986-7712ec342fca">
63+
</video>
6264

6365
---
6466

6567
#### Generate foundry deployment report:
6668

67-
https://github.com/PraneshASP/vscode-solidity-inspector/assets/42379522/cfaf987e-ad91-4927-9042-7562bc8684dc
69+
<video width="700" height="480" controls>
70+
<source src="https://github.com/PraneshASP/vscode-solidity-inspector/assets/42379522/cfaf987e-ad91-4927-9042-7562bc8684dc">
71+
</video>
6872

6973
---
7074

7175
#### Support for `.tree` files and test stub generation:
7276

73-
https://github.com/PraneshASP/vscode-solidity-inspector/assets/42379522/2a3d591b-bc80-46cc-88c9-7e4faa0bb043
77+
<video width="700" height="480" controls>
78+
<source src="https://github.com/PraneshASP/vscode-solidity-inspector/assets/42379522/2a3d591b-bc80-46cc-88c9-7e4faa0bb043">
79+
</video>
7480

7581
---
7682

@@ -86,7 +92,9 @@ https://github.com/PraneshASP/vscode-solidity-inspector/assets/42379522/2a3d591b
8692

8793
#### Inline separator suggestions:
8894

89-
[![]()](https://github.com/user-attachments/assets/abbbd466-520f-464e-aa59-1ba628a57d18)
95+
<video width="700" height="480" controls>
96+
<source src="https://github.com/user-attachments/assets/abbbd466-520f-464e-aa59-1ba628a57d18">
97+
</video>
9098

9199
---
92100

assets/gas-analysis-dashboard.gif

13.7 MB
Loading

package.json

Lines changed: 31 additions & 1 deletion
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.4.1",
5+
"version": "1.5.0",
66
"engines": {
77
"vscode": "^1.72.0"
88
},
@@ -98,6 +98,31 @@
9898
"command": "vscode-solidity-inspector.contextMenu.scaffold",
9999
"title": "Solidity Inspector: scaffold",
100100
"category": "Solidity Inspector"
101+
},
102+
{
103+
"command": "vscode-solidity-inspector.activeFile.gasAnalysis",
104+
"title": "Gas Analysis",
105+
"category": "Solidity Inspector"
106+
},
107+
{
108+
"command": "vscode-solidity-inspector.contextMenu.gasAnalysis",
109+
"title": "SolidityInspector: gas analysis",
110+
"category": "Solidity Inspector"
111+
},
112+
{
113+
"command": "vscode-solidity-inspector.codelens.gasAnalysisAll",
114+
"title": "Gas Analysis - All Tests",
115+
"category": "Solidity Inspector"
116+
},
117+
{
118+
"command": "vscode-solidity-inspector.codelens.gasAnalysisFile",
119+
"title": "Gas Analysis - This File",
120+
"category": "Solidity Inspector"
121+
},
122+
{
123+
"command": "vscode-solidity-inspector.codelens.gasAnalysisTest",
124+
"title": "Gas Analysis - Specific Test",
125+
"category": "Solidity Inspector"
101126
}
102127
],
103128
"configuration": {
@@ -150,6 +175,11 @@
150175
"group": "solidity",
151176
"command": "vscode-solidity-inspector.contextMenu.scaffold",
152177
"when": "resourceFilename =~ /\\.tree/"
178+
},
179+
{
180+
"group": "solidity",
181+
"command": "vscode-solidity-inspector.contextMenu.gasAnalysis",
182+
"when": "resourceLangId == solidity && resourceFilename =~ /\\.t\\.sol/"
153183
}
154184
]
155185
},

0 commit comments

Comments
 (0)