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

Add RBI support #135

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

thomasmarshall
Copy link

This PR adds support for RBI files. This could be useful for sharing or reproducing RBI specific functionality (e.g. sig overloads). It uses a new --rbi command line arg, so requires a new build of sorbet-wasm. I've added a temporary commit with my custom sorbet-wasm build based off this PR, but can remove that and add a real build before merging.

Screen.Recording.2024-06-20.at.20.28.47.mov

@thomasmarshall
Copy link
Author

Here's a video demonstrating "go to definition" but it relies on a workaround using an internal Monaco API. I tried to update monaco-editor-core to make use of this PR which adds proper support for go-to-definition, but that meant updating a ton of other packages too and addressing various breaking changes. If the workaround isn't suitable then I will come back to this PR later when the dependencies are updated—maybe I can take a look at doing that separately.

Screen.Recording.2024-06-21.at.19.42.40.mov

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.

None yet

1 participant