Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: forge fmt respects project's foundry.toml #316

Merged
merged 3 commits into from
Dec 22, 2022

Conversation

mds1
Copy link
Contributor

@mds1 mds1 commented Dec 20, 2022

Analogous to juanfranblanco/vscode-solidity#363 (h/t @shekhirin), this PR ensures the formatter respects the fmt settings in the foundry.toml file

antico5 and others added 2 commits December 19, 2022 14:12
* refactor: move server indexing and analysis to `initialize` step

* wip

* split index into different files

* mocha setup

* add tests and methods for diagnostics

* hardhat test project on protocol tests

* reword "integration"  to "e2e"

* add references test

* textDocument/implementation test

* add diagnostics test for foundry and projectless

* textDocument/definition test

* textDocument/typeDefinition test

* textDocument/rename tests

* migrate codeAction tests

* exclude protocol tests from root build

* migrate completion tests

* remove makeCodeAction helper

* definition tests

* migrate all diagnostic tests

* migrate all textDocument/references tests

* migrate remapping integration tests

* migrate rename tests

* migrate all typeDefinition tests

* update all test projects to use solc 0.8.8

* remove linear-related workflows

* add build step to CI

* increase timeout on waiting for diagnostic because of compiler download

* add protocol tests' node_modules to cache

* fix indexing workspace folders on windows

* use file uris for locations instead of paths

* install packages on protocol tests' projects

* add linting to protocol tests

* send custom/analyzed notification only on test mode
@kanej kanej requested a review from antico5 December 20, 2022 09:24
@codecov-commenter
Copy link

codecov-commenter commented Dec 20, 2022

Codecov Report

❗ No coverage uploaded for pull request base (development@73e96e2). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 674bc7a differs from pull request most recent head 085e9c8. Consider uploading reports for the commit 085e9c8 to get more accurate results

@@              Coverage Diff               @@
##             development     #316   +/-   ##
==============================================
  Coverage               ?   57.13%           
==============================================
  Files                  ?      173           
  Lines                  ?     4316           
  Branches               ?      707           
==============================================
  Hits                   ?     2466           
  Misses                 ?     1618           
  Partials               ?      232           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@kanej
Copy link
Member

kanej commented Dec 20, 2022

Thanks @mds1, that is great. We will get it reviewed in the next few days.

@mds1
Copy link
Contributor Author

mds1 commented Dec 20, 2022

Huh looks like some CI tests failed for yarn run test:protocol, but they do pass when locally

@antico5
Copy link
Collaborator

antico5 commented Dec 20, 2022

@mds1 don't worry about that, macOS CI sometimes fails to download and install foundry and then some tests fail. This change is not breaking any tests

@kanej kanej merged commit fd5058f into NomicFoundation:development Dec 22, 2022
@kanej kanej mentioned this pull request Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants