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: handle unimplemented file capabilities slightly more gracefully #1089

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dyc3
Copy link
Contributor

@dyc3 dyc3 commented Sep 11, 2024

Summary

The HTML language currently doesn't implement some of the file capabilities that the playground expects. This makes it so that a language does not need to implement some of these capabilities in order to work in the playground, requiring less code changes. Ideally though, we would grab the file capabilities from biome instead of try/catching.

This doesn't make HTML fully functional in the playground -- other things in biome needs to be implemented first.

Copy link

netlify bot commented Sep 11, 2024

Deploy Preview for biomejs ready!

Name Link
🔨 Latest commit 423dc19
🔍 Latest deploy log https://app.netlify.com/sites/biomejs/deploys/66ec32b4d810780008bdaf26
😎 Deploy Preview https://deploy-preview-1089--biomejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ematipico
Copy link
Member

Ideally though, we would grab the file capabilities from biome instead of try/catching.

This is actually possible. The workspace provides a method for that

@dyc3
Copy link
Contributor Author

dyc3 commented Sep 13, 2024

Ah, then I will rework this to do that.

@dyc3 dyc3 marked this pull request as draft September 13, 2024 09:07
@dyc3
Copy link
Contributor Author

dyc3 commented Sep 13, 2024

It looks like the fileFeatures function doesn't currently indicate if the language supports parsing, control flow graph, or formatter ir.

@dyc3 dyc3 force-pushed the 09-11-fix_handle_unimplemented_file_capabilities_slightly_more_gracefully branch from 8de67e0 to 423dc19 Compare September 19, 2024 14:18
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.

2 participants