This repository was archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Feature/command provider poc #204
Draft
michaeljohnbennett
wants to merge
24
commits into
develop
Choose a base branch
from
feature/command-provider-poc
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 17 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
001c69d
feat: command provider poc
michaeljohnbennett 0ed7d89
fix: adding in tests and typings to make chai/mocha work
michaeljohnbennett dabb72a
Merge remote-tracking branch 'origin/develop' into feature/command-pr…
michaeljohnbennett af4eaaa
fix: adjusting provider
michaeljohnbennett e8c58b6
fix: adjusting provider
michaeljohnbennett 8126c63
Merge remote-tracking branch 'origin/develop' into feature/command-pr…
michaeljohnbennett 2e804e2
fix: rework again after merging
michaeljohnbennett 27f20a7
fix: added logging wrapper
michaeljohnbennett b13ae39
Merge remote-tracking branch 'origin/develop' into feature/command-pr…
michaeljohnbennett b8904b6
fix: added in compiler
michaeljohnbennett 18b9882
fix: cleanup comments
michaeljohnbennett 5d84c97
fix: merging in changes from develop
michaeljohnbennett ecd92be
fix: logging fixed
michaeljohnbennett e002cb6
fix: project based compilation working
michaeljohnbennett b8f3da9
fix: cleaning up code
michaeljohnbennett 9ae11c7
fix: lots of refactoring
michaeljohnbennett 2c0f847
fix: lots of refactoring
michaeljohnbennett 3c01bfe
fix: tests
michaeljohnbennett 90a7f12
Merge branch 'develop' into feature/command-provider-poc
michaeljohnbennett 7bfb7fe
chore: removing copyright cleanup
michaeljohnbennett 75e4935
chore: post merge refactor/cleanup
michaeljohnbennett 19a3be6
fix: broken integration tests
michaeljohnbennett 5ed78f4
fix: windows paths on CICD
michaeljohnbennett 3addbe8
Merge branch 'develop' into feature/command-provider-poc
michaeljohnbennett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,5 +37,3 @@ resources/drizzle/ | |
|
||
ui-test/ | ||
|
||
### We ignore the config file to stop issues. | ||
# .eslintrc.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
// Copyright (c) 2022. Consensys Software Inc. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
module.exports = eval('require'); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright (c) 2022. Consensys Software Inc. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
import {Constants, NotificationOptions, OptionalApps} from '@/Constants'; | ||
|
||
import {outputCommandHelper} from '@/helpers'; | ||
import {required} from '@/helpers/required'; | ||
import {showIgnorableNotification, showNotification} from '@/helpers/userInteraction'; | ||
import {AbstractWorkspace} from '@/helpers/AbstractWorkspace'; | ||
import {Output, OutputLabel} from '@/Output'; | ||
import {Telemetry} from '@/TelemetryClient'; | ||
import {commands, Uri} from 'vscode'; | ||
|
||
export async function buildContracts(ws: AbstractWorkspace, uri?: Uri): Promise<void> { | ||
Telemetry.sendEvent('HardhatCommands.buildContracts.commandStarted'); | ||
if (!(await required.checkAppsSilentForUri(ws.workspace, OptionalApps.hardhat))) { | ||
Telemetry.sendEvent('HardhatCommands.buildContracts.hardhatInstallationMissing'); | ||
await showNotification({ | ||
message: 'Hardhat is not installed, please install to continue...', | ||
type: NotificationOptions.error, | ||
}); | ||
// await required.installHardhat(required.Scope.locally); | ||
return; | ||
} | ||
|
||
const workspaceDir = ws.workspace.fsPath; | ||
|
||
Output.outputLine(OutputLabel.hardhatCommands, `compiling: ${JSON.stringify(uri)} : ${workspaceDir}`); | ||
const args: string[] = [OptionalApps.hardhat, 'compile']; | ||
|
||
// hardhat will compile all contracts, not one specifically. | ||
Output.outputLine( | ||
OutputLabel.hardhatCommands, | ||
`Building: ${args} DIR: ${workspaceDir} Workspace: ${JSON.stringify(ws)} ` | ||
); | ||
|
||
await showIgnorableNotification(Constants.statusBarMessages.buildingContracts, async () => { | ||
Output.show(); | ||
await outputCommandHelper.executeCommand(workspaceDir, 'npx', args.join(' ')); | ||
commands.executeCommand('truffle-vscode.views.deployments.refresh'); | ||
|
||
Telemetry.sendEvent('HardhatCommands.buildContracts.commandFinished'); | ||
}); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.