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

Emit before/after programTranspile during file transpile preview #628

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

TwitchBronBron
Copy link
Member

@TwitchBronBron TwitchBronBron commented Jun 14, 2022

Emit the beforeProgramTranspile and afterProgramTranspile events anytime the The preview transpiled code action in the language server is executed. Some plugins need to run code during that event before the beforeFileTranspile event is triggered. This enables a more accurate transpile preview.

This is technically a breaking change for anyone calling the Program.getTranspiledFileContents function because it's now async. However, I don't think it's being used that often.

@TwitchBronBron TwitchBronBron merged commit c0e01d1 into master Jun 14, 2022
@TwitchBronBron TwitchBronBron deleted the transpile-preview-program-event branch June 14, 2022 12:54
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.

1 participant