-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Potential fix for Typescript LSP being slow. Based on microsoft/TypeScript#42761 (comment) and microsoft/TypeScript#52994 --------- Co-authored-by: Santiago Palladino <[email protected]>
- Loading branch information
1 parent
ed815a3
commit e934e87
Showing
38 changed files
with
167 additions
and
104 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 @@ | ||
src/artifacts/*.json | ||
artifacts/*.json |
This file contains 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 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 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,9 +1,17 @@ | ||
#! /bin/bash | ||
set -euo pipefail | ||
mkdir -p ./src/artifacts | ||
mkdir -p ./artifacts | ||
|
||
contracts=(schnorr_account_contract-SchnorrAccount ecdsa_account_contract-EcdsaAccount schnorr_single_key_account_contract-SchnorrSingleKeyAccount) | ||
|
||
decl=$(cat <<EOF | ||
import { type NoirCompiledContract } from '@aztec/types/noir'; | ||
const circuit: NoirCompiledContract; | ||
export = circuit; | ||
EOF | ||
); | ||
|
||
for contract in "${contracts[@]}"; do | ||
cp "../../noir-projects/noir-contracts/target/$contract.json" ./src/artifacts/${contract#*-}.json | ||
cp "../../noir-projects/noir-contracts/target/$contract.json" ./artifacts/${contract#*-}.json | ||
echo "$decl" > ./artifacts/${contract#*-}.d.json.ts | ||
done |
This file contains 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,5 +1,5 @@ | ||
import { type NoirCompiledContract, loadContractArtifact } from '@aztec/aztec.js'; | ||
|
||
import EcdsaAccountContractJson from '../artifacts/EcdsaAccount.json' assert { type: 'json' }; | ||
import EcdsaAccountContractJson from '../../artifacts/EcdsaAccount.json' assert { type: 'json' }; | ||
|
||
export const EcdsaAccountContractArtifact = loadContractArtifact(EcdsaAccountContractJson as NoirCompiledContract); |
This file contains 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,5 +1,5 @@ | ||
import { type NoirCompiledContract, loadContractArtifact } from '@aztec/aztec.js'; | ||
|
||
import SchnorrAccountContractJson from '../artifacts/SchnorrAccount.json' assert { type: 'json' }; | ||
import SchnorrAccountContractJson from '../../artifacts/SchnorrAccount.json' assert { type: 'json' }; | ||
|
||
export const SchnorrAccountContractArtifact = loadContractArtifact(SchnorrAccountContractJson as NoirCompiledContract); |
This file contains 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 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 |
---|---|---|
|
@@ -28,5 +28,5 @@ | |
"path": "../types" | ||
} | ||
], | ||
"include": ["src", "src/**/*.json"] | ||
"include": ["src", "artifacts/*.d.json.ts"] | ||
} |
This file contains 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 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 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 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 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,2 +1,2 @@ | ||
crates | ||
src/target | ||
artifacts |
This file contains 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
12 changes: 9 additions & 3 deletions
12
yarn-project/noir-protocol-circuits-types/package.local.json
This file contains 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,6 +1,12 @@ | ||
{ | ||
"scripts": { | ||
"build": "yarn clean && yarn generate && tsc -b", | ||
"clean": "rm -rf ./dest .tsbuildinfo src/types src/target" | ||
} | ||
} | ||
"clean": "rm -rf ./dest .tsbuildinfo src/types artifacts" | ||
}, | ||
"files": [ | ||
"dest", | ||
"src", | ||
"artifacts", | ||
"!*.test.*" | ||
] | ||
} |
Oops, something went wrong.