Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Commit e5e9251

Browse files
xhulzmichaeljohnbennettkevinbluer
authored
Release/v2.6.0 (#247)
* Dedicated tab(s) in VS Code panel (#205) * feat: implementing the new truffle panel log * build: multi tab has been implemented * build: dead code has been removed * build: dispose tab and onview activation has implemented * refactor: main.js has converted to object * docs: ts documentation and code comments has been added * fix: code review resolutions * fix: required.test has been fixed * fix: change gfx (#215) Bryan supplied a revised logo image san's dropshadow. * Remove redundant txns from dialog after a redeploy (#225) fix: the debug transaction dropdown is now showing only the last deployed transaction * New solidity project types has added: empty, sample and unbox a truffle project (#222) * feat: new types of project were added to create a new project * fix: folder projectPath has been vanish out * Networks (Local Instance) - Get More Information (#217) * feat: saving progress * feat: saving the progress * feat: saving the progress * feat: it has been created the option to get details for ganache instances * fix: problems pointed out in the code review have been fixed Co-authored-by: MB <[email protected]> * Fix/directory selection flow (#226) * feat: new types of project were added to create a new project * fix: folder projectPath has been vanish out * fix: the directory selection has moved to the end of the flow * fix: truffle box sample project name variable has changed * Dropdown when selecting a box to "unbox" (#220) chore: the textbox has been replaced by a dropdown with the list of boxes * Create an "auto-deploy on save" toggle in the Contract Explorer (#227) * chore: saving the progress * chore: status bar for auto deploy was placed on vscode environment * chore: auto deploy action has been implemented for contracts * fix: remove auto focus from log panel (#233) fix: auto focus from log panel has been removed * Fix: Debug no source file (#229) * fix: truffle compile has been added to gather the artifacts compilation in correct way * fix: drizzle has been removed from truffle boxes list * docs: the typescript docs has been created * fix: typo * fix: pretting missing code * fix: references no longer used have been removed * fix: namespace from contract helpers has been removed * fix: suggestions from code review have been implemented * Spurious closing bracket on "Create sample project" entry when creating a new project (#238) fix: the sample project description text has been fixed * Temporarily continue logging to the Truffle for VS Code output channel (#237) * chore: logging using output channels has been implemented again * fix: auto focus has been removed from log create and log dispose * fix: the focus on output channels has been restaured * fix: minor stylistic tweaks to output tabs (#240) * fix: minor stylistic tweaks to output tabs * fix: output tab accommodations for light(er) modes * Changelog has been updated with new features (#242) * chore: changelog has been updated with new features * fix: text has been changed * Fix: original-require package issues (#243) fix: webpack has been updated to solve the problem with original-require package * Fix: Webpack options (#245) fix: devtool has changed to eval instead source-map Co-authored-by: MB <[email protected]> Co-authored-by: Kevin Bluer <[email protected]>
1 parent 1daff9c commit e5e9251

Some content is hidden

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

54 files changed

+4527
-2607
lines changed

.prettierrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"arrowParens": "always",
55
"semi": true,
66
"quoteProps": "as-needed",
7-
"singleQuote": true
7+
"singleQuote": true,
8+
"bracketSpacing": false
89
}

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22

33
All notable changes to the "Truffle for VSCode" extension will be documented in this file.
44

5+
## 2.6.0 - _Arbequina_ 🌳
6+
7+
This release brings a number of new features including an improved new project workflow, an information tab for your locally running Ganache instances, and a dedicated panel for all logging out from Truffle, Ganache and Dashboard. It also includes a fix for the debugger wherein it was unable to find the source files (resulting in a 'No source file" error) and range of smaller fixes and optimizations.
8+
9+
Give it a try and let us know what you think!
10+
11+
### What's Changed
12+
13+
- Dropdown when selecting a box to "unbox" [\#220](https://github.com/trufflesuite/vscode-ext/pull/220) ([xhulz](https://github.com/xhulz))
14+
- Dedicated tab(s) in VS Code panel [\#205](https://github.com/trufflesuite/vscode-ext/pull/205) ([xhulz](https://github.com/xhulz))
15+
- Networks (Local Instance) - Get More Information [\#217](https://github.com/trufflesuite/vscode-ext/pull/217) ([xhulz](https://github.com/xhulz))
16+
- Fix Truffle Logo [\#215](https://github.com/trufflesuite/vscode-ext/pull/215) ([michaeljohnbennett](https://github.com/michaeljohnbennett))
17+
- Remove redundant txns from dialog after a redeploy [\#225](https://github.com/trufflesuite/vscode-ext/pull/225) ([xhulz](https://github.com/xhulz))
18+
- Have new project match truffle init [\#222](https://github.com/trufflesuite/vscode-ext/pull/222) ([xhulz](https://github.com/xhulz))
19+
- Create an "auto-deploy on save" toggle in the Contract Explorer [\#227](https://github.com/trufflesuite/vscode-ext/pull/227) ([xhulz](https://github.com/xhulz))
20+
- Debugger loading incorrect source file or throwing "No source file" error [\#229](https://github.com/trufflesuite/vscode-ext/pull/229) ([xhulz](https://github.com/xhulz))
21+
- Spurious closing bracket on "Create sample project" entry when creating a new project [\#238](https://github.com/trufflesuite/vscode-ext/pull/238) ([xhulz](https://github.com/xhulz))
22+
- Temporarily continue logging to the Truffle for VS Code output channel [\#237](https://github.com/trufflesuite/vscode-ext/pull/237) ([xhulz](https://github.com/xhulz))
23+
- Minor stylistic tweaks to output tabs [\#240](https://github.com/trufflesuite/vscode-ext/pull/240) ([kevinbluer](https://github.com/kevinbluer))
24+
525
## 2.5.0 - _Haiku_ 😈
626

727
This release has improved support to debug over a forked network and working with multiple Truffle projects in the same workspace.

images/TruffleLogo.png

-6.36 KB
Loading

images/dashboard-log.png

38.1 KB
Loading

images/ganache-log.png

15.1 KB
Loading

images/truffle-log.png

28 KB
Loading

package.json

+47-9
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"activationEvents": [
3939
"onView:truffle-vscode.truffle",
4040
"onView:truffle-vscode.explorer-view",
41+
"onView:truffle-vscode.panel.log",
4142
"onCommand:truffle-vscode.showWelcomePage",
4243
"onCommand:truffle-vscode.showRequirementsPage",
4344
"onCommand:truffle-vscode.refresh",
@@ -191,6 +192,11 @@
191192
"title": "Restart Ganache",
192193
"category": "Truffle"
193194
},
195+
{
196+
"command": "truffle-vscode.getGanacheServerInfo",
197+
"title": "Get Details...",
198+
"category": "Truffle"
199+
},
194200
{
195201
"command": "truffle-vscode.signInToInfuraAccount",
196202
"title": "Sign in to Infura account",
@@ -252,6 +258,11 @@
252258
"command": "truffle-vscode.views.dashboard.copyRPCEndpointAddress",
253259
"title": "Copy RPC Endpoint Address",
254260
"category": "Truffle"
261+
},
262+
{
263+
"command": "truffle-vscode.contracts.deployOnSave",
264+
"title": "Deploy the contract when it is saved",
265+
"category": "Truffle"
255266
}
256267
],
257268
"breakpoints": [
@@ -303,6 +314,14 @@
303314
{
304315
"when": "false",
305316
"command": "truffle-vscode.buildSingleContract"
317+
},
318+
{
319+
"when": "false",
320+
"command": "truffle-vscode.getGanacheServerInfo"
321+
},
322+
{
323+
"when": "false",
324+
"command": "truffle-vscode.contracts.deployOnSave"
306325
}
307326
],
308327
"view/title": [
@@ -360,6 +379,11 @@
360379
"when": "view == truffle-vscode.truffle && viewItem == project",
361380
"group": "truffle-0@0"
362381
},
382+
{
383+
"command": "truffle-vscode.disconnectProject",
384+
"when": "view == truffle-vscode.truffle && viewItem == localproject",
385+
"group": "truffle-0@0"
386+
},
363387
{
364388
"command": "truffle-vscode.startGanacheServer",
365389
"when": "view == truffle-vscode.truffle && viewItem == localproject",
@@ -376,14 +400,9 @@
376400
"group": "truffle-1@2"
377401
},
378402
{
379-
"command": "truffle-vscode.disconnectProject",
403+
"command": "truffle-vscode.getGanacheServerInfo",
380404
"when": "view == truffle-vscode.truffle && viewItem == localproject",
381-
"group": "truffle-0@0"
382-
},
383-
{
384-
"command": "truffle-vscode.disconnectProject",
385-
"when": "view == truffle-vscode.truffle && viewItem == bdmproject",
386-
"group": "truffle-0@0"
405+
"group": "truffle-2@0"
387406
},
388407
{
389408
"command": "truffle-vscode.copyRPCEndpointAddress",
@@ -524,6 +543,15 @@
524543
"contextualTitle": "Help & Feedback section"
525544
}
526545
],
546+
"truffle-panel": [
547+
{
548+
"type": "webview",
549+
"id": "truffle-vscode.panel.log",
550+
"name": "",
551+
"contextualTitle": "Truffle",
552+
"icon": "images/views/history.svg"
553+
}
554+
],
527555
"debug": [
528556
{
529557
"id": "truffle-vscode.InstructionView",
@@ -611,6 +639,13 @@
611639
"title": "Truffle",
612640
"icon": "images/truffle.svg"
613641
}
642+
],
643+
"panel": [
644+
{
645+
"id": "truffle-panel",
646+
"title": "Truffle",
647+
"icon": "images/truffle.svg"
648+
}
614649
]
615650
},
616651
"walkthroughs": [
@@ -757,7 +792,7 @@
757792
"remap-istanbul": "^0.13.0",
758793
"rewire": "^4.0.1",
759794
"sinon": "^7.3.2",
760-
"truffle": "^5.5.18",
795+
"truffle": "^5.5.30",
761796
"ts-loader": "9.3.1",
762797
"ts-node": "^10.8.1",
763798
"ts-patch": "^2.0.1",
@@ -770,11 +805,14 @@
770805
"webpack-merge": "^5.8.0"
771806
},
772807
"dependencies": {
773-
"@truffle/codec": "^0.13.1",
808+
"@truffle/codec": "^0.14.5",
809+
"@truffle/compile-common": "0.8.1",
774810
"@truffle/compile-solidity": "^6.0.31",
811+
"@truffle/config": "1.3.38",
775812
"@truffle/debug-utils": "^6.0.26",
776813
"@truffle/debugger": "^10.0.14",
777814
"@truffle/resolver": "^9.0.4",
815+
"@truffle/workflow-compile": "^4.0.36",
778816
"abi-decoder": "^2.4.0",
779817
"acorn": "^8.7.1",
780818
"acorn-walk": "^8.2.0",

polyfills/original-require.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = eval('require');
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
+13
Loading
Loading
Loading
Loading

resources/ganache/index.html

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta
7+
http-equiv="Cache-Control"
8+
content="no-cache, no-store, must-revalidate"
9+
/>
10+
<meta http-equiv="Pragma" content="no-cache" />
11+
<meta http-equiv="Expires" content="0" />
12+
13+
<link rel="stylesheet" href="{{root}}/resources/ganache/main.css" />
14+
<title>Ganache Details</title>
15+
</head>
16+
17+
<body>
18+
<div>
19+
<div class="StatusAndControls">
20+
<div class="Status">
21+
<div class="StatusIndicator">
22+
<div class="Metric">
23+
<div>CURRENT BLOCK</div>
24+
<span id="current.block"></span>
25+
</div>
26+
</div>
27+
<div class="StatusIndicator">
28+
<div class="Metric">
29+
<div>GAS PRICE</div>
30+
<span id="gas.price"></span>
31+
</div>
32+
</div>
33+
<div class="StatusIndicator">
34+
<div class="Metric">
35+
<div>GAS LIMIT</div>
36+
<span id="gas.limit"></span>
37+
</div>
38+
</div>
39+
<div class="StatusIndicator">
40+
<div class="Metric">
41+
<div>NETWORK ID</div>
42+
<span id="network.id"></span>
43+
</div>
44+
</div>
45+
<div class="StatusIndicator">
46+
<div class="Metric">
47+
<div>RPC SERVER</div>
48+
<span id="rpc.server"></span>
49+
</div>
50+
</div>
51+
<div class="StatusIndicator">
52+
<div class="Metric">
53+
<button class="Button" id="btn.refresh">
54+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
55+
<g
56+
fill="none"
57+
stroke="#444"
58+
stroke-width="2"
59+
stroke-miterlimit="10"
60+
>
61+
<path
62+
d="M3 16c0 7.2 5.8 13 13 13s13-5.8 13-13S23.2 3 16 3c-5.2 0-9.9 3.2-11.9 7.7"
63+
></path>
64+
<path
65+
stroke-linecap="square"
66+
d="M3.2 3.8l.9 6.9 6.9-.9"
67+
></path>
68+
</g></svg
69+
>REFRESH
70+
</button>
71+
</div>
72+
</div>
73+
</div>
74+
</div>
75+
<div class="AccountCard" id="txs.container"></div>
76+
</div>
77+
<script src="{{root}}/resources/ganache/main.js"></script>
78+
</body>
79+
</html>

0 commit comments

Comments
 (0)