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

Commit 1daff9c

Browse files
authored
Merge pull request #224 from trufflesuite/develop
`2.5.0` release into `master`
2 parents 638708a + f11a9e8 commit 1daff9c

File tree

87 files changed

+1656
-1512
lines changed

Some content is hidden

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

87 files changed

+1656
-1512
lines changed

.github/pull_request_template.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## PR description
2+
3+
<!-- Enter PR description here -->
4+
5+
## Documentation
6+
7+
- [ ] I thought about documentation and added the `doc-change-required` label to this PR if documentation updates are required.

.github/workflows/core-ci-checks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
run: yarn eslint
2727

2828
- name: Tests
29-
run: yarn test
29+
run: yarn test:int

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: yarn install --immutable --immutable-cache --check-cache
6262

6363
- name: run tests
64-
run: yarn test
64+
run: yarn test:int
6565

6666
- name: update metadata in package.json
6767
uses: onlyutkarsh/[email protected]

.mocharc.js

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/**
2+
* This configuration[1] is used when `mocha` is invoked directly
3+
* from the command line.
4+
*
5+
* Note that this configuration does not affect tests
6+
* when they are executed through `runTests`.
7+
*
8+
* [1] https://mochajs.org/#configuring-mocha-nodejs
9+
*/
10+
module.exports = {
11+
/**
12+
* From `mocha -h`
13+
*
14+
* ```txt
15+
* --require, -r Require module [array] [default: (none)]
16+
* ```
17+
*/
18+
require: [
19+
// We use `ts-node/register`[1] to run our tests without compiling them.
20+
//
21+
// [1] https://typestrong.org/ts-node/docs/recipes/mocha/#mocha-7-and-newer.
22+
'ts-node/register',
23+
24+
// This option is used to provide a drop-in replacement for the `vscode` module.
25+
// When running `mocha` tests without a VS Code Development Extension Host[1],
26+
// the `vscode` module is not available, so we need to provide a test replacement.
27+
//
28+
// See `test/vscode-register.ts` for more details on how this is implemented.
29+
//
30+
// This answer[2]'s 'bonus track' section was used as a inspiration for this method,
31+
// to run code before the tests begin.
32+
//
33+
// [1] https://code.visualstudio.com/api/working-with-extensions/testing-extension
34+
// [2] https://stackoverflow.com/questions/10561598/global-before-and-beforeeach-for-mocha/51152004#51152004
35+
'test/vscode-register.ts',
36+
],
37+
38+
/**
39+
* From `mocha -h`
40+
*
41+
* ```txt
42+
* spec One or more files, directories, or globs to test
43+
* [array] [default: ["test"]]
44+
* ```
45+
*/
46+
spec: [
47+
// These are the same test files covered by the VS Code Host test runner.
48+
'test/**/*.test.ts',
49+
],
50+
};

.vscodeignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@
33
.vscode/**
44
.vscode-test/**
55
coverage/**
6-
drizzleUI/**
76
node_modules/**
87
out/**
98
!out/src/mscorlib.js
109
!out/src/Nethereum.Generators.DuoCode.js
1110
!out/src/extension.js
1211
!out/src/debugger.js
13-
!out/src/web3ProviderResolver.js
1412
!out/src/checkTruffleConfigTemplate.js
1513
src/**
1614
test/**
17-
ui-test/**
1815
.editorconfig
1916
.gitignore
2017
.npmignore
@@ -23,6 +20,7 @@ ui-test/**
2320
**/*.map
2421
**/*.ts
2522
**/webpack.*.js
23+
**/.mocharc.js
2624
**/coverconfig.json
2725
.husky/**
2826
**/GitVersion.yml

CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22

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

5+
## 2.5.0 - _Haiku_ 😈
6+
7+
This release has improved support to debug over a forked network and working with multiple Truffle projects in the same workspace.
8+
The brand new Walkthrough helps users to explore and discover the main features of the extension.
9+
Moreover, it has some bug fixes, internal optimisations, and code refactor for better maintainability.
10+
11+
Give it a try and let us know what you think!
12+
13+
### What's Changed
14+
15+
- Ability to debug over a forked network [\#186](https://github.com/trufflesuite/vscode-ext/pull/186) ([xhulz](https://github.com/xhulz))
16+
- Use `contracts_directory` from Truffle config in `Create Contract` command [\#193](https://github.com/trufflesuite/vscode-ext/pull/193) ([acuarica](https://github.com/acuarica))
17+
- Fix Command Palette display filter for Build/Deploy/Create Contracts commands [\#192](https://github.com/trufflesuite/vscode-ext/pull/192) ([acuarica](https://github.com/acuarica))
18+
- Add support to run out tests without VS Code Development Extension Host [\#191](https://github.com/trufflesuite/vscode-ext/pull/191) ([acuarica](https://github.com/acuarica))
19+
- Add support for multiple Truffle config files [\#181](https://github.com/trufflesuite/vscode-ext/pull/181) ([acuarica](https://github.com/acuarica))
20+
- Honor the `contract_build_directory` property in Deployments view [\#179](https://github.com/trufflesuite/vscode-ext/pull/179) ([acuarica](https://github.com/acuarica))
21+
- Ability to compile a single contract [\#177](https://github.com/trufflesuite/vscode-ext/pull/177) ([xhulz](https://github.com/xhulz))
22+
- Dashboard link has added to dashboard view panel [\#172](https://github.com/trufflesuite/vscode-ext/pull/172) ([xhulz](https://github.com/xhulz))
23+
- Debug only works with Ganache Development Instance [\#170](https://github.com/trufflesuite/vscode-ext/pull/170) ([xhulz](https://github.com/xhulz))
24+
- Add a Walkthrough on the Getting Started splash [\#148](https://github.com/trufflesuite/vscode-ext/pull/148) ([acuarica](https://github.com/acuarica))
25+
- Replace `open` package with `vscode.env.openExternal` [\#195](https://github.com/trufflesuite/vscode-ext/pull/195) ([acuarica](https://github.com/acuarica))
26+
- Always use the embedded Debug Adapter [\#218](https://github.com/trufflesuite/vscode-ext/pull/218) ([acuarica](https://github.com/acuarica))
27+
528
## 2.4.0 - _Goblins_ 😈
629

730
This release has some fixes around internal optimisations for our CI/Linting and cleanup of code where we were seeing issues with building contracts in mono repos etc.

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ besu: {
142142

143143
## Development
144144

145-
We welcome pull requests. To get started, just fork this repo, clone it locally, and run:
145+
We welcome pull requests.
146+
To get started, just fork this repo, clone it locally, and run:
146147

147148
```shell
148149
# Install
@@ -151,6 +152,9 @@ yarn install
151152

152153
# Test
153154
yarn test
155+
156+
# Integration Test
157+
yarn test:int
154158
```
155159

156160
There are more docs online at the VS Code website on how to develop plugins at the [VS Code Docs - Extension API](https://code.visualstudio.com/api).
85.2 KB
Loading
103 KB
Loading
866 KB
Loading

0 commit comments

Comments
 (0)