Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

fix: formatting use outdated source #14

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

tbruyelle
Copy link
Contributor

Instead of using the filename as the input of gno fmt, which is by definition outdated since the save has not happened yet, we take the content of the file from the snapshots (updated by didChange/didSave) and write a temporary file with so we can pass it to gno fmt.

Instead of using the filename as the input of `gno fmt`, which is by
definition outdated since the save has not happened yet, we take the
content of the file from the snapshots (updated by didChange/didSave)
and write a temporary file with so we can pass it to `gno fmt`.
@tbruyelle tbruyelle requested a review from x1unix as a code owner December 19, 2024 18:32
@tbruyelle tbruyelle changed the title fix: formatting use outdated file fix: formatting use outdated source Dec 19, 2024
@x1unix x1unix merged commit c1a08c0 into gnolang:master Dec 19, 2024
1 check passed
@tbruyelle tbruyelle deleted the tbruyelle/fix/outdated-formatting branch December 20, 2024 07:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants