Skip to content

Add formatter implementation into the extension - #4

Open
ikripaka wants to merge 14 commits into
BlockstreamResearch:masterfrom
ikripaka:feat/formatter
Open

Add formatter implementation into the extension#4
ikripaka wants to merge 14 commits into
BlockstreamResearch:masterfrom
ikripaka:feat/formatter

Conversation

@ikripaka

@ikripaka ikripaka commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Mainly, this pr introduces fmt functionality for the SimplicityHL.

  • adds a warning msg when formatting fails
  • formatting capabilities for simf files by using the default formatter association with simfmt

@ikripaka
ikripaka marked this pull request as ready for review July 24, 2026 13:15
@ikripaka
ikripaka requested review from KyrylR and gerau as code owners July 24, 2026 13:15
Comment thread src/format.ts Outdated
Comment thread package.json Outdated
@ikripaka
ikripaka force-pushed the feat/formatter branch 2 times, most recently from c81b1f8 to 7a01171 Compare July 29, 2026 10:48
@gerau
gerau changed the base branch from master to dev July 29, 2026 11:00
@gerau

gerau commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

ACK 7a01171; code review, tested locally

@ikripaka

Copy link
Copy Markdown
Collaborator Author

After publishing, it automatically installs the simfmt
https://crates.io/crates/simfmt

@gerau gerau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 610cdc4; tested locally with VSCode

@KyrylR

KyrylR commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Why dev? Can we rebase it onto main?

@ikripaka

Copy link
Copy Markdown
Collaborator Author

Sure, we can

@ikripaka
ikripaka changed the base branch from dev to master August 26, 2026 07:43
ikripaka and others added 10 commits August 26, 2026 10:46
* add an option to format a file via the right-click menu
* add comments and update the README section about formatting
* improve the formatting output to make it more meaningful
* add notification messages when formatting fails
so it wouldn't open a console every time when we launch formatting
* adjust output messages
* remove message about successfull formatting
* add comments for functions
…` options for formatter

* add gifs to local assets folder
* edit README.md
* add test for formatter caching logic and finding executables
* edit tests
* move lsp/install common logic into install_executable.ts
Comment thread README.md Outdated
Comment thread src/format/output.ts Outdated
Comment thread package.json
* set autoSaveBeforeFormat and formatterDisableAutoupdate to false by default
* unify document.ts file to use it both for formating and for getting active documents
* modify failure notifications (long errors in formatting would be visible in output)
* extend tests
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.

3 participants